Schedule An Immediate Check - I have rtfm and stfw no help

Michael W. Oliver michael at gargantuan.com
Fri Feb 7 17:06:26 CET 2003


I am receiving the exact same error while trying this on my FreeBSD server.
I followed the FAQ instructions to the letter, and all permissions are just
as they should be, and 'nobody' is in the 'nagiocmd' group.

Still no joy...

--
------------------------------------------------------------------------
       Michael W. Oliver, CCNP |
         IPv6 & FreeBSD mizark | "The tree of liberty must be refreshed
        michael at gargantuan.com |   from time to time with the blood of
http://michael.gargantuan.com/ |   patriots and tyrants."
           (via IPv4 and IPv6) |     - President Thomas Jefferson
IPv6 ASPathTree, Looking Glass |
------------------------------------------------------------------------




----- Original Message -----
From: "Armin Irger" <irger at fh-rosenheim.de>
To: <nagios-users at lists.sourceforge.net>
Sent: Friday, February 07, 2003 10:04 AM
Subject: [Nagios-users] Schedule An Immediate Check - I have rtfm and stfw
no help


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 =omething 2 See!
http://www.vasoftware.com
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users



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