Page 1 of 2
Telephony/SIP Monitoring
Posted: Thu Nov 22, 2012 9:46 am
by gshergill
Hi Nagios Support,
I was wondering about call plugins.
I have found two plugins so far;
check_sip
check_calls
Basically, we want to have a script that attempts a call every morning, then lets us know if it doesn't work.
check_calls seemed great for this - but it returns OK even if the recipient phone is disconnected.
check_sip I'm not sure what it outputs, but I haven't been able to get it working (keeps returning invalid extension error).
I was wondering if there are any other plugins around for Nagios which makes a call.
Thank you.
Kind Regards,
Gary Shergill
Re: Telephony/SIP Monitoring
Posted: Mon Nov 26, 2012 1:19 pm
by slansing
As far as the check_sip plugin goes in regards to your error please see this:
http://forums.meulie.net/viewtopic.php?t=3684
Re: Telephony/SIP Monitoring
Posted: Mon Dec 03, 2012 4:54 am
by gshergill
Hi slansing,
Thank you for the link. I made the change as mentioned in the post but the same error persists.
I think I may be using the "-u" incorrectly, I am currently running;
check_sip -u sip:(extension)@(ip of registrar) -H (ip of registrar) -p (port of registrar) -w 10
e.g.
check_sip -u sip:
[email protected] -H 192.168.1.0 -p 5060 -w 10
Is there maybe a mistake here? check_calls requires the same format for it's FROM/TO as the -u argument on check_sip, so I've used the same details (the calls is made on check_calls).
Thank you.
Kind Regards,
Gary Shergill
Re: Telephony/SIP Monitoring
Posted: Mon Dec 03, 2012 12:33 pm
by scottwilkerson
I'm not positive, but you may need to wrap that in single quotes
What is it returning?
Re: Telephony/SIP Monitoring
Posted: Tue Dec 04, 2012 5:40 am
by gshergill
Hi scottwilkerson,
This was run from both the Nagios machine and the server 192.168.3.7 (which has the nagios plugins installed - currently uses NRPE for monitoring) and has the same error on both.
Thank you.
Kind Regards,
Gary Shergill
Re: Telephony/SIP Monitoring
Posted: Tue Dec 04, 2012 2:25 pm
by slansing
Quoting directly from the thread posted above on Meulie:
I found my problem. I originally suspected that it was a permissions problem; however, I did execute the command as my nagios user prior to submitting this thread.
Upon further investigation, I concluded that the nagios user did not have the utils.pm in it's include path. When I logged in and ran the command as my nagios user, I happened to have already changed into my plugins directory, so it ran it from there. I added the location of this file to my include path, and it now works fine.
This appears to have solved both problems
Have you made sure to check this?
Re: Telephony/SIP Monitoring
Posted: Wed Dec 05, 2012 10:37 am
by gshergill
Hi slansing,
I checked the permissions and they seem to be fine.
I also checked running as a nagios user and the extension problem is still there.
I have another plugin on the server which uses utils.pm as well and that runs with no issues so I don't think it would be on that side.
How can I check that the location of the utils.pm is in the include path?
Thank you.
Kind Regards,
Gary Shergill
Re: Telephony/SIP Monitoring
Posted: Wed Dec 05, 2012 10:51 am
by scottwilkerson
This may sound like an obvious question but you do in fact have an extension 6004 on this server correct?
Re: Telephony/SIP Monitoring
Posted: Thu Dec 06, 2012 4:32 am
by gshergill
Hi scottwilkerson,
Yes the extension definitely exists. I can use 6004 on the check_calls plugin and it successfully dials out using that extension.
Kind Regards,
Gary Shergill
Re: Telephony/SIP Monitoring
Posted: Mon Dec 10, 2012 1:28 pm
by scottwilkerson
I was just looking at this again
http://exchange.nagios.org/directory/Pl ... ip/details
and it looks like the URI is -U not -u
so lets try