Page 1 of 2
XI 2014 Switch Problems
Posted: Tue May 20, 2014 1:45 pm
by hudbaylicensing
Trying to add a switch, SNMP is turned on on the switch, community name is setup - when trying to add in Nagios Switch/Router Wizard, it gives me a "No ports were detected on the switch" error. It then says to run a cfgmaker command, I did and the link below is what I is what I received - It appears that it does see the switch and can connect to it. Not sure what to do next?
http://pastebin.com/ZWh20pWh
Thanks,
Marc
Re: XI 2014 Switch Problems
Posted: Tue May 20, 2014 4:52 pm
by scottwilkerson
There is a known issue with the current switch wizard, and a new wizard has been posted at
http://assets.nagios.com/downloads/nagi ... switch.zip
Install through Admin -> Manage Wizards
Re: XI 2014 Switch Problems
Posted: Wed May 21, 2014 10:56 am
by hudbaylicensing
Great Thanks, that allowed me to get past that and add the switch.
I am getting results though that do not make sense, when looking at Bandwidth, they are all reporting as:
OK - Current BW in: 0Mbps Out: 0Mbps
But I know that there is traffic moving on this switch - it is one of our busiest switches in the plant. Am I doing something wrong?
Thanks,
Marc
Re: XI 2014 Switch Problems
Posted: Wed May 21, 2014 11:13 am
by slansing
How long has it been since you configured this switch in XI? It may take a bit of time before you start seeing the results displayed for the first time.
Re: XI 2014 Switch Problems
Posted: Wed May 21, 2014 11:14 am
by tmcdonald
Also, please run the following and post the results:
Code: Select all
LC_ALL=C /usr/local/nagios/libexec/check_icmp -H 8.8.8.8
/usr/local/nagios/libexec/check_icmp -H 8.8.8.8
Re: XI 2014 Switch Problems
Posted: Wed May 21, 2014 11:16 am
by hudbaylicensing
LC_ALL=C /usr/local/nagios/libexec/check_icmp -H 8.8.8.8
OK - 8.8.8.8: rta 72.236ms, lost 0%|rta=72.236ms;200.000;500.000;0; pl=0%;40;80;; rtmax=73.982ms;;;; rtmin=71.143ms;;;;
/usr/local/nagios/libexec/check_icmp -H 8.8.8.8
OK - 8.8.8.8: rta 77.177ms, lost 0%|rta=77.177ms;200.000;500.000;0; pl=0%;40;80;; rtmax=85.856ms;;;; rtmin=70.748ms;;;;
Looks OK to me...
It has only been a couple of hours - I will leave it and check it tomorrow morning. Thanks!
Re: XI 2014 Switch Problems
Posted: Wed May 21, 2014 2:49 pm
by sreinhardt
Great, I'll leave it open for a few days in case you still have issues.
Re: XI 2014 Switch Problems
Posted: Thu May 22, 2014 8:33 am
by hudbaylicensing
Checked it again this morning - have setup two switches and neither of them are reporting any traffic on the bandwidth everything displays as:
OK - Current BW in: 0Mbps Out: 0Mbps
Re: XI 2014 Switch Problems
Posted: Thu May 22, 2014 10:12 am
by lmiltchev
After installing the new wizard, did you rerun it (and re-add the hosts) as explained in the following document?
http://assets.nagios.com/downloads/nagi ... Router.pdf
Re: XI 2014 Switch Problems
Posted: Mon May 26, 2014 9:40 am
by hudbaylicensing
using that pdf for adding Switches, my mrtg.cfg file does not contain any information for switches in it - this is all I see:
######################################################################
# Multi Router Traffic Grapher -- Example Configuration File
######################################################################
# This file is for use with mrtg-2.0
#
# Note:
#
# * Keywords must start at the begin of a line.
#
# * Lines which follow a keyword line which do start
# with a blank are appended to the keyword line
#
# * Empty Lines are ignored
#
# * Lines starting with a # sign are comments.
# Where should the logfiles, and webpages be created?
# Minimal mrtg.cfg
#--------------------
HtmlDir: /var/www/mrtg
ImageDir: /var/www/mrtg
LogFormat: rrdtool
LogDir: /var/lib/mrtg
ThreshDir: /var/lib/mrtg
WorkDir: /var/lib/mrtg
Include: conf.d/*.cfg
And I get all kinds of errors when I try to run LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg –check - and the errors are actually from different routers that we have at our sites - we used the WatchGuard wizard to add these, not the Switch/Router wizard and doesn't seem to display any errors for the switches we have added.