Host missing no snmp response, mrtg error

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
absarcompass
Posts: 182
Joined: Thu May 14, 2015 9:57 pm

Host missing no snmp response, mrtg error

Post by absarcompass »

Hi Guys,
I am getting a lot of internal emails for the missing host's mrtg error
SNMP Error:
no response received
SNMPv2c_Session (remote host: "192.168.16.186" [192.168.16.186].161)
community: "community"
request ID: 729230133
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/bin/../lib/mrtg2/SNMP_util.pm line 497
SNMPGET Problem for ifHCInOctets.22 ifHCOutOctets.22 on [email protected]:161::::2:v4only
at /usr/bin/mrtg line 2330
2016-05-20 14:50:25: WARNING: skipping because at least the query for ifHCInOctets.22 on 192.168.16.186 did not succeed
2016-05-20 14:50:25: WARNING: no data for ifHCInOctets&ifHCOutOctets:[email protected]. Skipping further queries for Host 192.168.16.186 in this round.
This and others like this does not exists in my host config, these IPs are changed now but somehoe NagiosXI mrtg is still trying to pull data for rrd files.
There must be some lock file which needs to be deleted to avoid the try of getting data over snmp from this not live IP address.

Any help is appreciated.
Thanks
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Host missing no snmp response, mrtg error

Post by rkennedy »

Just to clarify - where are you seeing this message? Can you post your profile for us to take a look at?
Former Nagios Employee
absarcompass
Posts: 182
Joined: Thu May 14, 2015 9:57 pm

Re: Host missing no snmp response, mrtg error

Post by absarcompass »

Hi,
this message is coming in email to root, local emails
yes i can send the profile in two different msges as it is bigger in size.
absarcompass
Posts: 182
Joined: Thu May 14, 2015 9:57 pm

Re: Host missing no snmp response, mrtg error

Post by absarcompass »

But i think issue is in some lock file or missing config
as i can see this and other host mentioned in localhost email are no longer in host config they are not present at nagiosxi.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Host missing no snmp response, mrtg error

Post by Box293 »

The MRTG config files need to be deleted.

Code: Select all

rm -rf /etc/mrtg/conf.d/192.168.16.186.cfg
Run the following command

Code: Select all

LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg
It will tell you what other devices it has issues with and you can delete those files.

I created a plugin that can warn you when the messages in the root mailbox exceed a certain number, or the size.

https://exchange.nagios.org/directory/P ... ox/details
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
absarcompass
Posts: 182
Joined: Thu May 14, 2015 9:57 pm

Re: Host missing no snmp response, mrtg error

Post by absarcompass »

Hi Box293,
That's exactly what i was looking for and has solved my issue pretty neat. But the other concatenated issue is when mrtg can not fetch data because of the ifindex number is changed.
2016-05-23 13:05:59: ERROR: Target[192.168.16.91_211][_IN_] ' $target->[207]{$mode} ' did not eval into defined data
2016-05-23 13:05:59: ERROR: Target[192.168.16.91_211][_OUT_] ' $target->[207]{$mode} ' did not eval into defined data
This and other such devices are Broadband RAS which have virtual interfaces for user and these interfaces keeps changing so, mrtg can't find the respective ifIndex numbers on the polls
Is there any efficient way to solve this so as I don't get the internal emails filled with above mentioned errors.
A tweak in mrtg polling that it keeps the data for current not changing interfaces but drop the unused or invalid interfaces.

Thanks a bunch
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Host missing no snmp response, mrtg error

Post by ssax »

What version of XI are you using? Also, let me know the version of the switch wizard that you're using, you can grab the version in Admin > Manage Config Wizards.

There is a way to make MRTG using name/description but it would involve modifying the switch wizard unless you're manually configuring them. See the --ifref part at the top here:

http://oss.oetiker.ch/mrtg/doc/cfgmaker.en.html
absarcompass
Posts: 182
Joined: Thu May 14, 2015 9:57 pm

Re: Host missing no snmp response, mrtg error

Post by absarcompass »

Hi
NagiosXI version is 5.2.7
Switch wizard version is 2.1.9
Generic network device is 1.0.1

I am not making mrtg graph explicitly they are plotted using some plugin within Xi that I am unaware. I setup network device using either switch wizaard or generic network device wizard and mrtg came with them.
Now i am getting above mentioned error for missing interfaces/ifnumber
what ever plugin is creating graph should be having a tweak or some setting that might exclude the unused or changed ifnumber interfaces.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Host missing no snmp response, mrtg error

Post by ssax »

The switch wizard handles things a little differently than when I originally modified it, please PM me the output of this command so that I can see if your ifNames are even set (on my switch they are not):

Code: Select all

snmpwalk -v 2c -c community X.X.X.X:161 1.3.6.1.2.1.2.2.1

Thank you
absarcompass
Posts: 182
Joined: Thu May 14, 2015 9:57 pm

Re: Host missing no snmp response, mrtg error

Post by absarcompass »

Hi Ssax,
I have PM you the output
Locked