Univention Bugzilla – Bug 43416
permission of /var/lib/nagios3/ changed after update
Last modified: 2022-06-27 17:49:02 CEST
A customer reported, that he could not trigger nagios to re-schedule a check. He gets the following error message in the external Command Interface: --------------------------------------------------------------------------------- Error: Could not stat() command file '/var/lib/nagios3/rw/nagios.cmd'! The external command file may be missing, Nagios may not be running, and/or Nagios may not be checking external commands. An error occurred while attempting to commit your command for processing. --------------------------------------------------------------------------------- This error is caused by wrong directory permissions, which were set in an update. The ucr-variable 'nagios/server/checkexternalcmd' is already set to yes. Setting this variable again to yes, the permissions are updated correctly. ------------------------------------------------------------------------------ wrong permissions: root@ucs-master-412:/var/lib/nagios3/rw# ls -lah insgesamt 8,0K drwxr-s--- 2 nagios www-data 4,0K Dez 24 23:24 . drwxr-x--- 4 nagios nagios 4,0K Jan 22 07:25 .. prw-rw---- 1 nagios www-data 0 Jan 22 08:06 nagios.cmd ------------------------------------------------------------------------------ corrected permissions with ucr set nagios/server/checkexternalcmd='yes' root@ucs-master-412:/var/lib/nagios3/rw# ls -lah insgesamt 8,0K drwxr-s--- 2 nagios www-data 4,0K Dez 24 23:24 . drwxr-x--- 4 nagios www-data 4,0K Jan 22 08:25 .. prw-rw---- 1 nagios www-data 0 Jan 22 08:06 nagios.cmd
*** This bug has been marked as a duplicate of bug 43256 ***