On Mon, Mar 24, 2008 at 2:50 PM, Jason L. Faulkner <[EMAIL PROTECTED]>
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" <[EMAIL PROTECTED]>
> To: nagios-users@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...
-------------------------------------------------------------------------
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/
_______________________________________________
Nagios-users mailing list
Nagios-users@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