Feature request
Thomas Guyot-Sionnest
Thomas at zango.com
Fri Jan 12 16:40:44 CET 2007
> -----Original Message-----
> From: nagios-devel-bounces at lists.sourceforge.net
> [mailto:nagios-devel-bounces at lists.sourceforge.net] On Behalf
> Of Nicolas COLIN
> Sent: January 12, 2007 3:54
> To: nagios-devel at lists.sourceforge.net
> Subject: Re: [Nagios-devel] Feature request
>
> Christoph Maser <cmr <at> financial.com> writes:
> >
> > Hi,
> >
> > this is not a good idea. You will never know if your
> services are just
> > stale. Make your checks report periodically (e.g. once a
> day) report an
> > OK status themselves and add freshness checking. Otherwise
> you will not
> > know if the service actually works.
> >
> > Chris
> >
>
> You can easily set the status by sending a file containing
> the following lines
> to the FIFO.
>
> [1165913959] PROCESS_SERVICE_CHECK_RESULT;Server;Service;0;
>
> I prepared a file containing this for all the servers and all
> the services I
> configure as passive check and send it ( cat [file_name] >
> /usr/local/nagios/var/rw/nagios.cmd ) whenever I want to set
> to OK ( In fact, I
> just do it once at the installation ).
Are you guys talking about volatile services, like receiving traps?
Contrary to what suggests the doc I set them as Active with the following
additionnal config:
check_command check_dummy!0!"Trap reset on $LONGDATETIME$"
check_period none
max_check_attempts 1
is_volatile 1
flap_detection_enabled 0
notification_options w,u,c
stalking_options w,u,c
The active check never gets scheduled but to reset the trap all I have to do
is schedule an active check.
Maybe Nagios could be modified to run an initial check on active volatile
services with check_period set to "none". That would not impact passive
checks and this could be a configurable option. However it doesn't solve the
problem when for some reason you get many/all your traps triggered off and
want to reset them all-.
I attached the script I use to reset all traps. If you have also many
different checks it could be modified to loop over a list of services as
well. If the service doesn't exists on some hosts it just gets ignored. The
best would be a perl version that create a list of servers and their
passive/volatile services out of the status file.
Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: reset_traps.sh
Type: application/octet-stream
Size: 761 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20070112/7549ee0a/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3076 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20070112/7549ee0a/attachment.bin>
-------------- next part --------------
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
-------------- next part --------------
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel
More information about the Developers
mailing list