Page 1 of 1

re-walking switches/ adding ports to existing switched-

Posted: Fri Sep 02, 2016 2:00 pm
by jlmoldan
Hello, I thought it would be simple - but I am trying to update my switch monitoring in nagios. In the past I just re-ran the switch/router wizard and then went back and purged old services/merged rrd's with the performance data tool etc..
I am running a newer version of nagios since last summer (last time I did major updates)

Today however (it has been a while) I tried and xi will not bring in ports.

My core switches have undergone some major migrations/server adds-removes and almost all ports are relabled etc.. When I run the wizard it finds all the port names, they are all checked - but when I hit apply/go it doesn't bring in all the ports to nagios (and by that I mean looking at /usr/local/nagios/etc/services - few ports actually come in. The port-groups all came in, but no actual ports).

So what the heck, I have a test server. I blew away the switch (services and then host via CCM). Ran into a little article here https://assets.nagios.com/downloads/nag ... 1469631055

Removed all of that.. And then tried to run the wizzard again.. No luck. It won't bring any of the ports in..

If I look at /etc/mrtg/conf.d/%SWITCHIP% - the MRTG config it shows all the ports and lables etc.. But they never make it to usr/local/nagios/etc/services - and I don't see them in XI.....

Is their an easier way just to update/re-walk the switches in NagiosXI to get more current information?

Thanks for any ideas.

Re: re-walking switches/ adding ports to existing switched-

Posted: Tue Sep 06, 2016 9:26 am
by rkennedy
This could be many different things. A few questions for you that will help to diagnose it:

- What version of SNMP are you using?
- Does the community string have any special characters in it at all?
- Could you check the configuration files in /etc/mrtg/conf.d/ and make sure that they contain actual data?
- Please post your /var/log/httpd/error_log and /var/log/httpd/ssl_error_log for us to review, is it a stack of core switches? We might need to raise PHP limits if it's a stack of switches.

I saw a similar issue last week, so all of this information will help a lot.