Skip to content

Instantly share code, notes, and snippets.

@jtyr
Last active February 21, 2024 13:23
Show Gist options
  • Save jtyr/651fc356cfe0215e19531c5b9113e151 to your computer and use it in GitHub Desktop.
Save jtyr/651fc356cfe0215e19531c5b9113e151 to your computer and use it in GitHub Desktop.
Query Zabbix Agent metric via netcat.
# Ask Zabbix Agent to return value of the system.cpu.load metric
echo 'system.cpu.load' | nc -w2 myserver01 10050 | sed -r 's/^ZBXD..//'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment