Check_ifoperstatus returning too much info

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
AWS
Posts: 63
Joined: Fri May 13, 2011 4:33 pm
Location: Vancouver, WA

Check_ifoperstatus returning too much info

Post by AWS »

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
Image
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?

Image

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]#
* 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Check_ifoperstatus returning too much info

Post by lmiltchev »

It seems like it shows you the usage, so I would assume that there is something wrong with the syntax.
Go to the Core Config Manager->Monitoring->Services->Modify. Your "Command view", under the "Common Settings" tab should look something like this:

Code: Select all

$USER1$/check_ifoperstatus -H $HOSTADDRESS$ -C $ARG1$ -k $ARG2$ 
Do you have your community string in the $ARG1$ textbox and "7" in the $ARG2$ textbox?
Be sure to check out our Knowledgebase for helpful articles and solutions!
AWS
Posts: 63
Joined: Fri May 13, 2011 4:33 pm
Location: Vancouver, WA

Re: Check_ifoperstatus returning too much info

Post by AWS »

Another bone-head move on my part. Thanks for that solution. I had both arguments, community string and k, on the same line in $ARG1$.

Thanks again for your assistance.

AWS
Locked