Issue w/External Commands

Carroll, Jim P [Contractor] jcarro10 at sprintspectrum.com
Tue Feb 18 17:34:17 CET 2003


Marc, have another coffee and take another look at Daniel's output.  :)

He used the 'groups' command which identifies which groups a given username
belongs to.  Looks like both apache and nagios belong to the nagiocmd group
(aside from their own groups).

Daniel, all I can suggest at this point is to start checking logfiles:  for
Apache, /var/log/messages, the Nagios logfiles.  You might also want to try
doing an strace.

This might be overkill, but it seems Daniel has done The Right Things
otherwise.

Although... Daniel, could you indulge us, and competely shutdown both nagios
and apache, do a ps to confirm that both are down (and "pkill -9" them if
they aren't), then restart them and see if that doesn't help...?

Food for thought.

jc

> -----Original Message-----
> From: Marc Powell [mailto:mpowell at ena.com]
> Sent: Tuesday, February 18, 2003 7:52 AM
> To: Daniel Jimenez; Nagios users list
> Subject: RE: [Nagios-users] Issue w/External Commands
> 
> 
> Sorry for the HTML previously. I seldom send from this client...
> 
> You've got it backwards. You should have a group called 
> nagioscmd with nagios and apache being members:
> 
> nagioscmd:x:<gid>:nagios,apache
> 
> Make that modification, restart apache and you should be good to go.
> 
> --
> Marc
> 
> 
> 
> -----Original Message-----
> From: Daniel Jimenez [mailto:DanielJ at avatar-cs.net] 
> Sent: Tuesday, February 18, 2003 6:25 AM
> To: 'Rasmus Plewe'; Nagios users list
> Subject: RE: [Nagios-users] Issue w/External Commands
> 
> drwxrwS---    2 nagios   nagiocmd     4096 Feb 18 00:30 
> /usr/local/nagios/var/rw 
> root       834     1  0 00:30 ?        00:00:00 /usr/sbin/httpd 
> apache     883   834  0 00:30 ?        00:00:00 /usr/sbin/httpd 
> apache     884   834  0 00:30 ?        00:00:00 /usr/sbin/httpd 
> apache     885   834  0 00:30 ?        00:00:00 /usr/sbin/httpd 
> apache     886   834  0 00:30 ?        00:00:00 /usr/sbin/httpd 
> apache     887   834  0 00:30 ?        00:00:00 /usr/sbin/httpd 
> apache     888   834  0 00:30 ?        00:00:00 /usr/sbin/httpd 
> apache     889   834  0 00:30 ?        00:00:00 /usr/sbin/httpd 
> apache     890   834  0 00:30 ?        00:00:00 /usr/sbin/httpd 
> [root at johnny5 var]# groups apache 
> apache : apache nagiocmd 
> [root at johnny5 var]# groups nagios 
> nagios : nagios nagiocmd 
> Pretty standard RH8 install. Httpd installed during OS build. 
> -----Original Message----- 
> From: Rasmus Plewe [mailto:rplewe at hpce.nec.com] 
> Sent: Tuesday, February 18, 2003 3:00 AM 
> To: Nagios users list 
> Subject: Re: [Nagios-users] Issue w/External Commands 
> 
> On Tue, Feb 18, 2003 at 12:04:36AM -0600, Daniel Jimenez wrote: 
> >    On Mon, 17 Feb 2003, Daniel Jimenez wrote: 
> >    > 
> >    > My problem is that whenever I go to add host/service 
> comments I'm 
> >    > returned w/ 
> >    > 
> >    > Error: Could not stat() command file 
> >    '/usr/local/nagios/var/rw/nagios.cmd'! 
> >    > 
> >    > Anyone have any insight? 
> >    > 
> >    > Daniel Jimenez 
> >    -----Original Message----- 
> >    From: Subhendu Ghosh [[1]mailto:sghosh at sghosh.org] 
> >    Sent: Monday, February 17, 2003 11:37 PM 
> >    To: 'nagios-users at lists.sourceforge.net' 
> >    Subject: Re: [Nagios-users] Issue w/External Commands 
> > 
> >    
http://www.nagios.org/faqs/viewfaq.php?faq_id=58&expand=false&showdesc=true 
> 
>    Subhendu, 
> 
>    These are actually the steps I followed to set this up. I've gone over 
>    the steps at least twenty times and find no mistakes. 
> 
>    Daniel 

Excuse my disbelief, but with unixoide operating systems I still think 
that if you do something right, it will work. 
Could you please post the output of: 
ls -ld /usr/local/nagios/var/rw  
ps -ef | grep httpd 
grep <user obtained from previous command> /etc/group 

Please try to avoid mailing in HTML. At least on this list. 

Rasmus 
-- 
In the beginning was The Word and The Word was 
Content-type: text/plain 

------------------------------------------------------- 
This sf.net email is sponsored by:ThinkGeek 
Welcome to geek heaven. 
http://thinkgeek.com/sf 
_______________________________________________ 
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:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
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:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
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