Notifications!

Leonardo Henrique Machado leonardomachado at gmail.com
Thu Mar 24 15:10:35 CET 2005


One possible solution:

1 - Create another notification command. Let me write one for you:

contacts.cfg
--------------------------
define contact{
...
host_notification_commands    host-notify-by-sms-5min
....
}

misccommands.cfg
------------------------------
define command{
command_name host-notify-by-sms-5min
command_line /script/my_notify.sh
}

/script/my_notify.sh
------------------------------
at -f /script/sms-command.txt +5min

/script/sms-command.txt
------------------------------------
echo "I am 5min late!" | mail -s "Notification" you at sms.blah.com


Do not try to find the solutions for your problems in Nagios. Use
linux/unix tools to do what you want, and Nagios will be flexible
enougth to "accept" almost everything.


On Wed, 23 Mar 2005 13:59:11 -0300 (BRST), Mario Sergio Candian
<mscandian at freebsdbrasil.com.br> wrote:
> 
> Hi guys,
> 
> I have one question about notification of Nagios. When some service stay
> down, I receive one notification in my cell phone 1 minute after the
> service is down. I need to change this interval for 5 minutes, then, when
> some service stay down I'd like to receive a notification after 5 minutes.
> Is this possible? What I need to do to change this?
> 
> Thanks for all!
> 
> Mario Sergio
> -
> "Dreams as if you'll live forever. Live as if you'll die today" -- James Dean
> 
> -------------------------------------------------------
> This SF.net email is sponsored by Microsoft Mobile & Embedded DevCon 2005
> Attend MEDC 2005 May 9-12 in Vegas. Learn more about the latest Windows
> Embedded(r) & Windows Mobile(tm) platforms, applications & content.  Register
> by 3/29 & save $300 http://ads.osdn.com/?ad_id=6883&alloc_id=15149&op=click
> _______________________________________________
> 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
> 


-- 
Leonardo Henrique Machado


-------------------------------------------------------
This SF.net email is sponsored by Microsoft Mobile & Embedded DevCon 2005
Attend MEDC 2005 May 9-12 in Vegas. Learn more about the latest Windows
Embedded(r) & Windows Mobile(tm) platforms, applications & content.  Register
by 3/29 & save $300 http://ads.osdn.com/?ad_id=6883&alloc_id=15149&op=click
_______________________________________________
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