[asterisk-users] Nagios Asterisk

Tzafrir Cohen tzafrir.cohen at xorcom.com
Wed Jun 17 14:01:44 CDT 2009


On Thu, Jun 18, 2009 at 12:04:26AM +0530, Sriram wrote:
> Hi 
> I am trying to implement monitoring of asterisk (all 4 spans-i want to show them line by line Up or down) using nagios using below script, but i always get the status as down and red..can anyone let me know how to read an output from nagios plugin ? nagios etc is configured already and is working 
> 
> PATH=/bin:/sbin:/usr/bin:/usr/sbin 
> FAILS="" 
> SPANS=$(asterisk -rnx "pri show span 1" | grep -a PRI | awk '{print $3;}' | cut -d"/" -f1) 

SPANS=$(ls /proc/dahdi /proc/zaptel 2>/dev/null)

-- 
               Tzafrir Cohen
icq#16849755              jabber:tzafrir.cohen at xorcom.com
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir



More information about the asterisk-users mailing list