nagios external command error

Guillermo Padilla gpadilla at cbct.com
Tue Jul 12 17:50:51 CEST 2005


Ahh. That's my fault cut-n-paste oops is right.  There's only one file
in that dir. Here it is again:

[root at watchdog rw]# ls -al
total 12
drwxrwsr-x  2 nagios nagiocmd 4096 Jul 12 11:25 .
drwxrwxr-x  4 nagios nagios   4096 Jul 12 11:47 ..
prw-rw----  1 nagios nagiocmd    0 Jul 12 11:25 nagios.cmd



-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of C.
Bensend
Sent: Tuesday, July 12, 2005 11:43 AM
To: nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] nagios external command error


> ls -al /usr/local/nagios/var/rw
> total 12
> drwxrwsr-x  2 nagios nagiocmd 4096 Jul 12 11:25 .
> drwxrwxr-x  4 nagios nagios   4096 Jul 12 11:28 ..
> prw-rw----  1 nagios nagiocmd    0 Jul 12 11:25 nagios.cmd
>
>
> prw-rw----  1 nagios nagiocmd    0 Jul 12 11:25 nagios.cmd

Um, what's up with that?

Is there just the one single nagios.cmd file there and there
was a cut-n-paste oops, or are there two files that _appear_
to the be same filename, but likely with spaces/control chars
in the filename of one?

> [root at watchdog rw]# grep nagios /etc/group
> nagios:x:502:
> nagiocmd:x:503:nagios,nobody

OK.

> [root at watchdog rw]# grep ^User /usr/local/apache/conf/httpd.conf
> User nobody
> UserDir public_html

OK.

> [root at watchdog rw]# grep ^Group /usr/local/apache/conf/httpd.conf
> Group #-1

I've never seen anyone use a numerical GID there, but I'm sure
it's probably valid.  Can you try changing it to:

Group nagioscmd

and restarting (actually stop, check for processes, and start)
Apache?


-- 
"I'd rather staple a skunk to my forehead and go to a trade show
for banjo makers."                            -- PHB's secretary,
                                                 Dilbert, 07-2002



-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar
happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by
HP, 
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
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




-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP, 
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
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





More information about the Users mailing list