Fully updated RHEL 7.8 x64
NagiosXI 5.7.3
We've been running NagiosXI for quite some time without issues. After updating to 5.7.0 a few months ago we started seeing odd problems. These have continued and are still present in 5.7.3
1) When updating or changing services in CCM we always get the following error:
There was a problem updating the selected item type: service
ID: 3073
Errors while deleting the old configuration file: hostname-redacted.cfg - please check permissions!
Config file: /usr/local/nagios/etc/services//hostname-redacted.cfg failed to delete, check permissions and delete file manually!
There is no permissions issue that I can see. The files in the directory look correct and Nagios is even updating and writing files there, so not sure why it is complaining. Files in that directory look like so:
-rw-rw-r--. 1 apache nagios 9444 Aug 24 09:46 hostname-redacted1.cfg
-rw-rw-r--. 1 apache nagios 9355 Aug 24 14:10 hostname-redacted2.cfg
2) We have been unable to add new hosts with the bulk cloning wizard since the upgrade. Typically when I'm adding a new host I just select one that is already present in the clone wizard, complete it, and then the new host and service checks appear. The wizard completes without error, however if you try to go to the host or services you get: "No matching services found - showing matching hosts instead." Both of which are empty. The host/service do not appear anywhere in CCM or in Nagios.
For both of these error nothing interesting appears in /var/log/messages. Nagios is restarted correctly and does not complain anywhere.
Numerous issues after updating from 5.6 to 5.7
Re: Numerous issues after updating from 5.6 to 5.7
Both sound related to the CCM config. Could you provide screenshots of the errors so we can better understand where they are coming from?
Try removing and reapplying the configuration by going to Configure > Core Config Manager > Tools > Config File Management, and clicking:
Delete Files
Write Configs
Verify Files
Restart Nagios Core
and then apply the configuration again under Configure > Quick Tools > Apply Configuration.
Try removing and reapplying the configuration by going to Configure > Core Config Manager > Tools > Config File Management, and clicking:
Delete Files
Write Configs
Verify Files
Restart Nagios Core
and then apply the configuration again under Configure > Quick Tools > Apply Configuration.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Numerous issues after updating from 5.6 to 5.7
Thanks, I actually found the issue from that. Verify was giving me a permissions error as well, so I went looking and found that Selinux had been turned on by our security team. Temporarily disabling it allows everything to function normally. Is there an official module I can load for Selinux compatibility, or will I have to make my own for Nagios?
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Numerous issues after updating from 5.6 to 5.7
We do not have an official Selinux module for Nagiosdhalik wrote:Thanks, I actually found the issue from that. Verify was giving me a permissions error as well, so I went looking and found that Selinux had been turned on by our security team. Temporarily disabling it allows everything to function normally. Is there an official module I can load for Selinux compatibility, or will I have to make my own for Nagios?
Re: Numerous issues after updating from 5.6 to 5.7
Ok thanks, I'll handle it. This can be considered resolved.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Numerous issues after updating from 5.6 to 5.7
Greatdhalik wrote:Ok thanks, I'll handle it. This can be considered resolved.
Locking thread