[Pkg-nagios-devel] Bug#571801: Bug#571801: Error: Could not stat() command file /var/lib/nagios3/rw/nagios.cmd

Alexander Wirt formorer at formorer.de
Sun Feb 28 09:45:11 UTC 2010


tag 571801 wontfix
tag 538828 wontfix
merge 538828 571801
thanks

Vladimir Osintsev schrieb am Sonntag, den 28. Februar 2010:

> This bug was tagged as 'patch' becose bug report have step-by-step
> procedure to fix this issue. Tag 'confirmed' there becose this well
> known issue, I myself have encountered this problem, also I found many
> references to this problem in Google (the solution for Debian was
> taken from the Internet too). This fully corresponds to the value of
> this tags: http://www.debian.org/Bugs/Developer#tags
You mean like the one described in README.Debian:

External Commands
^^^^^^^^^^^^^^^^^
Nagios 3 is not configured to look for external commands in the
default configuration as a security feature. To enable external
commands, you need to allow the web server write access to the
nagios command pipe.  the simplest way of doing this is to
set check_external_commands=1 in your nagios configuration,
and then change the permissions in a way which will be maintained
across package upgrades (otherwise dpkg will overwrite your
permission changes).  The following is the recommended approach:

- activate external command checks in the nagios configuration. this
  can be done by setting check_external_commands=1 in the file
  /etc/nagios3/nagios.cfg.

- perform the following commands to change directory permissions and
  to make the changes permanent:

/etc/init.d/nagios3 stop
dpkg-statoverride --update --add nagios www-data 2710 /var/lib/nagios3/rw
dpkg-statoverride --update --add nagios nagios 751 /var/lib/nagios3
/etc/init.d/nagios3 start


This is done by intention and will not fixed. See also #538828 for more informations. 

Alex






More information about the Pkg-nagios-devel mailing list