Page 1 of 1

Unable to retrieve info for interface status in Nagios

Posted: Thu Aug 09, 2018 10:20 pm
by lalitam
Hi Team,

We are currently testing Nagios to monitor our network equipment. We would like to monitor important interfaces bandwidth, status and cpu utilization for the devices.

I am able to retrieve data regarding the bandwidth but getting following error when trying to track "interface status": UNKNOWN - No info is being retrieved or check_ifoperstatus v2.0.3 (nagios-plugins 2.0.3).

How can this be fixed?

Kind Regards
Lalita

Re: Unable to retrieve info for interface status in Nagios

Posted: Fri Aug 10, 2018 12:55 pm
by cdienger
Can you provide the service definition please?

Are you able to run the command from the command line?

Re: Unable to retrieve info for interface status in Nagios

Posted: Sun Aug 12, 2018 6:47 pm
by lalitam
Hi cdienger,

I appreciate your quick response. I am pretty new to this product and am using GUI.

In GUI, the service definition(.png) and "Run Check Command" output (.pdf) are in the attachments. Please do let me know if there is any further info I can provide.

Kind Regards
Lalita

Re: Unable to retrieve info for interface status in Nagios

Posted: Mon Aug 13, 2018 10:39 am
by cdienger
Try it with settings where $ARG1$ = public, $ARG2$ = 2, AND $ARG3$ = -v -p 161.

The command would then look like:

/usr/local/nagios/libexec -H $HOSTADDRESS$ -C public -k 2 -v 2 -p 161

Re: Unable to retrieve info for interface status in Nagios

Posted: Mon Aug 13, 2018 6:56 pm
by lalitam
Thank you,

With the command: usr/local/nagios/libexec -H $HOSTADDRESS$ -C public -k 2 -v 2 -p 161 ; I am getting the following output

[nagios@ns01ngmonp01 ~]$ /usr/local/nagios/libexec/check_ifoperstatus -H 172.20.254.254 -C public -k 2 -v 2 -p 161 WARNING: SNMP error: No response from remote host "172.20.254.254"

Kind Regards
Lalita

Re: Unable to retrieve info for interface status in Nagios

Posted: Tue Aug 14, 2018 2:45 pm
by cdienger
Is there a public community on the device? Does it accept snmp v2 requests? Do you get different results if you try "-k 0", "-k 1", "-k 3", etc ...?

It would appear the request is getting sent, but no response is coming back which can mean either the network communication is failing(routing, or firewall issue maybe) or the destination doesn't like the request and ignore it for some reason(incorrect settings perhaps).