forked from tiramiseb/zabbix-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTemplate App Asterisk.txt
18 lines (13 loc) · 948 Bytes
/
Template App Asterisk.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Documentation for the Asterisk application template
===================================================
I don't use Asterisk since April '14, so there will probably be no improvement on this template.
User parameters
---------------
UserParameter=asterisk.calls.active,sudo /usr/sbin/asterisk -r -x "core show calls" | grep active | cut -d" " -f1
UserParameter=asterisk.calls.processed,sudo /usr/sbin/asterisk -r -x "core show calls" | grep processed | cut -d" " -f1
UserParameter=asterisk.channels.active,sudo /usr/sbin/asterisk -r -x "core show channels" | grep "active channels" | cut -d" " -f1
UserParameter=asterisk.sip.total,sudo /usr/sbin/asterisk -r -x "sip show peers" | grep "sip peers" | cut -d" " -f1
UserParameter=asterisk.sip.online,sudo /usr/sbin/asterisk -r -x "sip show peers" | grep "sip peers" | sed 's/.* \([0-9]*\) online.*/\1/'
Sudo entry
----------
zabbix ALL=(ALL) NOPASSWD: /usr/sbin/asterisk