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.co...@xorcom.com +972-50-7952406 mailto:tzafrir.co...@xorcom.com http://www.xorcom.com iax:gu...@local.xorcom.com/tzafrir _______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users