service - to monitor or not to monitor
Gerald Wichmann
gwichman at zantaz.com
Thu Nov 14 23:52:19 CET 2002
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20021114/481bdf00/attachment.html>
More information about the Users
mailing list