Page 1 of 2
SNMP router/switch config wizard not working
Posted: Thu Apr 28, 2016 5:30 am
by djcomber
When I run the SNMP Router/Switch config wizard it shows a blank page.
I enter the IP address, SNMP community string and click next
The screen is then blank and does not move on even if I wait for 5 minutes.
This happens when I try a new router to monitor or try and configure new router to monitor.
Re: SNMP router/switch config wizard not working
Posted: Thu Apr 28, 2016 9:01 am
by vAJ
What version of the wizard are you running?
Re: SNMP router/switch config wizard not working
Posted: Thu Apr 28, 2016 9:19 am
by bwallace
In addition to providing the version of the wizard as vAJ, suggested, what version of XI are you using and are you using the default switch/router wizard, or did you manually install it?
Reason I ask is this:
When plugins, components or wizards are not installed through the proper menus, this creates problems in Nagios XI, such as "wiping out" all wizards, so they can not be viewed in the Web interface, blank pages in the Web browser and other weird behaviors.
https://support.nagios.com/wiki/index.p ... n_Problems
Re: SNMP router/switch config wizard not working
Posted: Thu Apr 28, 2016 11:46 pm
by djcomber
Hi Guys,
XI Version is 5.2.7
Wizard Network Switch/Router
Wizard Version is 2.3.0
The wizard is the default wizard.
It was working. the first page of the wizard shows, I enter the details for SNMP and the IP, hit next it says it's checking the device with the waiting indicator, then pops onto the next page but that is blank.
Re: SNMP router/switch config wizard not working
Posted: Fri Apr 29, 2016 1:31 am
by Box293
Run this command on your XI server in an SSH session:
Go and run the wizard to reproduce the problem.
Please post here the output produced in the SSH session.
Re: SNMP router/switch config wizard not working
Posted: Fri Apr 29, 2016 5:46 am
by djcomber
The details I enter
The result from the tail
Code: Select all
--base: Get Device Info on [email protected]:161::::1
SNMP Error:
Received SNMP response with error code
error status: noSuchName
index 1 (OID: 1.3.6.1.2.1.1)
SNMPv1_Session (remote host: "10.18.2.1" [10.18.2.1].161)
community: "nagios"
request ID: -1901505832
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/bin/../lib/mrtg2/SNMP_util.pm line 651
SNMPWALK Problem for 1.3.6.1.2.1.1 on [email protected]:161::::1:v4only
at /usr/bin/cfgmaker line 951
WARNING: Skipping [email protected]:161::::1 as no info could be retrieved
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.
[Fri Apr 29 20:40:43 2016] [error] [client 192.168.1.60] PHP Fatal error: Call to undefined function debug() in /usr/local/nagiosxi/html/includes/configwizards/switch/switch.inc.php on line 1143, referer: http://monitor.ucommgroup.com.au/nagiosxi/config/monitoringwizard.php?update=1&nextstep=2&nsp=2570589465d6d74eaaa485e9ec744c30&wizard=switch
Re: SNMP router/switch config wizard not working
Posted: Fri Apr 29, 2016 8:57 am
by vAJ
Can you grab the versions of your installed SNMP packages?
Cent/RHEL:
Also OS distro & version:
Code: Select all
cat /etc/*-release
or
cat /proc/version
Follow-up questions:
1. You're certain that "nagios" is the configured SNMP community string?
2. Do you have any other switches or routers that you've configured successfully with the wizard?
Re: SNMP router/switch config wizard not working
Posted: Fri Apr 29, 2016 10:50 am
by tgriep
There is a bug found in the Network Switch / Router Wizard that could be causing the error you are getting.
If you login to to your XI server and edit this file
Code: Select all
/usr/local/nagiosxi/html/includes/configwizards/switch/switch.inc.php
Change line 42 from
Code: Select all
$snmpversion = (in_array($snmpversion, array("1", "2", "3")) ? $snmpversion : "1");
to
Code: Select all
$snmpversion = (in_array($snmpversion, array("1", "2c", "3")) ? $snmpversion : "1");
Save the file out and see the Network Switch / Router Wizard works for you.
Please post back your results.
Re: SNMP router/switch config wizard not working
Posted: Fri Apr 29, 2016 10:54 am
by bwallace
I spoke to a dev about this and there was an issue with that wizard version of 2.3.0.
Before you do any t-shooting, upgrade it to the latest version of 2.3.1 - which might just resolve this -
Admin > System Extensions > Manage Config Wizards
Re: SNMP router/switch config wizard not working
Posted: Sun May 01, 2016 6:52 pm
by djcomber
bwallace wrote:I spoke to a dev about this and there was an issue with that wizard version of 2.3.0.
Before you do any t-shooting, upgrade it to the latest version of 2.3.1 - which might just resolve this -
Admin > System Extensions > Manage Config Wizards
Thanks - should have tried this first. Assumed (as always assumptions are the cause of many issues) that the wizards get updated with nagiosXI.
All working now as it did in the past.
Many thanks to those how replied.