Custom Notification Script
Marc Powell
marc at ena.com
Thu Apr 22 14:05:23 CEST 2004
Don't you mean $CONTACTPAGER$? $CONTACTPAGER} is incorrect. You don't specifically say you did it but you should also verify that the script is executable as the nagios user if you haven't already.
--
Marc
-----Original Message-----
From: Upayavira [mailto:uv at upaya.co.uk]
Sent: Thu 4/22/2004 3:41 AM
To: nagios-users at lists.sourceforge.net
Cc:
Subject: [Nagios-users] Custom Notification Script
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"
}
Then, if I refer to notify-by-sms, notify-by-email, only the email goes.
The script logs to a file, so I know it isn't being called (I've tried
logging in as the nagios user and running the script, and it works).
Any ideas what I need to do to get these notifications working? With
this, I'm pretty much there with my Nagios installation, and I'll be
able to scrap a ream of perl based monitoring scripts.
Thanks in advance,
Upayavira
North London, Uk
-------------------------------------------------------
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20040422/6f1f8e59/attachment.html>
More information about the Users
mailing list