zabbix_export: version: '5.4' date: '2021-11-21T21:50:16Z' groups: - uuid: 25fa5e08493744599a03308cfb6ae65e name: 'VOIP ALL' templates: - uuid: b8e3c7bc6d1345a29997f7da545f6c77 template: 'Cisco AXL DataBase Replication status' name: 'Cisco AXL DataBase Replication status' description: | ## Overview CUCM replication status request from AXL Необходим Application User с правами на чтение AXL API Application user name: {$ZABBIX\_APIUSER\_UC} Applicatuin user passwd: {$ZABBIX\_APIUSER\_UC} groups: - name: 'VOIP ALL' items: - uuid: 92adc6fbb85f4fcbbfb1620bcea98d5a name: 'DB Replication State' type: DEPENDENT key: dbrepstate delay: '0' history: 7d trends: '0' valuemap: name: 'CUCM Replications Status' preprocessing: - type: XMLPATH parameters: - 'number(//item[2]/Value)' master_item: key: ucdbreplication tags: - tag: Application value: 'CUCM DataBase replication' triggers: - uuid: c87566ad47ca4388827dcdc414acbe58 expression: 'last(/Cisco AXL DataBase Replication status/dbrepstate)<>2' name: 'DB replication fail !!!' priority: DISASTER - uuid: ecfcaaf7fafd44d79337a1409ad18745 name: 'API PerfmonRequet State of Replication' type: HTTP_AGENT key: ucdbreplication delay: 30s history: '0' trends: '0' value_type: TEXT authtype: BASIC username: '{$ZABBIX_APIUSER_UC}' password: '{$ZABBIX_APIPASS_UC}' preprocessing: - type: JAVASCRIPT parameters: - | value = String(value) value = value.replace(/>\n<"); return value url: 'https://{HOST.IP}:8443/perfmonservice/services/PerfmonPort?wsdl' posts: | {HOST.DNS} Number of Replicates Created and State of Replication post_type: XML headers: - name: SOAPAction value: '"http://schemas.cisco.com/ast/soap/action/#PerfmonPort#PerfmonOpenSession"' request_method: POST tags: - tag: Application value: 'CUCM DataBase replication' valuemaps: - uuid: 55899e0a43944d27b3a808b06699990f name: 'CUCM Replications Status' mappings: - value: '0' newvalue: 'Initialization State' - value: '1' newvalue: 'The Number of replicates is incorrect' - value: '2' newvalue: 'Replication is good' - value: '3' newvalue: 'Mismatched tables' - value: '4' newvalue: 'Setup Failed/Dropped'