nagios Asterisk monitoring Active channels and Active calls

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
sairaj
Posts: 4
Joined: Tue Jul 17, 2012 12:23 pm

nagios Asterisk monitoring Active channels and Active calls

Post 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
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

Re: nagios Asterisk monitoring Active channels and Active ca

Post by jsmurphy »

Add the nagios user to the asterisk group and ensure that the asterisk group has access to read and execute that file.
sairaj
Posts: 4
Joined: Tue Jul 17, 2012 12:23 pm

Re: nagios Asterisk monitoring Active channels and Active ca

Post 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
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

Re: nagios Asterisk monitoring Active channels and Active ca

Post 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
Locked