Page 1 of 1

Monitoring Asterisk Server from Nagios with check_asterisk

Posted: Wed Jun 19, 2013 4:35 am
by brando16
hi all,

i need to check the sip channel from remote nagios machine to asterisk server, i know de number of sip intern and i need to check this or all sip intern.

when i try to lunch check_asterisk command "check_asterisk!sip:monitor@<asterisk IP Address>!port" the asterisk server respond SIP CRITICAL MISSING 404 !!! :oops: :oops: :oops:
the precise command i do from command line is "./check_asterisk -U sip:sip_intern@ip_server_asterisk -P 5062 -w 5000 -c 10000"
the same result.

Anyone have an idea to resolve this problem? the server asterisk on the same network of nagios and don't have any account a part of root.

thanks all for the replay and time dedicated.

Re: Monitoring Asterisk Server from Nagios with check_asteri

Posted: Wed Jun 19, 2013 12:03 pm
by abrist
There are multiple check_asterisk plugins on the exchange, could you link to the one you are using?

Re: Monitoring Asterisk Server from Nagios with check_asteri

Posted: Thu Jun 20, 2013 2:11 am
by brando16
hi abrist,

i'm usign this http://exchange.nagios.org/directory/Pl ... erisk/only change i do is insert the correct path to the sipsak. the command i do from shell is ./check_asterisk -U sip:intern AT ip_server_asterisk -w 500 -c 1000
and i retrieve always SIP CRITICAL MISSING 404 !!!, but the intern check is real and a register sip phone on this.

do you have idea? or plugin/procedure so i can use to do this. I want only check if is up and registered or is functional.

thanks in advantage

Re: Monitoring Asterisk Server from Nagios with check_asteri

Posted: Thu Jun 20, 2013 4:37 am
by brando16
hi abrist,

i'm usign this http://exchange.nagios.org/directory/Pl ... erisk/only change i do is insert the correct path to the sipsak. the command i do from shell is ./check_asterisk -U sip:intern AT ip_server_asterisk -w 500 -c 1000
and i retrieve always SIP CRITICAL MISSING 404 !!!, but the intern check is real and a register sip phone on this.

do you have idea? or plugin/procedure so i can use to do this. I want only check if is up and registered or is functional.

thanks in advantage

Re: Monitoring Asterisk Server from Nagios with check_asteri

Posted: Thu Jun 20, 2013 1:37 pm
by abrist
Check to see if port 5060 is open on the sip server, as that is the default port in the script:

Code: Select all

nmap <ip_server_asterisk> -p 5060