service - to monitor or not to monitor

Gerald Wichmann gwichman at zantaz.com
Fri Nov 15 01:11:54 CET 2002


Yes..so I'm not sure what it's problem is.. 
 
[root at PS-NAT var]# ps auxw | grep httpd
root     15833  0.1  0.3  3812 1628 ?        S    16:02   0:00
/usr/local/apache2/bin/httpd -k start
www      15834  0.0  0.3  3940 1972 ?        S    16:02   0:00
/usr/local/apache2/bin/httpd -k start
www      15835  0.0  0.3  3880 1684 ?        S    16:02   0:00
/usr/local/apache2/bin/httpd -k start
www      15836  0.0  0.3  3880 1684 ?        S    16:02   0:00
/usr/local/apache2/bin/httpd -k start
www      15837  0.0  0.3  3880 1684 ?        S    16:02   0:00
/usr/local/apache2/bin/httpd -k start
www      15838  0.0  0.3  3880 1684 ?        S    16:02   0:00
/usr/local/apache2/bin/httpd -k start
www      15840  0.0  0.3  3880 1708 ?        S    16:02   0:00
/usr/local/apache2/bin/httpd -k start
root     15865  0.0  0.1  1760  596 pts/1    S    16:03   0:00 grep httpd
[root at PS-NAT var]#
 
[root at PS-NAT var]# cat /usr/local/apache2/conf/httpd.conf | grep -i user
# If you wish httpd to run as a different user or group, you must run
# User/Group: The name (or #number) of the user/group to run httpd as.
#  . On SCO (ODT 3) use "User nouser" and "Group nogroup".
#    suggested workaround is to create a user www and use that user.
User www
# UserDir: The name of the directory that is appended onto a user's home
# directory if a ~user request is received.
UserDir public_html
# Control access to UserDir directories.  The following is an example
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""
combined
LogFormat "%{User-agent}i" agent
# file in a language the user can understand.
[root at PS-NAT var]#
 
Also.. this is the only thing logged in apache's access_log.. error_log
remains quiet..
 
10.1.21.175 - gwichman [14/Nov/2002:16:05:34 -0800] "GET
/nagios/cgi-bin/cmd.cgi?cmd_typ=6&host=ps%2Dsm%2Dpogo%2D00&service=%2F+Free+
Space HTTP/1.1" 200 2909
10.1.21.175 - gwichman [14/Nov/2002:16:05:44 -0800] "POST
/nagios/cgi-bin/cmd.cgi HTTP/1.1" 200 1372
 
no error so I assume it posted it ok? Any ideas on how to actually
troubleshoot why this is broken?
 
 
 
Gerald Wichmann
Senior Systems Development Engineer
Zantaz, Inc.
925.598.3099 (w)
 
-----Original Message-----
From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com]
Sent: Thursday, November 14, 2002 3:24 PM
To: Gerald Wichmann; 'Andrew Heacock'; 'nagios-users at lists.sourceforge.net'
Subject: RE: [Nagios-users] Re: service - to monitor or not to monitor
 
Does your Apache server run under username 'www'?  (It appears that way,
because you have a 'www' as a member of the 'nagiocmd' group.)
 
jc
-----Original Message-----
From: Gerald Wichmann [mailto:gwichman at zantaz.com]
Sent: Thursday, November 14, 2002 4:52 PM
To: 'Andrew Heacock'; 'nagios-users at lists.sourceforge.net'
Subject: RE: [Nagios-users] Re: service - to monitor or not to monitor
Excellent thanks. Did everything in there and it still doesn't work.. sigh..
Yes I did restart apache after making the changes.. The message is different
now though:
 
Error: Could not stat() command file '/usr/local/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.
 
So lets see.. 
 
#1-nagios is running (even stopped and started it in case anything needed to
be reread).
 
[root at PS-NAT var]# ps auxw | grep nag
nagios     10021  0.1  0.2  2092 1100 ?   S   14:40   0:00
/usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
 
#2-the external command file is apparently there (created when nagios starts
up)
 
[root at PS-NAT var]# ls -l rw/
total 0
prw-rw----    1 nagios   nagiocmd        0 Nov 14 14:36 nagios.cmd
 
#3-Nagios is set to check external commands
 
[root at PS-NAT var]# cat ../etc/nagios.cfg | grep check_ext
check_external_commands=1
 
other output?..
 
[root at PS-NAT var]# cat ../etc/nagios.cfg | grep command_file
command_file=/usr/local/nagios/var/rw/nagios.cmd
 
[root at PS-NAT var]# ls -l
total 100
drwxrwxr-x    2 nagios   nagios       4096 Nov 14 00:00 archives
-rw-rw-r--    1 nagios   nagios          0 Nov 14 14:36 comment.log
-rw-rw-r--    1 nagios   nagios          0 Nov 14 14:36 downtime.log
-rw-r--r--    1 root     root            5 Nov 14 14:36 nagios.lock
-rw-rw-r--    1 nagios   nagios      23650 Nov 14 14:36 nagios.log
drwxrwS---    2 nagios   nagiocmd     4096 Nov 14 14:36 rw
-rw-rw-r--    1 nagios   nagios      20016 Nov 14 14:36 status.log
-rw-rw-r--    1 nagios   nagios      14433 Nov 14 14:36 status.sav
 
[root at PS-NAT var]# tail /etc/group
radvd:x:75:
gwichman:x:500:
pcap:x:77:
apache:x:48:
www:x:502:
ntp:x:38:
rdesroch:x:503:
nagios:x:504:
vswamy:x:505:
nagiocmd:x:506:nagios,www
[root at PS-NAT var]#
 
 
 
 
Gerald Wichmann
Senior Systems Development Engineer
Zantaz, Inc.
925.598.3099 (w)
 
-----Original Message-----
From: Andrew Heacock [mailto:aheacock at diamondchain.com]
Sent: Thursday, November 14, 2002 12:43 PM
To: 'nagios-users at lists.sourceforge.net'
Subject: [Nagios-users] Re: service - to monitor or not to monitor
 
External Command File Permissions 
http://nagios.sourceforge.net/docs/1_0/commandfile.html
<http://nagios.sourceforge.net/docs/1_0/commandfile.html>  
I think this is the page you were looking for as I looked for it for a week.
Not sure why it didn't ship w/ the documentation... Or maybe I just didn't
find _that_ either.
Andrew Heacock 
Network Administrator 
Diamond Chain Company 
(317) 613-2272 
From: Gerald Wichmann <gwichman at za...>
 </mailarchive/message.php?msg_id=2455148> <<...OLE_Obj...>> service - to
monitor or not to monitor </mailarchive/message.php?msg_id=2455148>
2002-11-14 11:54 
  
  
  
 When I try to click on "disable monitoring of this service" to not monitor 
 one I get this page: 
  
 Error: Could not open command file '/usr/local/nagios/var/rw/nagios.cmd'
for 
 update! 
 The permissions on the external command file and/or directory may be 
 incorrect. Read the FAQs on how to setup proper permissions. 
 An error occurred while attempting to commit your command for processing. 
  
  
 Now I know I read some spot in the docs on how to configure this but I
can't 
 find it now. Can't find it in the online FAQ either. Ideally I'd like it so

 anyone can view the status of the page but only those I've created admin 
 accounts for can schedule downtime and enable/disable service checks (i.e. 
 modify nagios through the GUI). I apologize in advance for even asking this

 question as I know it's asked all the time. Just point me to the right page

 please :-) 
  
 Gerald Wichmann 
 Senior Systems Development Engineer 
 Zantaz, Inc. 
 925.598.3099 (w) 
  
  
  
 This e-mail has been captured and archived by the ZANTAZ Digital Safe(tm) 
 service.  For more information, visit us at < http://www.zantaz.com
<http://www.zantaz.com> .> 
 IMPORTANT: This electronic mail message is intended only for the use of the

 individual or entity to which it is addressed and may contain information 
 that is privileged, confidential or exempt from disclosure under applicable

 law.  If the reader of this message is not the intended recipient, or the 
 employee or agent responsible for delivering this message to the intended 
 recipient, you are hereby notified that any dissemination, distribution or 
 copying of this communication is strictly prohibited.  If you have received

 this communication in error, please notify the sender immediately by 
 telephone or directly reply to the original message(s) sent.  Thank you. 
  
 
This e-mail has been captured and archived by the ZANTAZ Digital Safe(tm)
service. For more information, visit us at www.zantaz.com. 
IMPORTANT: This electronic mail message is intended only for the use of the
individual or entity to which it is addressed and may contain information
that is privileged, confidential or exempt from disclosure under applicable
law. If the reader of this message is not the intended recipient, or the
employee or agent responsible for delivering this message to the intended
recipient, you are hereby notified that any dissemination, distribution or
copying of this communication is strictly prohibited. If you have received
this communication in error, please notify the sender immediately by
telephone or directly reply to the original message(s) sent. Thank you.


This e-mail has been captured and archived by the ZANTAZ Digital Safe(tm)
service.  For more information, visit us at www.zantaz.com. 
IMPORTANT: This electronic mail message is intended only for the use of the
individual or entity to which it is addressed and may contain information
that is privileged, confidential or exempt from disclosure under applicable
law.  If the reader of this message is not the intended recipient, or the
employee or agent responsible for delivering this message to the intended
recipient, you are hereby notified that any dissemination, distribution or
copying of this communication is strictly prohibited.  If you have received
this communication in error, please notify the sender immediately by
telephone or directly reply to the original message(s) sent.  Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20021114/88e98174/attachment.html>


More information about the Users mailing list