Check_ifoperstatus returning too much info
Posted: Fri Jan 20, 2012 3:14 pm
Hello.
CentOS 5, 32-bit, manual install.
When I use the check_ifoperstatus command, the Status Information line reads: check_ifoperstatus plugin for Nagios monitors operational

If I click the service to view the details I get the green check mark that all is ok plus I get the help output of the command. I'd like it just to return "OK". What am I doing wrong?

Running the command from the shell returns the values I would hope to see in the web page:
* There isn't a line break after the "... is up. [root@..." like I'd expect. The result is on the same line as the prompt.
Thanks
AwS
CentOS 5, 32-bit, manual install.
When I use the check_ifoperstatus command, the Status Information line reads: check_ifoperstatus plugin for Nagios monitors operational

If I click the service to view the details I get the green check mark that all is ok plus I get the help output of the command. I'd like it just to return "OK". What am I doing wrong?

Running the command from the shell returns the values I would hope to see in the web page:
Code: Select all
[root@nagios libexec]# ./check_ifoperstatus -k 7 -H 10.1.1.254
OK: Interface pppoe0 (index 7) is up.[root@nagios libexec]#Thanks
AwS