You are here

Custom Notification method doesnt work

3 posts / 0 new
Last post
hyper
hyper's picture
Custom Notification method doesnt work

Hello

I got this strange problem.

I made a new notification method (notify_by_sms) but it doesnt work.

I can see in the nagios.log it should be triggered, but it doesnt.
[1374759210] SERVICE NOTIFICATION: admin/01default;opsview;Opsview HTTP;CRITICAL;notify-by-sms;CRITICAL - Socket timeout after 10 seconds

Also if i use the test_notification utils it works fine
root@opsview-appliance:/usr/local/nagios/utils# ./test_notifications hostproblem /usr/local/nagios/libexec/notifications/notify_by_sms
Sent sms!

No problems at all with the script.

Also the chmod and chown is correct
-rwxr-xr-x 1 nagios nagios  1750 2013-07-23 13:46 notify_by_sms

What am i missing? Why doesnt it work?

tvoon
tvoon's picture
Re: Custom Notification method doesnt work

Try running the test_notifications as the nagios user - does that work?

hyper
hyper's picture
Re: Custom Notification method doesnt work

I rebooted the server and it worked. I didnt find any errors so it was kinda odd. But it works now :)