Alarm/Notification changes not possible due to permissions
Posted: Thu Aug 05, 2021 4:53 am
Hi Nagios team,
Could you please assist us in resolving an issue we are having with our current XI setup.
Currently we have a host of alarms configured which have been overtuned and are spamming some of my colleagues. I would like to adjust the thresholds of some, to modify warning/critical values, or simply delete various notifications altogether.
However it seems that all of our users share the same problem at the moment. When entering CCM we are notified to apply the configuration we are greeted with the following error resulting in us unable to apply our changes.

Initially I received the message that my user permissions were not set right and to perform the following actions.
The permissions on the Nagios XI configuration scripts appear to be okay.
Config Files
The following configuration files have incorrect permissions:
/usr/local/nagios/etc/commands.cfg (OWNER=nagios, GROUP=users, PERMS=-rw-rw-r--)
/usr/local/nagios/etc/contactgroups.cfg (OWNER=nagios, GROUP=users, PERMS=-rw-rw-r--)
/usr/local/nagios/etc/contacts.cfg (OWNER=nagios, GROUP=users, PERMS=-rw-rw-r--)
/usr/local/nagios/etc/contacttemplates.cfg (OWNER=nagios, GROUP=users, PERMS=-rw-rw-r--)
/usr/local/nagios/etc/hostdependencies.cfg (OWNER=nagios, GROUP=users, PERMS=-rw-rw-r--)
/usr/local/nagios/etc/hostescalations.cfg (OWNER=nagios, GROUP=users, PERMS=-rw-rw-r--)
/usr/local/nagios/etc/hostextinfo.cfg (OWNER=nagios, GROUP=users, PERMS=-rw-rw-r--)
/usr/local/nagios/etc/hostgroups.cfg (OWNER=nagios, GROUP=users, PERMS=-rw-rw-r--)
/usr/local/nagios/etc/hosttemplates.cfg (OWNER=nagios, GROUP=users, PERMS=-rw-rw-r--)
/usr/local/nagios/etc/servicedependencies.cfg (OWNER=nagios, GROUP=users, PERMS=-rw-rw-r--)
/usr/local/nagios/etc/serviceescalations.cfg (OWNER=nagios, GROUP=users, PERMS=-rw-rw-r--)
/usr/local/nagios/etc/serviceextinfo.cfg (OWNER=nagios, GROUP=users, PERMS=-rw-rw-r--)
/usr/local/nagios/etc/servicegroups.cfg (OWNER=nagios, GROUP=users, PERMS=-rw-rw-r--)
/usr/local/nagios/etc/servicetemplates.cfg (OWNER=nagios, GROUP=users, PERMS=-rw-rw-r--)
/usr/local/nagios/etc/timeperiods.cfg (OWNER=nagios, GROUP=users, PERMS=-rw-rw-r--)
Each of these config files needs to be writable by the apache and nagios users. To fix this problem, follow these steps:
Login to your Nagios XI server via SSH as the root user
Execute the following commands:
/usr/local/nagiosxi/scripts/reset_config_perms.sh
This was done and no problems appeared to occur when running the script, but I still received the above error. I have tried to examine the error itself and locate the source of the problem, but I do not see anything wrong.
Could you please provide a little assistance or guidance on the next course of action?
Thanks
Xavier
Could you please assist us in resolving an issue we are having with our current XI setup.
Currently we have a host of alarms configured which have been overtuned and are spamming some of my colleagues. I would like to adjust the thresholds of some, to modify warning/critical values, or simply delete various notifications altogether.
However it seems that all of our users share the same problem at the moment. When entering CCM we are notified to apply the configuration we are greeted with the following error resulting in us unable to apply our changes.

Initially I received the message that my user permissions were not set right and to perform the following actions.
The permissions on the Nagios XI configuration scripts appear to be okay.
Config Files
The following configuration files have incorrect permissions:
/usr/local/nagios/etc/commands.cfg (OWNER=nagios, GROUP=users, PERMS=-rw-rw-r--)
/usr/local/nagios/etc/contactgroups.cfg (OWNER=nagios, GROUP=users, PERMS=-rw-rw-r--)
/usr/local/nagios/etc/contacts.cfg (OWNER=nagios, GROUP=users, PERMS=-rw-rw-r--)
/usr/local/nagios/etc/contacttemplates.cfg (OWNER=nagios, GROUP=users, PERMS=-rw-rw-r--)
/usr/local/nagios/etc/hostdependencies.cfg (OWNER=nagios, GROUP=users, PERMS=-rw-rw-r--)
/usr/local/nagios/etc/hostescalations.cfg (OWNER=nagios, GROUP=users, PERMS=-rw-rw-r--)
/usr/local/nagios/etc/hostextinfo.cfg (OWNER=nagios, GROUP=users, PERMS=-rw-rw-r--)
/usr/local/nagios/etc/hostgroups.cfg (OWNER=nagios, GROUP=users, PERMS=-rw-rw-r--)
/usr/local/nagios/etc/hosttemplates.cfg (OWNER=nagios, GROUP=users, PERMS=-rw-rw-r--)
/usr/local/nagios/etc/servicedependencies.cfg (OWNER=nagios, GROUP=users, PERMS=-rw-rw-r--)
/usr/local/nagios/etc/serviceescalations.cfg (OWNER=nagios, GROUP=users, PERMS=-rw-rw-r--)
/usr/local/nagios/etc/serviceextinfo.cfg (OWNER=nagios, GROUP=users, PERMS=-rw-rw-r--)
/usr/local/nagios/etc/servicegroups.cfg (OWNER=nagios, GROUP=users, PERMS=-rw-rw-r--)
/usr/local/nagios/etc/servicetemplates.cfg (OWNER=nagios, GROUP=users, PERMS=-rw-rw-r--)
/usr/local/nagios/etc/timeperiods.cfg (OWNER=nagios, GROUP=users, PERMS=-rw-rw-r--)
Each of these config files needs to be writable by the apache and nagios users. To fix this problem, follow these steps:
Login to your Nagios XI server via SSH as the root user
Execute the following commands:
/usr/local/nagiosxi/scripts/reset_config_perms.sh
This was done and no problems appeared to occur when running the script, but I still received the above error. I have tried to examine the error itself and locate the source of the problem, but I do not see anything wrong.
Could you please provide a little assistance or guidance on the next course of action?
Thanks
Xavier