que es

martes, 16 de febrero de 2021

monitoreo en asterisk

 #!/bin/bash
echo "herramienta monitoreo troncales y canales"



#watch 'echo -e "\t\t\t\t\t\t\t\t$(date +%H_%M__%S)"; asterisk -rx"core show channels";asterisk -rx "core show channels verbose " ; asterisk -rx"sip show channels" ; asterisk -rx"sip show channelstats";  asterisk -rx "sip show peers" |grep in '



watch 'echo -e "\t\t\t\t\t\t\t\tCall_$(date +%H_%M__%S)" ; asterisk -rx "core show channels verbose " |grep 300 ; asterisk -rx"sip show channels" ; asterisk -rx"sip show channelstats"; asterisk -rx "sip show peers" |grep in '

#watch 'echo -e "\t\t\t\t\t\t\t\t$(date +%H_%M__%S)"; asterisk -rx"core show channels"; asterisk -rx"sip show channels" |awk '{print $2}' |$(date +%M__%s); asterisk -rx "sip show peers" |grep in '

No hay comentarios:

Publicar un comentario