Schedule An Immediate Check - I have rtfm and stfw no help
Armin Irger
irger at fh-rosenheim.de
Fri Feb 7 16:04:41 CET 2003
Hi,
i using debian woody 3.0r1 and compiled nagios from the source. Nagios
is "jailed" in /opt/nagios-1.0 and accessing over a link /opt/nagios.
nagios.cfg settings:
check_external_commands=1
command_check_interval=-1
command_file=/opt/nagios/var/rw/nagios.cmd
I setup the nagios.cmd file how it be descripted in the commandfile.html
/usr/sbin/groupadd nagiocmd
/usr/sbin/usermod -G nagiocmd nagios
/usr/sbin/usermod -G nagiocmd nobody
mkdir /opt/nagios/var/rw
chown nagios.nagiocmd /opt/nagios/var/rw
chmod u+rwx /opt/nagios/var/rw
chmod g+rw /opt/nagios/var/rw
chmod g+s /opt/nagios/var/rw
The ls -l /opt/nagioss/var/ looks like
drwxrwSr-- 2 nagios nagiocmd 4096 Feb 7 15:10 rw
cgi.cfg settings:
authorized_for_system_information=nagiosadmin
authorized_for_configuration_information=nagiosadmin
authorized_for_system_commands=nagiosadmin
authorized_for_all_hosts=nagiosadmin,guest
authorized_for_all_service_commands=nagiosadmin
authorized_for_all_host_commands=nagiosadmin
I'am logged in as nagiosadmin and when i try to start a "Schedule an
immediate check of all services on this host" from the Host Command's i
get this error back after i commit the command.
Error: Could not stat() command file '/opt/nagios/var/rw/nagios.cmd'!
The external command file may be missing, Nagios may not be running,
and/or Nagios may not be checking external commands.
An error occurred while attempting to commit your command for
processing.
Greetings
Armin
--
Wundere dich nicht daß du nicht ankommst,
wenn du nicht weißt wo du hin willst.
====================================================================
Fachhochschule Rosenheim
Armin Irger
Hochschulstr. 1
D-83024 Rosenheim
Tel. +498031 805-532
Fax. +498041 805-519
====================================================================
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
More information about the Users
mailing list