Schedule An Immediate Check - I have rtfm and stfw no help
Carroll, Jim P [Contractor]
jcarro10 at sprintspectrum.com
Fri Feb 7 23:21:30 CET 2003
http://nagios.sourceforge.net/docs/1_0/commandfile.html
> -----Original Message-----
> From: Michael W. Oliver [mailto:michael at gargantuan.com]
> Sent: Friday, February 07, 2003 11:43 AM
> To: nagios-users at lists.sourceforge.net
> Subject: Re: [Nagios-users] Schedule An Immediate Check - I have rtfm
> and stfw no help
>
>
> more information...
>
> # ls /usr/local/nagios/var/rw
> total 2
> drwxrwS--- 2 nagios nagiocmd 512 Feb 5 15:11 ./
> drwxrwxr-x 4 nagios nagios 512 Feb 7 12:41 ../
> prw-rw---- 1 nagios nagiocmd 0 Feb 5 15:11 nagios.cmd|
>
> # grep nagiocmd /etc/group
> nagiocmd:*:55554:nagios,nobody
>
> Now, I see in the 'SOLVED' reply that the 'nagios.cmd' file
> was created by
> the Nagios process with nagios:nagios ownership, but mine
> isn't created that
> way. As you can see above, my nagios.cmd file is created with
> nagios:nagiocmd ownership. You can also see that 'nobody' is
> part of the
> 'nagiocmd' group, which _should_ give 'nobody' rw access to
> the nagios.cmd
> file. Even so, I still receive that error when trying to
> execute a command
> from the browser. BAH!
>
> In addition, in the 'SOLVED' reply, it looks like the user
> 'nobody' was
> added to the 'nagios' group, effectively eliminating the need for the
> 'nagiocmd' group. Isn't this insecure, putting the 'nobody'
> user in the
> 'nagios' group, effectively giving that user permission to
> everything that
> Nagios has permission to? I was under the impression that
> the whole purpose
> of creating the new group was to limit the access of the
> 'nobody' user.
>
> What am I missing? Thanks!
>
> --
> --------------------------------------------------------------
> ----------
> 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: "Michael W. Oliver" <michael at gargantuan.com>
> To: <nagios-users at lists.sourceforge.net>
> Sent: Friday, February 07, 2003 11:06 AM
> Subject: Re: [Nagios-users] Schedule An Immediate Check - I
> have rtfm and
> stfw no help
>
>
> 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 =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
> _______________________________________________
> 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