Daily notification
Fredrik Wänglund
Fredrik.Wanglund at datavis.se
Thu Feb 13 11:10:48 CET 2003
An other possibility is to run it more often an check the current time in the check-command.
/FredrikW
-----Original Message-----
From: Tom DE BLENDE [mailto:tdeblend at gcc.dhl.com]
Sent: Thu 13-Feb-03 10:54
To: Fredrik Wänglund
Cc: nagios-users
Subject: Re: [Nagios-users] Daily notification
Now why didn't I think of that?
One thing though: it should only run once per day, and at 16:05 sharp.
How would you go about that?
define service{
normal_check_interval 1440
retry_check_interval 1440
}
and timeperiod
define timeperiod{
timeperiod_name beepertest
alias Beeper Test
sunday 16:00-16:01
monday 16:00-16:01
tuesday 16:00-16:01
wednesday 16:00-16:01
thursday 16:00-16:01
friday 16:00-16:01
saturday 16:00-16:01
}
Will this work?
Fredrik Wänglund wrote:
>
> Why not set up a service in Nagios an have it call the 'beeper-function'?
>
> /FredrikW
>
> -----Original Message-----
> From: Tom DE BLENDE [mailto:tdeblend at gcc.dhl.com]
> Sent: Thu 13-Feb-03 09:16
> To: nagios-users
> Cc:
> 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