Created
February 7, 2011 21:10
-
-
Save ymek/815225 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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