Page 1 of 1

nagios Asterisk monitoring Active channels and Active calls

Posted: Fri Jul 27, 2012 2:39 pm
by sairaj
i have installed nagioscore 3.2.3 and and i have installed nrpe addon on the asterisk server. i have downloaded the check_asterisk_channels . and did the rest of the things how we used to monitor the remote host.


Now the issue on remote host i am not able the run the pluggin in nagios user. saying error like



[nagios@centos6 ~]$ /usr/local/nagios/libexec/check_asterisk_channels
CRITICAL: Unable to connect to remote asterisk (does /var/run/asterisk/asteriskctl exist?)




but the file is there . if i run in root the check_asterisk_channels is working fine . Not able to run on nagios users.
give the some solutions those who got the solution.
my download plugin uder /usr/local/nagios/libexec/check_asterisk_channels
thanks for those who give solution to this issue

Re: nagios Asterisk monitoring Active channels and Active ca

Posted: Sun Jul 29, 2012 7:44 pm
by jsmurphy
Add the nagios user to the asterisk group and ensure that the asterisk group has access to read and execute that file.

Re: nagios Asterisk monitoring Active channels and Active ca

Posted: Wed Aug 01, 2012 4:07 pm
by sairaj
thanks for replying i found the solution for this as you said. after running the check_asterisk_channels i can get only the possed calls as active calls. Only the script gives the result the calls which is already done so far as active calls. I want to get the active calls as we get in gui at the moment . Any script to get the live asterisk calls and channels and to get the alert regarding the thresold vales both for call and channels. it would be great help if you give solution for this ,

thanks for earlier reply

Re: nagios Asterisk monitoring Active channels and Active ca

Posted: Wed Aug 01, 2012 11:00 pm
by jsmurphy
Unfortunately I don't use asterisk so I'm not really familiar with the plugins for it, but you might be able to find a plugin that does what you want here: http://exchange.nagios.org/index.php?op ... d=asterisk