When I try to schedule a downtime via the web interface I get the following error:
Error: Could not stat() command file ‘/usr/local/nagios/var/rw/nagios.cmd’!
I think I’ve done everything according to the manual but I guess I’ve missed something.
I’ve added these lines to httpd.conf
ScriptAlias /nagios/cgi-bin/ “/usr/local/nagios/sbin/”
’<‘Directory “/usr/local/nagios/sbin/”’>‘
AllowOverride AuthConfig
Options ExecCGI
Order allow,deny
Allow from all
’<’/Directory’>’
Alias /nagios “/usr/local/nagios/share/”
’<‘Directory “/usr/local/nagios/share”’>‘
Options None
AllowOverride AuthConfig
Order allow,deny
Allow from all
’<’/Directory’>’
I’ve created /usr/local/nagios/share/.htaccess and /usr/local/nagios/sbin/.htaccess with
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
require valid-user
I’ve created /usr/local/nagios/etc/htpasswd.users with
htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
I have created a group, nagioscmd, where I put both nagios and apache in.
The permissions of the /usr/local/nagios/var/rw directory is drwxrwsrwx.
In cgi.cfg I set the following
use_authentication=1
default_user_name=nagiosadmin
authorized_for_system_information=nagiosadmin
authorized_for_configuration_information=nagiosadmin
authorized_for_system_commands=nagiosadmin
authorized_for_all_services=nagiosadmin
authorized_for_all_hosts=nagiosadmin
authorized_for_all_service_commands=nagiosadmin
authorized_for_all_host_commands=nagiosadmin
I’ts pretty much a standard installation. I’m running version 2.0b2. Everything else works.
Does anyone have any ideas?