Bug 43416 - permission of /var/lib/nagios3/ changed after update
permission of /var/lib/nagios3/ changed after update
Status: RESOLVED DUPLICATE of bug 43256
Product: UCS
Classification: Unclassified
Component: Monitoring (Prometheus or Nagios)
UCS 4.1
Other Linux
: P5 normal (vote)
: ---
Assigned To: Nagios maintainers
UCS maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-01-25 10:03 CET by Christina Scheinig
Modified: 2022-06-27 17:49 CEST (History)
2 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 4: Minor Usability: Impairs usability in secondary scenarios
Who will be affected by this bug?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.091
Enterprise Customer affected?: Yes
School Customer affected?: Yes
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2017012321000081
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christina Scheinig univentionstaff 2017-01-25 10:03:58 CET
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
Comment 1 Erik Damrose univentionstaff 2017-01-25 11:15:57 CET

*** This bug has been marked as a duplicate of bug 43256 ***