Daily notification

Potter, G M (Greg) GPotter at MarathonOil.com
Thu Feb 13 14:37:28 CET 2003


I set up a service called test-page that only goes out at 10:00 Friday
morning.  I feel this gives me a warm and fuzzy that it is going to be
working over the weekend.  You could add other days in the timeperiod
if you wanted a page on other days.

I also have a service that checks the qpage queue to see if pages are
stacking up.  This runs once an hour so I have another indication that
pages are working as well.

Greg

define service{
        name                    service-test-page-template
        service_description     send-test-page
        check_command           send-test-page
        max_check_attempts      1
        normal_check_interval   60
        retry_check_interval    60
        check_period            fridaymorning
        notification_interval   60
        notification_period     fridaymorning
        notification_options    w,c,r
        contact_groups          unix-admins
	register                0
        }


define timeperiod{
        timeperiod_name         fridaymorning
        alias                   Friday at 10:00
        friday                  10:00-10:30
        }

> -----Original Message-----
> From: Tom DE BLENDE [mailto:tdeblend at gcc.dhl.com]
> Sent: Thursday, February 13, 2003 2:16 AM
> To: nagios-users
> Subject: [Nagios-users] Daily notification
> 
> 
> Hi all,
> 
> We want Nagios to send a page to the beeper every day at 4 PM to see
> it's still alive and the beeps are working. Is there any way to
> achieve this by using the external command file? I couldn't see it in
> the list of commands, but maybe it's an undocumented feature
> (Copyright Microsoft Inc.).
> 
> An alternative would be to write a small script that pipes a
> "PROCESS_SERVICE_CHECK_RESULT" to the external command file for a
> dummy service to make it go into warning/critical. A mail can then be
> sent out. Afterwards that same script should pipe another
> "PROCESS_SERVICE_CHECK_RESULT" to the external command file to return
> the service state back to OK.
> 
> Pretty lame, but it's the best thing I could come up with. Anyone got
> a better idea?
> 
> It would be nice to be able to send out alerts when a service is in an
> OK state (not recovered, just OK)... Then I could just use check_dummy
> and have the service checked once per day.
> 
> Any suggestions?
> 
> Many thanks in advance,
> Tom
> 
> 
> -------------------------------------------------------
> 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