Monitoring Asterisk Server from Nagios with check_asterisk

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
brando16
Posts: 3
Joined: Wed Jun 19, 2013 4:08 am

Monitoring Asterisk Server from Nagios with check_asterisk

Post 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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Monitoring Asterisk Server from Nagios with check_asteri

Post by abrist »

There are multiple check_asterisk plugins on the exchange, could you link to the one you are using?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
brando16
Posts: 3
Joined: Wed Jun 19, 2013 4:08 am

Re: Monitoring Asterisk Server from Nagios with check_asteri

Post 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
brando16
Posts: 3
Joined: Wed Jun 19, 2013 4:08 am

Re: Monitoring Asterisk Server from Nagios with check_asteri

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Monitoring Asterisk Server from Nagios with check_asteri

Post 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
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked