Nagios not seeing all indexes in the router

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
lamin
Posts: 177
Joined: Thu Oct 28, 2010 6:59 am

Nagios not seeing all indexes in the router

Post 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
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: Nagios not seeing all indexes in the router

Post 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?
Nicholas Scott
Former Nagios employee
lamin
Posts: 177
Joined: Thu Oct 28, 2010 6:59 am

Re: Nagios not seeing all indexes in the router

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: Nagios not seeing all indexes in the router

Post by nscott »

Are the ports administratively down? MRTG skips ports that are marked as administratively down.
Nicholas Scott
Former Nagios employee
lamin
Posts: 177
Joined: Thu Oct 28, 2010 6:59 am

Re: Nagios not seeing all indexes in the router

Post by lamin »

The ports are up because I see them in snmpwalk.
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: Nagios not seeing all indexes in the router

Post 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?
Nicholas Scott
Former Nagios employee
lamin
Posts: 177
Joined: Thu Oct 28, 2010 6:59 am

Re: Nagios not seeing all indexes in the router

Post 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.
You do not have the required permissions to view the files attached to this post.
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: Nagios not seeing all indexes in the router

Post 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.
Nicholas Scott
Former Nagios employee
lamin
Posts: 177
Joined: Thu Oct 28, 2010 6:59 am

Re: Nagios not seeing all indexes in the router

Post 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?
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: Nagios not seeing all indexes in the router

Post 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.
Nicholas Scott
Former Nagios employee
Locked