After an emerge on new apache(2.2.6) with modular vhost configuration, i get the error "Error: Could not open command file '/var/log/nagios/rw/nagios.cmd' for update!" when try to use the re-scedule command function, i see no nagios.cmd in the rw dir.
All the other nagios function are ok.

All my nagios cfg(follow) shold be correct. I miss some configuration on apache?

#cgi.cfg
nagios_check_command=/usr/nagios/libexec/check_nagios -e 5 -C '/usr/nagios/bin/nagios' -F '/var/log/nagios/status.log'

#nagios.cfg
command_file=/var/log/nagios/rw/nagios.cmd
command_check_interval=-1
check_external_commands=1

# ls -al /var/log/nagios/
total 320
drwxr-x--- 3 nagios apache   4096 Oct 18 10:50 .
drwxr-xr-x 9 root   root     4096 Oct 12 15:13 ..
-rw-rw-r-- 1 nagios nagios    238 Oct 15 15:45 comment.log
-rw-rw-r-- 1 nagios nagios    239 Oct 12 16:19 downtime.log
-rw-r--r-- 1 nagios nagios 134089 Oct 18 10:50 nagios.log
-rw------- 1 nagios nagios  36922 Oct 12 16:01 nagios.tmpqJpGIs
drwxr-sr-x 2 nagios apache   4096 Oct 18 10:24 rw
-rw-rw-r-- 1 nagios nagios 119715 Oct 18 10:50 status.log

Ty
-- 
Riccardo Cupardo




-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Nagios-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Reply via email to