Page 1 of 2

Nagios not seeing all indexes in the router

Posted: Mon Aug 01, 2011 7:40 am
by lamin
Hello there,
I was watching the MPLS on one my router and it was working well, however, after a change of port or index i could not see the defined port or index. I requeried the router but I am just seeing the same ports or indexes. Do you guys have any idea why i am not seeing all the ports or indexes on the router?

Thanks

Re: Nagios not seeing all indexes in the router

Posted: Mon Aug 01, 2011 9:21 am
by nscott
lamin,

Can you not see the ports or indexes on the router when running with Router/Switch Wizard? Or it is later, when on the Service/Hosts screen.What version of Nagios XI are you running and what distribution is it installed on?

Re: Nagios not seeing all indexes in the router

Posted: Mon Aug 01, 2011 11:44 am
by lamin
I am not seeing the ports or indexes in the switch/router wizards. i am running nagiosxi 2011r1.1 and it is running in Centos vm. I think that nagios is caching and if it is the case where can i flush all old queries. I have performed snmpwalk and I was able to see all indexes/ports. Let me know if you need additional info.

Thanks

Re: Nagios not seeing all indexes in the router

Posted: Mon Aug 01, 2011 7:26 pm
by nscott
Are the ports administratively down? MRTG skips ports that are marked as administratively down.

Re: Nagios not seeing all indexes in the router

Posted: Tue Aug 02, 2011 6:26 am
by lamin
The ports are up because I see them in snmpwalk.

Re: Nagios not seeing all indexes in the router

Posted: Tue Aug 02, 2011 9:37 am
by nscott
lamin,

Just making sure here, you may see them in SNMP walk, but MRTG will ignore ports that listed as administratively down in snmpwalk, so they will show up in snmpwalk, but their status will be something like admindown. Are they listed as up in snmpwalk?

Re: Nagios not seeing all indexes in the router

Posted: Tue Aug 02, 2011 10:07 am
by lamin
yes there are up in snmpwalk. I have noticed a bounce rrd files in /var/lib/mrtg and those i have seen some entries that have deleted long ago. I am assuming that some of these log files may be causing mrtg not rediscover new indexes in my routers. Also I have noticed that even though I deleted some router in nagiosxi wizard but still the entries are in /etc/mrtg/mrtg.cfg file.

Re: Nagios not seeing all indexes in the router

Posted: Tue Aug 02, 2011 11:01 am
by nscott
Yes, that is correct, and good troubleshooting! Nagios will not remove devices from mrtg.cfg, you need to do that manually. Reason being is MRTG is use by lots of other monitoring programs and editing the collective config files is generally frowned upon.

And yes, if you are not using the rrd files in the /var/lib/mrtg then by all means, delete them, no harm.

Re: Nagios not seeing all indexes in the router

Posted: Tue Aug 02, 2011 11:18 am
by lamin
ok, i have manually deleted the router entries and after requerying i am still seeing the same ports and it should be more. Is there any other log files that I need to delete? Do I have to clear mrtg.cfg, /usr/local/nagios/share/perfdata, /usr/local/nagioxi/tmp/ of all traces of the deleted switches?

Re: Nagios not seeing all indexes in the router

Posted: Tue Aug 02, 2011 12:58 pm
by nscott
You definintely must clear mrtg.cfg, but I've never experienced the situation where the perfdata was not allowing new entries of routers. However, if you want to give it a go, I'd be more than happy to hear the results.