Network Switch/Router Wizard

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
BenGatewood
Posts: 35
Joined: Fri May 16, 2014 5:17 am

Network Switch/Router Wizard

Post 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?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Network Switch/Router Wizard

Post 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.?
Be sure to check out our Knowledgebase for helpful articles and solutions!
BenGatewood
Posts: 35
Joined: Fri May 16, 2014 5:17 am

Re: Network Switch/Router Wizard

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Network Switch/Router Wizard

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
BenGatewood
Posts: 35
Joined: Fri May 16, 2014 5:17 am

Re: Network Switch/Router Wizard

Post 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:
######################################################################

tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Network Switch/Router Wizard

Post by tmcdonald »

Just asking to make sure, but you did replace <community> and <ip> with their correct values, correct?
Former Nagios employee
BenGatewood
Posts: 35
Joined: Fri May 16, 2014 5:17 am

Re: Network Switch/Router Wizard

Post by BenGatewood »

Depends what you mean by "correct" :-)

I picked one of the switches I am monitoring - that right?
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Network Switch/Router Wizard

Post 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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked