Skip to content

Instantly share code, notes, and snippets.

@ymek
Created February 7, 2011 21:10
Show Gist options
  • Save ymek/815225 to your computer and use it in GitHub Desktop.
Save ymek/815225 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
SENDER="/usr/local/sbin/zabbix_sender"
#SERVER_IP="172.16.0.27"
#SERVER_PORT=10051
SERVER_CONFIG="/etc/zabbix/zabbix_agentd.conf"
#HOST=%x{hostname -f | cut -d. -f1}
##
# Example, arbitrary key updates for zabbix
# - Each key used in this way must be of type "zabbix trapper"
# - Keys should not appear in /etc/zabbix/zabbix_agentd.conf
# - Keys should exactly match the name in the webUI (like they must in /etc/zabbix/zabbix_agentd.conf)
puts %x{#{SENDER} -vv -c #{SERVER_CONFIG} -k php.errors.total.memory_test -o 57}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment