Daily notification

Tom DE BLENDE tdeblend at gcc.dhl.com
Thu Feb 13 14:34:14 CET 2003


Simpler? Yes. But I'd like Nagios to initiate the actual sending of
the mail. So, I've written a script that is called as a service check
and sends the page.

Thanks for your reply!

Marc Powell wrote:
> 
> It seems to me a much simpler solution is to have a very simple
> shell or perl script call check_nagios the page you with the
> results. Stick that in cro to run at 5 16 * * * and you're all set.
> 
> --
> Marc
> 
> Sent from a very tiny wireless device with a very tiny unlit
> keyboard.
> 
> -----Original Message-----
> From: Tom DE BLENDE <tdeblend at gcc.dhl.com>
> To: Fredrik Wänglund <Fredrik.Wanglund at datavis.se>
> CC: nagios-users <nagios-users at lists.sourceforge.net>
> Sent: Thu Feb 13 03:54:42 2003
> 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


-------------------------------------------------------
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