executing custom script as notification!!

Marc Powell marc at ena.com
Fri Mar 7 16:25:18 CET 2008



> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> bounces at lists.sourceforge.net] On Behalf Of sachin holikar
> Sent: Friday, March 07, 2008 9:17 AM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] executing custom script as notification!!
> 
> Hi,
> 
> We have this custom made script for sending alert messages to our
remote
> Monitoring Team. Now we are required to integrate this with Nagios.
> Instead of sending Nagios Email alert, is there any way we can execute
> this custom made script by sending the parameters such as
$SERVICESTATE
> $HOST etc etc to it? So that, this script will get executed on the
host in
> the case of Nagios Alert Event. And the alert will be sent to our
> monitoring team?
>  In simplex term we want to execute a script whenever Nagios detects
there
> is a problem.
> Can someone give some hints ?

The notification command{} definition(s) are no different than any other
plugin command{} definition. You can make it whatever you like and pass
standard nagios $MACROS$ to it. The default just happens to call the
printf 'script' and pipe it's output to mail.

--
Marc

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