Шаблон - Asterisk через SNMPv3

Общее

Общая информация по загруженности каналов и вызовов

Для более подробного мониторинга транков и внутренних вызовов используйте соответствующий шаблон через zabbix-agent.

ToDo: Сделать шаблон для подробного мониторинга асетриска. Данные брать из файла, который по крону раз в минуту опрашивает состояние пиров (иначе сильно возрастет нагрузка на asterisk).

Требования

  • Подключить модуль SNMP в Asterisk. Файл /etc/asterisk/res_snmp.conf должен содержать следующие строки
    [general]
    subagent = yes
    enabled = yes
    
  • Включить SNMPv3 на сервере. Примерный конфиг файла snmpd.conf
    com2sec notConfigUser  default       public
    
    group   notConfigGroup v1           notConfigUser
    group   notConfigGroup v2c           notConfigUser
    
    view all    included  .1
    view system included  .iso.org.dod.internet.mgmt.mib-2.system
    
    access  notConfigGroup ""      any       noauth    exact  all    none none
    
    syslocation Caledon, ON
    syscontact Leif Madsen lmadsen@shifteight.org
    
    createUser asteriskUser MD5 "passWord" DES
    rwuser asteriskUser priv
    
    master agentx
    agentXSocket /var/agentx/master
    agentXPerms 0660 0550 nobody asterisk
    

Шаблон для zabbix

template_SNMPv3_Asterisk.xml

<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
    <version>2.0</version>
    <date>2012-05-30T09:02:12Z</date>
    <groups>
        <group>
            <name>Templates</name>
        </group>
    </groups>
    <templates>
        <template>
            <template>Template_Asterisk</template>
            <name>Template_Asterisk</name>
            <groups>
                <group>
                    <name>Templates</name>
                </group>
            </groups>
            <applications>
                <application>
                    <name>Asterisk</name>
                </application>
            </applications>
            <items>
                <item>
                    <name>Calls</name>
                    <type>6</type>
                    <snmp_community>public</snmp_community>
                    <multiplier>0</multiplier>
                    <snmp_oid>.1.3.6.1.4.1.22736.1.2.6.0</snmp_oid>
                    <key>astConfigCalls.0</key>
                    <delay>30</delay>
                    <history>90</history>
                    <trends>0</trends>
                    <status>0</status>
                    <value_type>3</value_type>
                    <allowed_hosts></allowed_hosts>
                    <units></units>
                    <delta>1</delta>
                    <snmpv3_securityname>asteriskUser</snmpv3_securityname>
                    <snmpv3_securitylevel>2</snmpv3_securitylevel>
                    <snmpv3_authpassphrase>Ghjcnjh777</snmpv3_authpassphrase>
                    <snmpv3_privpassphrase>Ghjcnjh777</snmpv3_privpassphrase>
                    <formula>1</formula>
                    <delay_flex></delay_flex>
                    <params></params>
                    <ipmi_sensor></ipmi_sensor>
                    <data_type>0</data_type>
                    <authtype>0</authtype>
                    <username></username>
                    <password></password>
                    <publickey></publickey>
                    <privatekey></privatekey>
                    <port>161</port>
                    <description></description>
                    <inventory_link>0</inventory_link>
                    <applications>
                        <application>
                            <name>Asterisk</name>
                        </application>
                    </applications>
                    <valuemap/>
                </item>
                <item>
                    <name>Calls Active</name>
                    <type>6</type>
                    <snmp_community>public</snmp_community>
                    <multiplier>0</multiplier>
                    <snmp_oid>.1.3.6.1.4.1.22736.1.2.5.0</snmp_oid>
                    <key>astConfigCallsActive.0</key>
                    <delay>30</delay>
                    <history>90</history>
                    <trends>0</trends>
                    <status>0</status>
                    <value_type>3</value_type>
                    <allowed_hosts></allowed_hosts>
                    <units></units>
                    <delta>0</delta>
                    <snmpv3_securityname>asteriskUser</snmpv3_securityname>
                    <snmpv3_securitylevel>2</snmpv3_securitylevel>
                    <snmpv3_authpassphrase>Ghjcnjh777</snmpv3_authpassphrase>
                    <snmpv3_privpassphrase>Ghjcnjh777</snmpv3_privpassphrase>
                    <formula>1</formula>
                    <delay_flex></delay_flex>
                    <params></params>
                    <ipmi_sensor></ipmi_sensor>
                    <data_type>0</data_type>
                    <authtype>0</authtype>
                    <username></username>
                    <password></password>
                    <publickey></publickey>
                    <privatekey></privatekey>
                    <port>161</port>
                    <description></description>
                    <inventory_link>0</inventory_link>
                    <applications>
                        <application>
                            <name>Asterisk</name>
                        </application>
                    </applications>
                    <valuemap/>
                </item>
                <item>
                    <name>Calls Processed</name>
                    <type>6</type>
                    <snmp_community>public</snmp_community>
                    <multiplier>0</multiplier>
                    <snmp_oid>.1.3.6.1.4.1.22736.1.2.6.0</snmp_oid>
                    <key>astConfigCallsProcessed.0</key>
                    <delay>30</delay>
                    <history>90</history>
                    <trends>0</trends>
                    <status>0</status>
                    <value_type>3</value_type>
                    <allowed_hosts></allowed_hosts>
                    <units></units>
                    <delta>0</delta>
                    <snmpv3_securityname>asteriskUser</snmpv3_securityname>
                    <snmpv3_securitylevel>2</snmpv3_securitylevel>
                    <snmpv3_authpassphrase>Ghjcnjh777</snmpv3_authpassphrase>
                    <snmpv3_privpassphrase>Ghjcnjh777</snmpv3_privpassphrase>
                    <formula>1</formula>
                    <delay_flex></delay_flex>
                    <params></params>
                    <ipmi_sensor></ipmi_sensor>
                    <data_type>0</data_type>
                    <authtype>0</authtype>
                    <username></username>
                    <password></password>
                    <publickey></publickey>
                    <privatekey></privatekey>
                    <port>161</port>
                    <description></description>
                    <inventory_link>0</inventory_link>
                    <applications>
                        <application>
                            <name>Asterisk</name>
                        </application>
                    </applications>
                    <valuemap/>
                </item>
                <item>
                    <name>Channels Agent</name>
                    <type>6</type>
                    <snmp_community>public</snmp_community>
                    <multiplier>0</multiplier>
                    <snmp_oid>.1.3.6.1.4.1.22736.1.5.4.1.7[&quot;index&quot;, 1.3.6.1.4.1.22736.1.5.4.1.2, &quot;Agent&quot;]</snmp_oid>
                    <key>astChanTypeChannels.Agent</key>
                    <delay>30</delay>
                    <history>7</history>
                    <trends>365</trends>
                    <status>0</status>
                    <value_type>3</value_type>
                    <allowed_hosts></allowed_hosts>
                    <units></units>
                    <delta>0</delta>
                    <snmpv3_securityname>asteriskUser</snmpv3_securityname>
                    <snmpv3_securitylevel>2</snmpv3_securitylevel>
                    <snmpv3_authpassphrase>Ghjcnjh777</snmpv3_authpassphrase>
                    <snmpv3_privpassphrase>Ghjcnjh777</snmpv3_privpassphrase>
                    <formula>1</formula>
                    <delay_flex></delay_flex>
                    <params></params>
                    <ipmi_sensor></ipmi_sensor>
                    <data_type>0</data_type>
                    <authtype>0</authtype>
                    <username></username>
                    <password></password>
                    <publickey></publickey>
                    <privatekey></privatekey>
                    <port>161</port>
                    <description></description>
                    <inventory_link>0</inventory_link>
                    <applications>
                        <application>
                            <name>Asterisk</name>
                        </application>
                    </applications>
                    <valuemap/>
                </item>
                <item>
                    <name>Channels Console</name>
                    <type>6</type>
                    <snmp_community>public</snmp_community>
                    <multiplier>0</multiplier>
                    <snmp_oid>.1.3.6.1.4.1.22736.1.5.4.1.7[&quot;index&quot;, 1.3.6.1.4.1.22736.1.5.4.1.2, &quot;Console&quot;]</snmp_oid>
                    <key>astChanTypeChannels.Console</key>
                    <delay>30</delay>
                    <history>7</history>
                    <trends>365</trends>
                    <status>0</status>
                    <value_type>3</value_type>
                    <allowed_hosts></allowed_hosts>
                    <units></units>
                    <delta>0</delta>
                    <snmpv3_securityname>asteriskUser</snmpv3_securityname>
                    <snmpv3_securitylevel>2</snmpv3_securitylevel>
                    <snmpv3_authpassphrase>Ghjcnjh777</snmpv3_authpassphrase>
                    <snmpv3_privpassphrase>Ghjcnjh777</snmpv3_privpassphrase>
                    <formula>1</formula>
                    <delay_flex></delay_flex>
                    <params></params>
                    <ipmi_sensor></ipmi_sensor>
                    <data_type>0</data_type>
                    <authtype>0</authtype>
                    <username></username>
                    <password></password>
                    <publickey></publickey>
                    <privatekey></privatekey>
                    <port>161</port>
                    <description></description>
                    <inventory_link>0</inventory_link>
                    <applications>
                        <application>
                            <name>Asterisk</name>
                        </application>
                    </applications>
                    <valuemap/>
                </item>
                <item>
                    <name>Channels GSM-CDMA</name>
                    <type>6</type>
                    <snmp_community>public</snmp_community>
                    <multiplier>0</multiplier>
                    <snmp_oid>.1.3.6.1.4.1.22736.1.5.4.1.7[&quot;index&quot;, 1.3.6.1.4.1.22736.1.5.4.1.2, &quot;EXTRA&quot;]</snmp_oid>
                    <key>astChanTypeChannels.GSM</key>
                    <delay>30</delay>
                    <history>7</history>
                    <trends>365</trends>
                    <status>0</status>
                    <value_type>3</value_type>
                    <allowed_hosts></allowed_hosts>
                    <units></units>
                    <delta>0</delta>
                    <snmpv3_securityname>asteriskUser</snmpv3_securityname>
                    <snmpv3_securitylevel>2</snmpv3_securitylevel>
                    <snmpv3_authpassphrase>Ghjcnjh777</snmpv3_authpassphrase>
                    <snmpv3_privpassphrase>Ghjcnjh777</snmpv3_privpassphrase>
                    <formula>1</formula>
                    <delay_flex></delay_flex>
                    <params></params>
                    <ipmi_sensor></ipmi_sensor>
                    <data_type>0</data_type>
                    <authtype>0</authtype>
                    <username></username>
                    <password></password>
                    <publickey></publickey>
                    <privatekey></privatekey>
                    <port>161</port>
                    <description></description>
                    <inventory_link>0</inventory_link>
                    <applications>
                        <application>
                            <name>Asterisk</name>
                        </application>
                    </applications>
                    <valuemap/>
                </item>
                <item>
                    <name>Channels IAX2</name>
                    <type>6</type>
                    <snmp_community>public</snmp_community>
                    <multiplier>0</multiplier>
                    <snmp_oid>.1.3.6.1.4.1.22736.1.5.4.1.7[&quot;index&quot;, 1.3.6.1.4.1.22736.1.5.4.1.2, &quot;IAX2&quot;]</snmp_oid>
                    <key>astChanTypeChannels.IAX2</key>
                    <delay>30</delay>
                    <history>7</history>
                    <trends>365</trends>
                    <status>0</status>
                    <value_type>3</value_type>
                    <allowed_hosts></allowed_hosts>
                    <units></units>
                    <delta>0</delta>
                    <snmpv3_securityname>asteriskUser</snmpv3_securityname>
                    <snmpv3_securitylevel>2</snmpv3_securitylevel>
                    <snmpv3_authpassphrase>Ghjcnjh777</snmpv3_authpassphrase>
                    <snmpv3_privpassphrase>Ghjcnjh777</snmpv3_privpassphrase>
                    <formula>1</formula>
                    <delay_flex></delay_flex>
                    <params></params>
                    <ipmi_sensor></ipmi_sensor>
                    <data_type>0</data_type>
                    <authtype>0</authtype>
                    <username></username>
                    <password></password>
                    <publickey></publickey>
                    <privatekey></privatekey>
                    <port>161</port>
                    <description></description>
                    <inventory_link>0</inventory_link>
                    <applications>
                        <application>
                            <name>Asterisk</name>
                        </application>
                    </applications>
                    <valuemap/>
                </item>
                <item>
                    <name>Channels Local</name>
                    <type>6</type>
                    <snmp_community>public</snmp_community>
                    <multiplier>0</multiplier>
                    <snmp_oid>.1.3.6.1.4.1.22736.1.5.4.1.7[&quot;index&quot;, 1.3.6.1.4.1.22736.1.5.4.1.2, &quot;Local&quot;]</snmp_oid>
                    <key>astChanTypeChannels.Local</key>
                    <delay>30</delay>
                    <history>7</history>
                    <trends>365</trends>
                    <status>0</status>
                    <value_type>3</value_type>
                    <allowed_hosts></allowed_hosts>
                    <units></units>
                    <delta>0</delta>
                    <snmpv3_securityname>asteriskUser</snmpv3_securityname>
                    <snmpv3_securitylevel>2</snmpv3_securitylevel>
                    <snmpv3_authpassphrase>Ghjcnjh777</snmpv3_authpassphrase>
                    <snmpv3_privpassphrase>Ghjcnjh777</snmpv3_privpassphrase>
                    <formula>1</formula>
                    <delay_flex></delay_flex>
                    <params></params>
                    <ipmi_sensor></ipmi_sensor>
                    <data_type>0</data_type>
                    <authtype>0</authtype>
                    <username></username>
                    <password></password>
                    <publickey></publickey>
                    <privatekey></privatekey>
                    <port>161</port>
                    <description></description>
                    <inventory_link>0</inventory_link>
                    <applications>
                        <application>
                            <name>Asterisk</name>
                        </application>
                    </applications>
                    <valuemap/>
                </item>
                <item>
                    <name>Channels SIP</name>
                    <type>6</type>
                    <snmp_community>public</snmp_community>
                    <multiplier>0</multiplier>
                    <snmp_oid>.1.3.6.1.4.1.22736.1.5.4.1.7[&quot;index&quot;, 1.3.6.1.4.1.22736.1.5.4.1.2, &quot;SIP&quot;]</snmp_oid>
                    <key>astChanTypeChannels.SIP</key>
                    <delay>30</delay>
                    <history>7</history>
                    <trends>365</trends>
                    <status>0</status>
                    <value_type>3</value_type>
                    <allowed_hosts></allowed_hosts>
                    <units></units>
                    <delta>0</delta>
                    <snmpv3_securityname>asteriskUser</snmpv3_securityname>
                    <snmpv3_securitylevel>2</snmpv3_securitylevel>
                    <snmpv3_authpassphrase>Ghjcnjh777</snmpv3_authpassphrase>
                    <snmpv3_privpassphrase>Ghjcnjh777</snmpv3_privpassphrase>
                    <formula>1</formula>
                    <delay_flex></delay_flex>
                    <params></params>
                    <ipmi_sensor></ipmi_sensor>
                    <data_type>0</data_type>
                    <authtype>0</authtype>
                    <username></username>
                    <password></password>
                    <publickey></publickey>
                    <privatekey></privatekey>
                    <port>161</port>
                    <description></description>
                    <inventory_link>0</inventory_link>
                    <applications>
                        <application>
                            <name>Asterisk</name>
                        </application>
                    </applications>
                    <valuemap/>
                </item>
                <item>
                    <name>Channels TAPI</name>
                    <type>6</type>
                    <snmp_community>public</snmp_community>
                    <multiplier>0</multiplier>
                    <snmp_oid>.1.3.6.1.4.1.22736.1.5.4.1.7[&quot;index&quot;, 1.3.6.1.4.1.22736.1.5.4.1.2, &quot;Phone&quot;]</snmp_oid>
                    <key>astChanTypeChannels.Phone</key>
                    <delay>30</delay>
                    <history>7</history>
                    <trends>365</trends>
                    <status>0</status>
                    <value_type>3</value_type>
                    <allowed_hosts></allowed_hosts>
                    <units></units>
                    <delta>0</delta>
                    <snmpv3_securityname>asteriskUser</snmpv3_securityname>
                    <snmpv3_securitylevel>2</snmpv3_securitylevel>
                    <snmpv3_authpassphrase>Ghjcnjh777</snmpv3_authpassphrase>
                    <snmpv3_privpassphrase>Ghjcnjh777</snmpv3_privpassphrase>
                    <formula>1</formula>
                    <delay_flex></delay_flex>
                    <params></params>
                    <ipmi_sensor></ipmi_sensor>
                    <data_type>0</data_type>
                    <authtype>0</authtype>
                    <username></username>
                    <password></password>
                    <publickey></publickey>
                    <privatekey></privatekey>
                    <port>161</port>
                    <description></description>
                    <inventory_link>0</inventory_link>
                    <applications>
                        <application>
                            <name>Asterisk</name>
                        </application>
                    </applications>
                    <valuemap/>
                </item>
                <item>
                    <name>Channels USTM</name>
                    <type>6</type>
                    <snmp_community>public</snmp_community>
                    <multiplier>0</multiplier>
                    <snmp_oid>.1.3.6.1.4.1.22736.1.5.4.1.7[&quot;index&quot;, 1.3.6.1.4.1.22736.1.5.4.1.2, &quot;USTM&quot;]</snmp_oid>
                    <key>astChanTypeChannels.USTM</key>
                    <delay>30</delay>
                    <history>7</history>
                    <trends>365</trends>
                    <status>0</status>
                    <value_type>3</value_type>
                    <allowed_hosts></allowed_hosts>
                    <units></units>
                    <delta>0</delta>
                    <snmpv3_securityname>asteriskUser</snmpv3_securityname>
                    <snmpv3_securitylevel>2</snmpv3_securitylevel>
                    <snmpv3_authpassphrase>Ghjcnjh777</snmpv3_authpassphrase>
                    <snmpv3_privpassphrase>Ghjcnjh777</snmpv3_privpassphrase>
                    <formula>1</formula>
                    <delay_flex></delay_flex>
                    <params></params>
                    <ipmi_sensor></ipmi_sensor>
                    <data_type>0</data_type>
                    <authtype>0</authtype>
                    <username></username>
                    <password></password>
                    <publickey></publickey>
                    <privatekey></privatekey>
                    <port>161</port>
                    <description></description>
                    <inventory_link>0</inventory_link>
                    <applications>
                        <application>
                            <name>Asterisk</name>
                        </application>
                    </applications>
                    <valuemap/>
                </item>
                <item>
                    <name>Channels Zap</name>
                    <type>6</type>
                    <snmp_community>public</snmp_community>
                    <multiplier>0</multiplier>
                    <snmp_oid>.1.3.6.1.4.1.22736.1.5.4.1.7[&quot;index&quot;, 1.3.6.1.4.1.22736.1.5.4.1.2, &quot;Zap&quot;]</snmp_oid>
                    <key>astChanTypeChannels.Zap</key>
                    <delay>30</delay>
                    <history>7</history>
                    <trends>365</trends>
                    <status>0</status>
                    <value_type>3</value_type>
                    <allowed_hosts></allowed_hosts>
                    <units></units>
                    <delta>0</delta>
                    <snmpv3_securityname>asteriskUser</snmpv3_securityname>
                    <snmpv3_securitylevel>2</snmpv3_securitylevel>
                    <snmpv3_authpassphrase>Ghjcnjh777</snmpv3_authpassphrase>
                    <snmpv3_privpassphrase>Ghjcnjh777</snmpv3_privpassphrase>
                    <formula>1</formula>
                    <delay_flex></delay_flex>
                    <params></params>
                    <ipmi_sensor></ipmi_sensor>
                    <data_type>0</data_type>
                    <authtype>0</authtype>
                    <username></username>
                    <password></password>
                    <publickey></publickey>
                    <privatekey></privatekey>
                    <port>161</port>
                    <description></description>
                    <inventory_link>0</inventory_link>
                    <applications>
                        <application>
                            <name>Asterisk</name>
                        </application>
                    </applications>
                    <valuemap/>
                </item>
                <item>
                    <name>Count of the number of modules currently loaded</name>
                    <type>6</type>
                    <snmp_community>public</snmp_community>
                    <multiplier>0</multiplier>
                    <snmp_oid>.1.3.6.1.4.1.22736.1.3.1.0</snmp_oid>
                    <key>astNumModules.0</key>
                    <delay>3600</delay>
                    <history>90</history>
                    <trends>365</trends>
                    <status>0</status>
                    <value_type>3</value_type>
                    <allowed_hosts></allowed_hosts>
                    <units></units>
                    <delta>0</delta>
                    <snmpv3_securityname>asteriskUser</snmpv3_securityname>
                    <snmpv3_securitylevel>2</snmpv3_securitylevel>
                    <snmpv3_authpassphrase>Ghjcnjh777</snmpv3_authpassphrase>
                    <snmpv3_privpassphrase>Ghjcnjh777</snmpv3_privpassphrase>
                    <formula>1</formula>
                    <delay_flex></delay_flex>
                    <params></params>
                    <ipmi_sensor></ipmi_sensor>
                    <data_type>0</data_type>
                    <authtype>0</authtype>
                    <username></username>
                    <password></password>
                    <publickey></publickey>
                    <privatekey></privatekey>
                    <port>161</port>
                    <description></description>
                    <inventory_link>0</inventory_link>
                    <applications>
                        <application>
                            <name>Asterisk</name>
                        </application>
                    </applications>
                    <valuemap/>
                </item>
                <item>
                    <name>Proccess ID</name>
                    <type>6</type>
                    <snmp_community>public</snmp_community>
                    <multiplier>0</multiplier>
                    <snmp_oid>.1.3.6.1.4.1.22736.1.2.3.0</snmp_oid>
                    <key>astConfigPid.0</key>
                    <delay>3600</delay>
                    <history>90</history>
                    <trends>0</trends>
                    <status>0</status>
                    <value_type>4</value_type>
                    <allowed_hosts></allowed_hosts>
                    <units>s</units>
                    <delta>0</delta>
                    <snmpv3_securityname>asteriskUser</snmpv3_securityname>
                    <snmpv3_securitylevel>2</snmpv3_securitylevel>
                    <snmpv3_authpassphrase>Ghjcnjh777</snmpv3_authpassphrase>
                    <snmpv3_privpassphrase>Ghjcnjh777</snmpv3_privpassphrase>
                    <formula>1</formula>
                    <delay_flex></delay_flex>
                    <params></params>
                    <ipmi_sensor></ipmi_sensor>
                    <data_type>0</data_type>
                    <authtype>0</authtype>
                    <username></username>
                    <password></password>
                    <publickey></publickey>
                    <privatekey></privatekey>
                    <port>161</port>
                    <description></description>
                    <inventory_link>0</inventory_link>
                    <applications>
                        <application>
                            <name>Asterisk</name>
                        </application>
                    </applications>
                    <valuemap/>
                </item>
                <item>
                    <name>Reload Time</name>
                    <type>6</type>
                    <snmp_community>public</snmp_community>
                    <multiplier>1</multiplier>
                    <snmp_oid>1.3.6.1.4.1.22736.1.2.2.0</snmp_oid>
                    <key>astConfigReloadTime.0</key>
                    <delay>600</delay>
                    <history>90</history>
                    <trends>365</trends>
                    <status>0</status>
                    <value_type>3</value_type>
                    <allowed_hosts></allowed_hosts>
                    <units>s</units>
                    <delta>0</delta>
                    <snmpv3_securityname>asteriskUser</snmpv3_securityname>
                    <snmpv3_securitylevel>2</snmpv3_securitylevel>
                    <snmpv3_authpassphrase>Ghjcnjh777</snmpv3_authpassphrase>
                    <snmpv3_privpassphrase>Ghjcnjh777</snmpv3_privpassphrase>
                    <formula>0.01</formula>
                    <delay_flex></delay_flex>
                    <params></params>
                    <ipmi_sensor></ipmi_sensor>
                    <data_type>0</data_type>
                    <authtype>0</authtype>
                    <username></username>
                    <password></password>
                    <publickey></publickey>
                    <privatekey></privatekey>
                    <port>161</port>
                    <description></description>
                    <inventory_link>0</inventory_link>
                    <applications>
                        <application>
                            <name>Asterisk</name>
                        </application>
                    </applications>
                    <valuemap/>
                </item>
                <item>
                    <name>Uptime</name>
                    <type>6</type>
                    <snmp_community>public</snmp_community>
                    <multiplier>1</multiplier>
                    <snmp_oid>1.3.6.1.4.1.22736.1.2.1.0</snmp_oid>
                    <key>astConfigUpTime.0</key>
                    <delay>600</delay>
                    <history>90</history>
                    <trends>365</trends>
                    <status>0</status>
                    <value_type>3</value_type>
                    <allowed_hosts></allowed_hosts>
                    <units>s</units>
                    <delta>0</delta>
                    <snmpv3_securityname>asteriskUser</snmpv3_securityname>
                    <snmpv3_securitylevel>2</snmpv3_securitylevel>
                    <snmpv3_authpassphrase>Ghjcnjh777</snmpv3_authpassphrase>
                    <snmpv3_privpassphrase>Ghjcnjh777</snmpv3_privpassphrase>
                    <formula>0.01</formula>
                    <delay_flex></delay_flex>
                    <params></params>
                    <ipmi_sensor></ipmi_sensor>
                    <data_type>0</data_type>
                    <authtype>0</authtype>
                    <username></username>
                    <password></password>
                    <publickey></publickey>
                    <privatekey></privatekey>
                    <port>161</port>
                    <description></description>
                    <inventory_link>0</inventory_link>
                    <applications>
                        <application>
                            <name>Asterisk</name>
                        </application>
                    </applications>
                    <valuemap/>
                </item>
                <item>
                    <name>Version of Asterisk Server</name>
                    <type>6</type>
                    <snmp_community>public</snmp_community>
                    <multiplier>0</multiplier>
                    <snmp_oid>.1.3.6.1.4.1.22736.1.1.1.0</snmp_oid>
                    <key>astVersionString.0</key>
                    <delay>3600</delay>
                    <history>90</history>
                    <trends>0</trends>
                    <status>0</status>
                    <value_type>4</value_type>
                    <allowed_hosts></allowed_hosts>
                    <units>s</units>
                    <delta>0</delta>
                    <snmpv3_securityname>asteriskUser</snmpv3_securityname>
                    <snmpv3_securitylevel>2</snmpv3_securitylevel>
                    <snmpv3_authpassphrase>Ghjcnjh777</snmpv3_authpassphrase>
                    <snmpv3_privpassphrase>Ghjcnjh777</snmpv3_privpassphrase>
                    <formula>1</formula>
                    <delay_flex></delay_flex>
                    <params></params>
                    <ipmi_sensor></ipmi_sensor>
                    <data_type>0</data_type>
                    <authtype>0</authtype>
                    <username></username>
                    <password></password>
                    <publickey></publickey>
                    <privatekey></privatekey>
                    <port>161</port>
                    <description></description>
                    <inventory_link>0</inventory_link>
                    <applications>
                        <application>
                            <name>Asterisk</name>
                        </application>
                    </applications>
                    <valuemap/>
                </item>
            </items>
            <discovery_rules/>
            <macros/>
            <templates/>
            <screens/>
        </template>
    </templates>
    <triggers>
        <trigger>
            <expression>{Template_Asterisk:astConfigReloadTime.0.last(0)}&lt;600</expression>
            <name>Asterisk has been reloaded on {HOSTNAME}</name>
            <url></url>
            <status>0</status>
            <priority>1</priority>
            <description></description>
            <type>0</type>
            <dependencies/>
        </trigger>
        <trigger>
            <expression>{Template_Asterisk:astConfigUpTime.0.last(0)}&lt;600</expression>
            <name>Asterisk has been restarted on {HOSTNAME}</name>
            <url></url>
            <status>0</status>
            <priority>2</priority>
            <description></description>
            <type>0</type>
            <dependencies/>
        </trigger>
        <trigger>
            <expression>{Template_Asterisk:astVersionString.0.diff(0)}=0</expression>
            <name>Asterisk version number was changed on {HOSTNAME}</name>
            <url></url>
            <status>0</status>
            <priority>2</priority>
            <description></description>
            <type>0</type>
            <dependencies/>
        </trigger>
    </triggers>
    <graphs>
        <graph>
            <name>Channels In Use</name>
            <width>900</width>
            <height>200</height>
            <yaxismin>0.0000</yaxismin>
            <yaxismax>100.0000</yaxismax>
            <show_work_period>0</show_work_period>
            <show_triggers>0</show_triggers>
            <type>0</type>
            <show_legend>1</show_legend>
            <show_3d>0</show_3d>
            <percent_left>0.0000</percent_left>
            <percent_right>0.0000</percent_right>
            <ymin_type_1>0</ymin_type_1>
            <ymax_type_1>0</ymax_type_1>
            <ymin_item_1>0</ymin_item_1>
            <ymax_item_1>0</ymax_item_1>
            <graph_items>
                <graph_item>
                    <sortorder>0</sortorder>
                    <drawtype>0</drawtype>
                    <color>BBBB00</color>
                    <yaxisside>0</yaxisside>
                    <calc_fnc>2</calc_fnc>
                    <type>0</type>
                    <item>
                        <host>Template_Asterisk</host>
                        <key>astChanTypeChannels.IAX2</key>
                    </item>
                </graph_item>
                <graph_item>
                    <sortorder>1</sortorder>
                    <drawtype>0</drawtype>
                    <color>009900</color>
                    <yaxisside>0</yaxisside>
                    <calc_fnc>2</calc_fnc>
                    <type>0</type>
                    <item>
                        <host>Template_Asterisk</host>
                        <key>astChanTypeChannels.Local</key>
                    </item>
                </graph_item>
                <graph_item>
                    <sortorder>4</sortorder>
                    <drawtype>0</drawtype>
                    <color>FF3333</color>
                    <yaxisside>0</yaxisside>
                    <calc_fnc>2</calc_fnc>
                    <type>0</type>
                    <item>
                        <host>Template_Asterisk</host>
                        <key>astChanTypeChannels.SIP</key>
                    </item>
                </graph_item>
                <graph_item>
                    <sortorder>5</sortorder>
                    <drawtype>0</drawtype>
                    <color>33FFFF</color>
                    <yaxisside>0</yaxisside>
                    <calc_fnc>2</calc_fnc>
                    <type>0</type>
                    <item>
                        <host>Template_Asterisk</host>
                        <key>astChanTypeChannels.Phone</key>
                    </item>
                </graph_item>
            </graph_items>
        </graph>
    </graphs>
</zabbix_export>

pbx_asterisk_cherez_snmpv3.txt · Последние изменения: 2017/01/17 22:13 — adm1n
GNU Free Documentation License 1.3
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0 Яндекс.Метрика