[asterisk-users] Nagios under *

Diego Aguirre (DagMoller) dag.voip at infodag.com.br
Thu Jun 18 13:18:44 CDT 2009


Check the script permissions for nagios user

Sriram escreveu:
>  
> 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=""
>  
>        STATUS=$(asterisk -rnx "pri show span 1" | grep -a Status | awk
> '{print $3;}' | cut -d, -f1)
>        if [ "${STATUS}" == "Up" ]; then
>   echo "PRI UP"
>               exit 0
>         else
>   echo "PRI DOWN"
>               exit 2
>        fi
>  
> if i execute the script from command line i get the correct output i.e
> OK for span 1 but on nagios web interface i get it as down...
> If anyone can share the above script for asterisk monitoring then i wud
> be grateful
>  
> rgds
> Sriram
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> -- 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

-- 
Diego Aguirre (DagMoller)
Infodag Consultoria
FWD#: 459696
Enum#: +55 21 8871-4916 (e164.org)
DUNDi-br#: 21 8871-4916



More information about the asterisk-users mailing list