Last active
February 13, 2020 00:37
-
-
Save altmas5/fbd4eb82b83e96ee5feca998b9da1072 to your computer and use it in GitHub Desktop.
Queue stats (Members, Members in use, Members in call) for zabbix items
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| case $1 in | |
| "in-call") | |
| sudo asterisk -rx "queue show $2"|grep SIP|grep 'in call'| wc -l | |
| ;; | |
| "in-use") | |
| sudo asterisk -rx "queue show $2"|grep SIP|grep 'In use'| wc -l | |
| ;; | |
| "ext") | |
| sudo asterisk -rx "queue show $2"|grep SIP|wc -l | |
| ;; | |
| *) | |
| esac |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| UserParameter=queue.stats[*],/var/lib/zabbix/externalscripts/queue_stats.sh "$1" "$2" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment