SNMP router/switch config wizard not working

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
djcomber
Posts: 43
Joined: Sat Nov 28, 2015 5:22 am

SNMP router/switch config wizard not working

Post 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.
vAJ
Posts: 456
Joined: Thu Nov 08, 2012 5:09 pm
Location: Austin, TX

Re: SNMP router/switch config wizard not working

Post by vAJ »

What version of the wizard are you running?
Andrew J. - Do you even grok?
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: SNMP router/switch config wizard not working

Post 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
Be sure to check out the Knowledgebase for helpful articles and solutions!
djcomber
Posts: 43
Joined: Sat Nov 28, 2015 5:22 am

Re: SNMP router/switch config wizard not working

Post 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.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: SNMP router/switch config wizard not working

Post by Box293 »

Run this command on your XI server in an SSH session:

Code: Select all

tail /var/log/httpd/error_log -f
Go and run the wizard to reproduce the problem.

Please post here the output produced in the SSH session.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
djcomber
Posts: 43
Joined: Sat Nov 28, 2015 5:22 am

Re: SNMP router/switch config wizard not working

Post by djcomber »

The details I enter
Image

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
vAJ
Posts: 456
Joined: Thu Nov 08, 2012 5:09 pm
Location: Austin, TX

Re: SNMP router/switch config wizard not working

Post by vAJ »

Can you grab the versions of your installed SNMP packages?

Cent/RHEL:

Code: Select all

rpm -qa | grep snmp
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?
Andrew J. - Do you even grok?
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: SNMP router/switch config wizard not working

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: SNMP router/switch config wizard not working

Post 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
Be sure to check out the Knowledgebase for helpful articles and solutions!
djcomber
Posts: 43
Joined: Sat Nov 28, 2015 5:22 am

Re: SNMP router/switch config wizard not working

Post 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.
Locked