Oops.
All it needed was
/etc/nagios2#/etc/init.d/nagios2 stop
Stopping nagios2 monitoring daemon: nagios2.
/etc/nagios2# dpkg-statoverride –update –add nagios www-data 2710 /var/lib/nagios2/rw
/etc/nagios2# dpkg-statoverride –update –add nagios nagios 751 /var/lib/nagios2
/etc/nagios2# /etc/init.d/nagios2 start
Starting nagios2 monitoring daemon: nagios2.
ref. http://ubuntuforums.org/showthread.php?t=458375
Popularity: 1% [?]

Popularity: 1% [?]

Continue reading about Error: Could not stat() command file ‘/var/lib/nagios2/rw/nagios.cmd’!

Leo on April 3rd, 2009

Table 2. Plugin Return Codes

Numeric Value
Service Status
Status Description

0
OK
The plugin was able to check the service and it appeared to be functioning properly

1
Warning
The plugin was able to check the service, but it appeared to be above some “warning” threshold or did not appear to be working properly

2
Critical
The plugin detected [...]

Popularity: 1% [?]

Continue reading about Nagios plugin return codes

stop nagios2
/etc/nagios2# dpkg-statoverride –update –add nagios www-data 2710 /var/lib/nagios2/rw
/etc/nagios2# dpkg-statoverride –update –add nagios nagios 751 /var/lib/nagios2
start nagios2
Good stuff!

Leonardo
Popularity: 1% [?]

Popularity: 1% [?]

Continue reading about Error: Could not stat() command file ‘/var/lib/nagios2/rw/nagios.cmd’!

stop nagios2
/etc/nagios2# dpkg-statoverride –update –add nagios www-data 2710 /var/lib/nagios2/rw
/etc/nagios2# dpkg-statoverride –update –add nagios nagios 751 /var/lib/nagios2
start nagios2
Popularity: 100% [?]

Popularity: 100% [?]

Continue reading about Error: Could not stat() command file ‘/var/lib/nagios2/rw/nagios.cmd’!