5.6.3 reconfigure_nagios.lock permission denied

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Bitflogger
Posts: 226
Joined: Mon Oct 16, 2017 9:24 am

5.6.3 reconfigure_nagios.lock permission denied

Post by Bitflogger »

Hello, I am running v5.6.3 on a 64-bit VM CentOS 7 server.

Right after upgrading from 5.6.2 to 5.6.3, I now see this warning in the apply configuration output:

touch: cannot touch ‘/usr/local/nagiosxi/scripts/reconfigure_nagios.lock’: Permission denied

The file, does not seem to exist, when I check for it:

[user@server ~]$ ls -al /usr/local/nagiosxi/scripts/reconfigure_nagios.lock
ls: cannot access /usr/local/nagiosxi/scripts/reconfigure_nagios.lock: No such file or directory

I believe I have NO operational problems.

Is this anything to be concerned about?

In a case where there was a similar warning and an operational problem, you wanted the output of some commands, here they are:

[user@server ~]$ ls -lad /usr/local/nagiosxi
drwxr-xr-x 10 root nagios 102 May 1 2018 /usr/local/nagiosxi

[user@server ~]$ ls -lad /usr/local/nagiosxi/scripts
drwxr-xr-x 4 root nagios 4096 Jun 20 12:07 /usr/local/nagiosxi/scripts

[user@server ~]$ ls -la /usr/local/nagiosxi/scripts
total 984
drwxr-xr-x 4 root nagios 4096 Jun 20 12:07 .
drwxr-xr-x 10 root nagios 102 May 1 2018 ..
drwxr-xr-x 3 nagios nagios 35 Jul 2 2018 automation
-r-xr-x--- 1 root nagios 7766 Jun 20 12:07 backup_xi.sh
-r-xr-x--- 1 nagios nagios 8165 Jun 20 12:07 ccm_delete_object.php
-r-xr-x--- 1 nagios nagios 1041 Jun 20 12:07 ccm_export.php
-r-xr-x--- 1 nagios nagios 1630 Jun 20 12:07 ccm_import.php
-r-xr-x--- 1 nagios nagios 3180 Jun 20 12:07 ccm_snapshot.sh
-r-xr-x--- 1 root nagios 1800 Jun 20 12:07 change_timezone.sh
drwxr-xr-x 2 root nagios 55 Jun 6 12:14 components
-rwxr-xr-x 1 nagios nagios 2839 Jun 20 12:07 contact_notification_handler.php
-rwxr-xr-x 1 nagios nagios 660 May 1 2018 export_nagiosql.sh
-rw-r--r-- 1 nagios nagios 58 Jun 20 12:07 .gitignore
-rwxr-xr-x 1 nagios nagios 266 Jun 20 12:07 handle_nagioscore_event.php
-rwxr-xr-x 1 nagios nagios 3903 Jun 20 12:07 handle_nagioscore.inc.php
-rwxr-xr-x 1 nagios nagios 267 Jun 20 12:07 handle_nagioscore_notification.php
-rwxr-xr-x 1 nagios nagios 425 May 1 2018 import_nagiosql.sh
-r-xr-x--- 1 root nagios 1244 Jun 20 12:07 import_xiconfig.php
-rwxr-xr-x 1 nagios nagios 705 Jun 20 12:07 initialize_mibs.php
-rwxr-xr-x 1 nagios nagios 93 May 1 2018 kill_rrdtool.sh
-r-xr-x--- 1 root nagios 3428 Jun 20 12:07 manage_services.sh
-r-xr-x--- 1 root nagios 3815 Jun 20 12:07 manage_ssl_config.sh
-rwxr-xr-x 1 nagios nagios 160 Jul 2 2018 nagiosql.cookies
-rwxr-xr-x 1 nagios nagios 283685 Jun 20 12:07 nagiosql_defaults.sql
-rwxr-xr-x 1 nagios nagios 50995 Jun 27 2018 nagiosql.delete.contact
-rwxr-xr-x 1 nagios nagios 895 May 1 2018 nagiosql_delete_contact.php
-rwxr-xr-x 1 nagios nagios 1937 May 1 2018 nagiosql_delete_host.php
-rwxr-xr-x 1 nagios nagios 497 May 1 2018 nagiosql_delete_object.sh
-rwxr-xr-x 1 nagios nagios 75953 Jun 4 2018 nagiosql.delete.service
-rwxr-xr-x 1 nagios nagios 2766 May 1 2018 nagiosql_delete_service.php
-rwxr-xr-x 1 nagios nagios 50776 Jun 27 2018 nagiosql.delete.timeperiod
-rwxr-xr-x 1 nagios nagios 896 May 1 2018 nagiosql_delete_timeperiod.php
-rwxr-xr-x 1 nagios nagios 1272 May 1 2018 nagiosql_exportall.php
-rwxr-xr-x 1 nagios nagios 21943 Jul 2 2018 nagiosql.export.monitoring
-rwxr-xr-x 1 nagios nagios 1296 May 1 2018 nagiosql_importall.php
-rwxr-xr-x 1 nagios nagios 184750 Jun 27 2018 nagiosql.import.monitoring
-rwxr-xr-x 1 nagios nagios 40010 Jul 2 2018 nagiosql.login
-rwxr-xr-x 1 nagios nagios 1681 May 1 2018 nagiosql_login.php
-rwxr-xr-x 1 nagios nagios 2247 May 1 2018 nagiosql_snapshot.sh
-rwxr-xr-x 1 nagios nagios 200 May 1 2018 nagiosql_trim_backups.sh
-rwxr-xr-x 1 nagios nagios 366 May 1 2018 nagiosxi_dbtype.php
-rwxr-xr-x 1 nagios nagios 506 Jun 20 12:07 nom_create_nagioscore_checkpoint_cond.sh
-rwxr-xr-x 1 nagios nagios 986 Jun 20 12:07 nom_create_nagioscore_checkpoint.sh
-rwxr-xr-x 1 nagios nagios 785 Jun 20 12:07 nom_create_nagioscore_errorpoint.sh
-rwxr-xr-x 1 nagios nagios 968 Jun 20 12:07 nom_restore_nagioscore_checkpoint.sh
-rwxr-xr-x 1 nagios nagios 947 Jun 20 12:07 nom_restore_nagioscore_checkpoint_specific.sh
-rwxr-xr-x 1 nagios nagios 4627 Jun 20 12:07 nom_trim_checkpoints.sh
-rwxr-xr-x 1 nagios nagios 2893 May 1 2018 nom_trim_nagioscore_checkpoints.sh
-rwxr-xr-x 1 nagios nagios 7779 Jun 20 12:07 nxti_import.php
-rwxr-xr-x 1 nagios nagios 1351 Jun 20 12:07 nxti.php
-rwxr-xr-x 1 nagios nagios 12484 Jun 20 12:07 parse_core_eventlog.php
-rwxr-xr-x 1 nagios nagios 6716 Jun 20 12:07 patch_ndoutils.php
-rwxr-xr-x 1 nagios nagios 971 Jun 20 12:07 reconfigure_nagios.sh
-rwxr-xr-x 1 nagios nagios 4224 Jun 20 12:07 remove_historical_data.sh
-r-xr-x--- 1 root nagios 1705 Jun 20 12:07 repair_databases.sh
-rwxr-xr-x 1 nagios nagios 3895 Jun 20 12:07 repairmysql.sh
-r-xr-x--- 1 root nagios 4835 Jun 20 12:07 reset_config_perms.sh
-rwxr-xr-x 1 nagios nagios 1859 Jun 20 12:07 reset_nagiosadmin_password.php
-rwxr-xr-x 1 nagios nagios 1874 Jun 20 12:07 restart_nagios_with_export.sh
-rwxr-xr-x 1 nagios nagios 4027 Jun 20 12:07 restore_defaults.sh
-rwxr-xr-x 1 nagios nagios 13105 Jun 20 12:07 restore_xi.sh
-rwxr-xr-x 1 nagios nagios 1908 Jun 20 12:07 send_to_auditlog.php
-rwxr-xr-x 1 nagios nagios 2702 May 1 2018 uninstall_xi.sh
-rwxr-xr-x 1 nagios nagios 1345 Jun 20 12:07 unlock_user_account.php
-rwxr-xr-x 1 nagios nagios 722 Jun 20 12:07 update_check.php
-r-xr-x--- 1 root nagios 2914 Jun 20 12:07 upgrade_to_latest.sh
[user@server ~]$
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: 5.6.3 reconfigure_nagios.lock permission denied

Post by scottwilkerson »

I believe this is a bug and it has been sent to our developers, however the lock by design is only there to limit simultaneous Apply configurations ans shouldn't have and harmful affects.

This should be fixed in a future release.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Bitflogger
Posts: 226
Joined: Mon Oct 16, 2017 9:24 am

Re: 5.6.3 reconfigure_nagios.lock permission denied

Post by Bitflogger »

Hello,

OK, please lock the case.

Thanks!
Locked