Skip to content

Instantly share code, notes, and snippets.

@maxmanders
Created February 14, 2013 11:51
Show Gist options
  • Save maxmanders/4952315 to your computer and use it in GitHub Desktop.
Save maxmanders/4952315 to your computer and use it in GitHub Desktop.
Zenoss ZenPack Debug
/usr/local/zenoss/common/libexec/check_http_by_hostname.py -H www.some_host_that_resolves.com -p 80 -t 60 -u / -f follow
Exit status is 1 which I had expected to raise an event, with the stdout of the command being the event message
zencommand run -d <device> -v10
...
2013-02-14 11:44:36,515 DEBUG zen.zencommand: running '/usr/local/zenoss/common/libexec/check_http_by_hostname.py -H www.some_host_that_resolves.com -p 80 -t 60 -u / -f follow'
2013-02-14 11:44:36,515 DEBUG zen.zencommand: cmd line: '/bin/sh -c exec /usr/local/zenoss/common/libexec/check_http_by_hostname.py -H www.some_host_that_resolves.com -p 80 -t 60 -u / -f follow'
2013-02-14 11:44:36,540 DEBUG zen.zencommand: Process check_http_by_hostname.py -H www.some_host_that_resolves.com -p 80 -t 60 -u / -f follow started
2013-02-14 11:45:08,918 DEBUG zen.zencommand: Received exit code: 1
2013-02-14 11:45:08,918 DEBUG zen.zencommand: Command: '/bin/sh -c exec /usr/local/zenoss/common/libexec/check_http_by_hostname.py -H www.some_host_that_resolves.com -p 80 -t 60 -u / -f follow'
2013-02-14 11:45:08,919 DEBUG zen.zencommand: Output: 'check_http bad IPs for www.some_host_that_resolves.com: 123.123.123.123\n'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment