From CLI I get a line of text output and an exit value of 0 when I expect to; or a different line of text output and a value of 1 when I expect to; but when I go through commands.cfg and the Nagios web interface, it always returns with exit value of 2 [critical].
My CLI is the perl script with 4 arguments:
Code: Select all
./check-crawl.pl FQDN Port# Collection status
Code: Select all
define command {
command_name crawl_status
command_line $USER1$/check_crawl.pl $ARG1$ $ARG2$ $ARG3$ $ARG4$
}
Code: Select all
check_command crawler_status!FQDN!80!Collection!status
Thanks!