Daily "I'm OK" notification

Matt Nelson matt at frozenatom.com
Mon Mar 24 21:56:36 CET 2008


On Mon, Mar 24, 2008 at 2:50 PM, Jason L. Faulkner <jfaulkne at icontact.com>
wrote:

> Seems to me that if you want it to send every day no matter what, you
> might just want to use cron or atd, not nagios.
>
>
> ----- Original Message -----
> From: "Matt Nelson" <matt at frozenatom.com>
> To: nagios-users at lists.sourceforge.net
> Sent: Monday, March 24, 2008 4:47:03 PM (GMT-0500) America/New_York
> Subject: [Nagios-users] Daily "I'm OK" notification
>
> I currently have a nagios command check_daily.sh that returns:
>
> "Modem OK - Hosts: 74/74 OK - Services: 280/280 OK"
>
> and returns a value of 0, STATE_OK.  I would like this to run daily and
> send the
> string above via sms.
>
> The problem that I can't figure out is how do I run this command as a
> service, let it run ok, but still trigger a notification to be sent.  I know
> I could have it return 1, 2, or 3 but then I have a ugly red, orange, or
> yellow status in the "Service Status Totals" all the time.
>
>
> --
> Jason Faulkner
> Lead Systems Engineer
> iContact Corporation
>
> I would do this but I would like to send it from the actual nagios
daemon.  I have been burned in the past with incorrect permissions set on
the sms binary, etc to where the notification went out fine as root, but
when nagios actually went to try it as the nagios user, it did not have
rights.  Also we use some groundworks and its tests use the nobody user
which adds another user that we had to deal with, etc...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20080324/97ad2ed1/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
-------------- next part --------------
_______________________________________________
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