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

Vladimir Osintsev osintsev at gmail.com
Sun Feb 28 05:23:32 UTC 2010


Package: nagios3-common
Version: 3.2.0-4
Severity: normal
File: /var/lib/nagios3
Tags: confirmed patch

I stumbled about this nagios error when I try to send directs commands via the web-interface:

Error: Could not stat() command file ‘/var/lib/nagios3/rw/nagios.cmd’!

In nagios.cfg file the "check_external_commands=1" already set.

Procedure for fixing this bug:

# /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


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-2-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages nagios3-common depends on:
ii  adduser            3.112                 add and remove users and groups
ii  bsd-mailx [mailx]  8.1.2-0.20090911cvs-2 simple mail user agent
ii  coreutils          8.4-1                 GNU core utilities
ii  lsb-base           3.2-23                Linux Standard Base 3.2 init scrip
ii  nagios-plugins-bas 1.4.14-1              Plugins for the nagios network mon
ii  ucf                3.0025                Update Configuration File: preserv

Versions of packages nagios3-common recommends:
pn  nagios-plugins                <none>     (no description available)

nagios3-common suggests no packages.

-- no debconf information





More information about the Pkg-nagios-devel mailing list