Page 1 of 3
Host missing no snmp response, mrtg error
Posted: Thu May 19, 2016 10:25 pm
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
Re: Host missing no snmp response, mrtg error
Posted: Thu May 19, 2016 11:37 pm
by rkennedy
Just to clarify - where are you seeing this message? Can you post your profile for us to take a look at?
Re: Host missing no snmp response, mrtg error
Posted: Thu May 19, 2016 11:40 pm
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.
Re: Host missing no snmp response, mrtg error
Posted: Thu May 19, 2016 11:45 pm
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.
Re: Host missing no snmp response, mrtg error
Posted: Fri May 20, 2016 2:02 am
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
Re: Host missing no snmp response, mrtg error
Posted: Sun May 22, 2016 8:18 pm
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
Re: Host missing no snmp response, mrtg error
Posted: Mon May 23, 2016 2:06 pm
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
Re: Host missing no snmp response, mrtg error
Posted: Mon May 23, 2016 4:47 pm
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.
Re: Host missing no snmp response, mrtg error
Posted: Tue May 24, 2016 3:26 pm
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
Re: Host missing no snmp response, mrtg error
Posted: Wed May 25, 2016 4:42 pm
by absarcompass
Hi Ssax,
I have PM you the output