Network Switch Wizard No Longer Working
Posted: Thu Feb 03, 2022 1:31 am
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:
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:
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:
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.
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
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 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
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.