Forgot the perl script header. Doh!

 

From: [email protected]
[mailto:[email protected]] On Behalf Of Robin
Minto
Sent: 13 August 2009 17:49
To: [email protected]
Subject: [opsview-users] Custom SMS notification

 

I'm new to OpsView and looking to migrate an existing Nagios
installation but I'm having trouble with SMS notification.

 

I've written a perl script which posts to our SMS provider (Sybase365)
using LWP. The script works from the bash shell but I'm having trouble
hooking it up to OpsView. It's installed in
/usr/local/nagios/libexec/notifications. The docs
(http://docs.opsview.org/doku.php?id=opsview3.0:notificationmethods) say
/usr/local/nagios/plugins/notifications but that doesn't seem to tie in
with the implementation.

 

I've added a new SMS notification method, configured the system
preferences to use that method and I've reloaded.

 

When I try "Send test SMS" from the contact page I get "No output. Exit
code 2". I've tried removing the script (which gives exit code 255) and
reducing it to a simple form - print and exit (gives exit code 2).

 

Any suggestions what to try next?

 

Thanks,

 

Robin
This e-mail is for the use of the intended recipient(s) only. If you have 
received this e-mail in error, please notify the sender immediately and then 
delete it. If you are not the intended recipient, you must not use, disclose or 
distribute this e-mail without the author's prior permission. We have taken 
precautions to minimise the risk of transmitting software viruses, but we 
advise you to carry out your own virus checks on any attachment to this 
message. We cannot accept liability for any loss or damage caused by software 
viruses. If you are the intended recipient and you do not wish to receive 
similar electronic messages from us in future then please respond to the sender 
to this effect.

Company Registration Nos.
 ByBox Holdings Ltd          04130988
 ByBox Field Support Ltd     03852440

Place of Registration
 England

Registered Office
 Merlin House
 Downsview Road
 Wantage
 Oxfordshire
 OX12 9FA


_______________________________________________
Opsview-users mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-users

Reply via email to