Page 1 of 1

Network Switch/Router Wizard

Posted: Thu Jul 17, 2014 5:25 am
by BenGatewood
This wizard appears to have stopped functioning yesterday. It will now just hang at the 'scanning' stage. I am unsure of the logs I need to look at to troubleshoot further - which are they?

Re: Network Switch/Router Wizard

Posted: Thu Jul 17, 2014 11:23 am
by lmiltchev
What is the Nagios XI version that you are currently using? What is the version of the switch/router wizard that you are using?

Admin->Manage Config Wizards

Have you done any changes to the system lately - configuration changes, upgrades, etc.?

Re: Network Switch/Router Wizard

Posted: Fri Jul 18, 2014 5:25 am
by BenGatewood
Wizard is version 2.0.6
XI is 2014R1.3-REV2812

I've done heaps of changes recently trying to figure out my perfdata problem including offloading MySQL, installing rrdcached and switching to a ramdisk.

Re: Network Switch/Router Wizard

Posted: Fri Jul 18, 2014 10:29 am
by lmiltchev
Do you get any output when you run the following commands?

Code: Select all

LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg
/usr/bin/cfgmaker --show-op-down --noreversedns --zero-speed '100000000' '<community>@<ip address>:::::2'
FYI, we had an issue with the latest tarball. I can see that your XI version is shown with the rev. number:

Code: Select all

XI is 2014R1.3-REV2812
To fix this, remove the old "nagiosxi" directory and the old tarball from "/tmp/", re-download the latest tarball, and re-run the "./upgrade" script. It shouldn't take long at all, but it will "fix" the version number that is shown in the XI web UI.

Re: Network Switch/Router Wizard

Posted: Fri Jul 18, 2014 10:55 am
by BenGatewood
Thanks, Ludmil. Output as requested - No output from this one:

Code: Select all

LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg
This one:

Code: Select all

/usr/bin/cfgmaker --show-op-down --noreversedns --zero-speed '100000000' '<community>@<ip>:::::2'
Returned:

Code: Select all

--base: Get Device Info on <community>@<IP Address>:::::2
Use of uninitialized value $tempv in concatenation (.) or string at /usr/bin/../lib/mrtg2/SNMP_util.pm line 755.
Use of uninitialized value $DevInfo{"sysObjectID"} in concatenation (.) or string at /usr/bin/cfgmaker line 1003.
Use of uninitialized value in pattern match (m//) at /usr/bin/cfgmaker line 1005.
Use of uninitialized value in pattern match (m//) at /usr/bin/cfgmaker line 1005.
Use of uninitialized value in pattern match (m//) at /usr/bin/cfgmaker line 1005.
Use of uninitialized value in pattern match (m//) at /usr/bin/cfgmaker line 1005.
Use of uninitialized value in pattern match (m//) at /usr/bin/cfgmaker line 1005.
Use of uninitialized value in pattern match (m//) at /usr/bin/cfgmaker line 1005.
Use of uninitialized value in pattern match (m//) at /usr/bin/cfgmaker line 1005.
Use of uninitialized value in pattern match (m//) at /usr/bin/cfgmaker line 1005.
Use of uninitialized value in pattern match (m//) at /usr/bin/cfgmaker line 1005.
Use of uninitialized value in pattern match (m//) at /usr/bin/cfgmaker line 1005.
Use of uninitialized value in pattern match (m//) at /usr/bin/cfgmaker line 1005.
Use of uninitialized value in pattern match (m//) at /usr/bin/cfgmaker line 1005.
Use of uninitialized value in pattern match (m//) at /usr/bin/cfgmaker line 1005.
Use of uninitialized value in pattern match (m//) at /usr/bin/cfgmaker line 1005.
Use of uninitialized value in pattern match (m//) at /usr/bin/cfgmaker line 1005.
Use of uninitialized value in pattern match (m//) at /usr/bin/cfgmaker line 1005.
Use of uninitialized value in pattern match (m//) at /usr/bin/cfgmaker line 1005.
Use of uninitialized value in pattern match (m//) at /usr/bin/cfgmaker line 1005.
Use of uninitialized value in pattern match (m//) at /usr/bin/cfgmaker line 1005.
--base: Vendor Id: Unknown Vendor -
--base: Populating confcache
Use of uninitialized value $tempv in concatenation (.) or string at /usr/bin/../lib/mrtg2/SNMP_util.pm line 755.
Use of uninitialized value $tempv in concatenation (.) or string at /usr/bin/../lib/mrtg2/SNMP_util.pm line 755.
Use of uninitialized value $tempv in concatenation (.) or string at /usr/bin/../lib/mrtg2/SNMP_util.pm line 755.
Use of uninitialized value $tempv in concatenation (.) or string at /usr/bin/../lib/mrtg2/SNMP_util.pm line 755.
Use of uninitialized value $tempv in concatenation (.) or string at /usr/bin/../lib/mrtg2/SNMP_util.pm line 755.
--base: Get Interface Info
Use of uninitialized value $descr in pattern match (m//) at /usr/bin/cfgmaker line 192.
Use of uninitialized value $descr in pattern match (m//) at /usr/bin/cfgmaker line 192.
--base: Walking ifIndex
Use of uninitialized value $tempv in concatenation (.) or string at /usr/bin/../lib/mrtg2/SNMP_util.pm line 755.
--snpd:   <community>@<IP Address>:::::2 -> 1.3.6.1.2.1.2.2.1.1 -> ifIndex =
--base: Walking ifType
Use of uninitialized value $tempv in concatenation (.) or string at /usr/bin/../lib/mrtg2/SNMP_util.pm line 755.
--snpd:   <community>@<IP Address>:::::2 -> 1.3.6.1.2.1.2.2.1.3 -> ifType =
--base: Walking ifAdminStatus
Use of uninitialized value $tempv in concatenation (.) or string at /usr/bin/../lib/mrtg2/SNMP_util.pm line 755.
--snpd:   <community>@<IP Address>:::::2 -> 1.3.6.1.2.1.2.2.1.7 -> ifAdminStatus =
--base: Walking ifOperStatus
Use of uninitialized value $tempv in concatenation (.) or string at /usr/bin/../lib/mrtg2/SNMP_util.pm line 755.
--snpd:   <community>@<IP Address>:::::2 -> 1.3.6.1.2.1.2.2.1.8 -> ifOperStatus =
--base: Walking ifMtu
Use of uninitialized value $tempv in concatenation (.) or string at /usr/bin/../lib/mrtg2/SNMP_util.pm line 755.
--snpd:   <community>@<IP Address>:::::2 -> 1.3.6.1.2.1.2.2.1.4 -> ifMtu =
--base: Walking ifSpeed
Use of uninitialized value $tempv in concatenation (.) or string at /usr/bin/../lib/mrtg2/SNMP_util.pm line 755.
--snpd: @ifSpeed = 1.3.6.1.2.1.2.2.1.5:

--base: Walking ifHighSpeed
Use of uninitialized value $tempv in concatenation (.) or string at /usr/bin/../lib/mrtg2/SNMP_util.pm line 755.
Argument "" isn't numeric in numeric eq (==) at /usr/bin/cfgmaker line 227.
Use of uninitialized value $descr in pattern match (m//) at /usr/bin/cfgmaker line 232.
Use of uninitialized value $comment_sysdescr in substitution (s///) at /usr/bin/cfgmaker line 379.
Use of uninitialized value $sysname in concatenation (.) or string at /usr/bin/cfgmaker line 412.
Use of uninitialized value $comment_sysdescr in concatenation (.) or string at /usr/bin/cfgmaker line 412.
Use of uninitialized value $syscontact in concatenation (.) or string at /usr/bin/cfgmaker line 412.
Use of uninitialized value $syslocation in concatenation (.) or string at /usr/bin/cfgmaker line 412.
# Created by
# /usr/bin/cfgmaker --show-op-down --noreversedns --zero-speed 100000000 [email protected]:::::2


### Global Config Options

#  for UNIX
# WorkDir: /home/http/mrtg

#  or for NT
# WorkDir: c:\mrtgdata

### Global Defaults

#  to get bits instead of bytes and graphs growing to the right
# Options[_]: growright, bits

EnableIPv6: no

######################################################################
# System:
# Description:
# Contact:
# Location:
######################################################################


Re: Network Switch/Router Wizard

Posted: Fri Jul 18, 2014 2:00 pm
by tmcdonald
Just asking to make sure, but you did replace <community> and <ip> with their correct values, correct?

Re: Network Switch/Router Wizard

Posted: Fri Jul 18, 2014 6:04 pm
by BenGatewood
Depends what you mean by "correct" :-)

I picked one of the switches I am monitoring - that right?

Re: Network Switch/Router Wizard

Posted: Mon Jul 21, 2014 12:01 pm
by sreinhardt
Provided you used the correct IP and community string combination, then yes I would consider that correct.(which I can see that you likely did use valid inputs about halfway through your result output) I think at this point either the cfgmaker script got messed up(not likely) or there are issues with your currently installed snmp prereqs for that same script. Could you post - /usr/bin/../lib/mrtg2/SNMP_util.pm which I assume should really be /usr/lib/mrtg2/SNMP_util.pm. This might end up being an issue with findbin or the binaries\perl modules that it is using on your system.