Unable to retrieve info for interface status in Nagios

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
lalitam
Posts: 10
Joined: Tue Jul 17, 2018 12:41 am

Unable to retrieve info for interface status in Nagios

Post 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
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Unable to retrieve info for interface status in Nagios

Post by cdienger »

Can you provide the service definition please?

Are you able to run the command from the command line?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
lalitam
Posts: 10
Joined: Tue Jul 17, 2018 12:41 am

Re: Unable to retrieve info for interface status in Nagios

Post 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
Attachments
Run Check Command.pdf
(194.69 KiB) Downloaded 147 times
Nagios_Service definition.PNG
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Unable to retrieve info for interface status in Nagios

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
lalitam
Posts: 10
Joined: Tue Jul 17, 2018 12:41 am

Re: Unable to retrieve info for interface status in Nagios

Post 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
Attachments
Service definition_ New command.PNG
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Unable to retrieve info for interface status in Nagios

Post 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).
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked