Network Switch Wizard No Longer Working

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
silverbenz
Posts: 30
Joined: Wed Nov 14, 2012 9:06 pm

Network Switch Wizard No Longer Working

Post by silverbenz »

Hi there,

The Network Switch / Router wizard in my XI install appears to have stopped working properly. The wizard will run and everything seems normal, but no services are created at the end of the process. There are no errors shown on any page and the final screen is the same success screen as it has always been, but there is no link to view status of the host I've just run the wizard against. Checking the configuration snapshots shows the last commit had no changes. I've tried two different devices today with the same result. I have previously run this wizard dozens of times successfully, though I haven't needed to for some time. It's possible I've upgraded from XI 5.8.6 to 5.8.7 since the last successful run, but I'm not sure.

I have tested and confirmed that I am able to create a service manually (eg. Ping) against the same host as the Switch wizard is failing against.

In doing a bit of troubleshooting I can see that the permissions on the files created under /etc/mrtg/conf.d are different from the other cfg files in this directory, eg:

Code: Select all

-rwxrwxr-x  1 apache nagios  32K Feb 27  2020 10.56.7.29.cfg
-rw-r--r--  1 apache apache  92K Feb  3 09:52 10.56.7.36.cfg <-- THIS IS THE PROBLEM ONE
-rwxrwxr-x  1 apache nagios 117K Feb 25  2020 10.56.7.4.cfg
As you can see, both the permissions and the ownership of the file appear to be wrong compared to other cfg files.

This same ownership issue is also present for the associated RRD files in the /var/lib/mrtg directory, eg:

Code: Select all

-rw-rw-r-- 1 apache apache 103K Feb  3 15:59 /var/lib/mrtg/10.56.7.36_580.rrd
I've reviewed the nagios_services table in the 'nagios' database and can confirm that none of the interface bandwidth services were created (I didn't select the Status check for any of them).

I've also reviewed the /var/log/httpd/error_log and the only thing that stands out to me (aside from what appears to be normal MRTG output written to this error file), is this line that appears at the end of each section of MRTG output:

Code: Select all

sed: -e expression #1, char 76: unterminated `s' command
My setup:
Nagios XI version: 5.8.7
Release info: <hostname> 3.10.0-1062.4.1.el7.x86_64 x86_64
CentOS Linux release 7.7.1908 (Core)
Gnome is not installed
Install Type: ova
Version of Network Switch Wizard: 2.5.4

I'm happy to provide any further information if needed.

Many thanks.
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: Network Switch Wizard No Longer Working

Post by pbroste »

Hello @silverbenz

Thanks for reaching out, want to check for an upgrade we see that the latest version is 2.5.6. In the web console -> Admin > System Extensions > Manage Config Wizards:

First [Check for Updates] and if that does not trigger an upgrade then grab it from here:

https://exchange.nagios.org/directory/A ... rd/details

Thanks,
Perry
silverbenz
Posts: 30
Joined: Wed Nov 14, 2012 9:06 pm

Re: Network Switch Wizard No Longer Working

Post by silverbenz »

Thanks Perry.

Didn't realise I was so far behind with the component updates. I'll give this a try and let you know in this thread.

Ben.
silverbenz
Posts: 30
Joined: Wed Nov 14, 2012 9:06 pm

Re: Network Switch Wizard No Longer Working

Post by silverbenz »

Hi Perry,

Updating the wizard version appears to have fixed the issue. Upgraded to 2.5.9 as that was the one presented when I Checked for Updates.

Thanks again for the assistance. Please feel free to close this off.

Cheers,
Ben.
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: Network Switch Wizard No Longer Working

Post by pbroste »

Excellent, thanks for letting us know that resolved the issue. Locking this one up.
Perry
Locked