Advertisement
kazoda

zabbix host get oneliner

Aug 6th, 2014
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. $ ./zab.sh hosts_get.json | awk -F":" '/"name"/{val = $2};/"hostid/{val = $0 val;printf "%s\n", val}'
  2. "hostid": "10084", "Zabbix server",
  3. "hostid": "10085", "centos-httpd",
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement