Custom Notification Script

Sean Dilda agrajag at dragaera.net
Thu Apr 22 14:57:21 CEST 2004


On Thu, 2004-04-22 at 04:41, Upayavira wrote:
> Hi,
> 
> I've just installed Nagios, which looks great.
> 
> We have our own SMS gateway, which is accessed via an HTTP post. I have 
> a Perl script that is intended to send the notification messages.
> 
> When I run the script from the command line, it works fine.
> 
> I have put a command into /etc/nagios/misccommands.cfg like so:
> define command{
>     command_name   notify-by-sms
>     command_line      /home/web/bin/sendSMS.pl $CONTACTPAGER} "This is 
> the message"
>     }

Looks like a simple typo to me.  You did $CONTACTPAGER} instead of
$CONTACTPAGER$



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&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