incorrect filesystem permissions prevent nagios command checking from working
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nagios3 (Debian) |
Fix Released
|
Unknown
|
|||
nagios3 (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: nagios3
Once external command checking has been enabled in nagios.cfg the following error message is reported when attempting to use external commands:
---
Error: Could not stat() command file '/var/lib/
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.
---
Reported on several websites are the following steps to resolve the problem:
---
sudo /etc/init.d/nagios3 stop
sudo dpkg-statoverride --update --add nagios www-data 2710 /var/lib/nagios3/rw
sudo dpkg-statoverride --update --add nagios nagios 751 /var/lib/nagios3
sudo /etc/init.d/nagios3 start
---
These filesystem permissions should be the default unless there is a compelling reason not to or a more secure solution to this problem.
Websites offering this solution:
---
* http://
* https:/
* http://
* http://
---
tags: |
added: nagios removed: nagio |
Changed in nagios3 (Debian): | |
status: | Unknown → Won't Fix |
Changed in nagios3 (Debian): | |
status: | Won't Fix → Fix Released |
This is done in the Debian package as a "security feature", as documented in /usr/share/ doc/nagios3/ README. Debian bugs.debian. org/cgi- bin/bugreport. cgi?bug= 478889
See also http://