Custom Notification Script
Upayavira
uv at upaya.co.uk
Thu Apr 22 10:41:41 CEST 2004
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
More information about the Users
mailing list