Advertisement
kazoda

zabbix host get "name","hostid" extract

Aug 6th, 2014
447
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Awk 0.11 KB | None | 0 0
  1. BEGIN {
  2.         FS = ":";
  3. }
  4.         /"name"/ {val = $2};
  5.         /"hostid/{val = $0 val;printf "%s\n", val}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement