zabbix_export: version: '6.0' date: '2021-11-21T22:04:06Z' groups: - uuid: 7df96b18c230490a9a0a9e2307226338 name: Templates templates: - uuid: 9a63053774a3412db06e6ef3bd4e820f template: 'Nobreak SMS Powerview by HTTP' name: 'Nobreak SMS Powerview by HTTP' description: | ## Description Version 1.0. Para utilização com o software SMS Power View, testado com o aplicativo versão Versão: V3.00.02.00. Meu Nobreak é Entrada/Saída 220V, portanto para 110V seriam necessários ajustes. Se tiver alguém utilizando eu posso utilizar parâmetros como Macro. Este template funciona realizando o parse do código da página http://localhost:8080/sms/s2/atualizaBlock.action que possui comentários com os dados do Nobreak. ## Overview Version 1.0. Para utilização com o software SMS Power View, testado com o aplicativo versão Versão: V3.00.02.00. Meu Nobreak é Entrada/Saída 220V, portanto para 110V seriam necessários ajustes. Se tiver alguém utilizando eu posso utilizar parâmetros como Macro. Este template funciona realizando o parse do código da página http://localhost:8080/sms/s2/atualizaBlock.action que possui comentários com os dados do Nobreak. ## Author Marlon J dos Anjos groups: - name: Templates items: - uuid: 2cd14ec3e44c41a0ac56aaeefecc86a3 name: 'Nobreak SMS: Bateria Baixa' type: DEPENDENT key: nobreaksms.bateria.baixa delay: '0' history: 15d trends: '0' value_type: TEXT description: 'Status do alerta Bateria Baixa' preprocessing: - type: REGEX parameters: - 'Bateria\ Baixa\h+\=\ (\w+)' - \1 master_item: key: nobreaksms.get tags: - tag: Application value: Nobreaks - uuid: adc5ee2518d840d080dcce0bcd1c5f70 name: 'Nobreak SMS: Bateria Ligada' type: DEPENDENT key: nobreaksms.bateria.ligada delay: '0' history: 15d trends: '0' value_type: TEXT description: 'Alarme de status quando a bateria está em uso, geralmente quando está sem energia ou a qualidade da energia está fora dos parâmetros aceitáveis.' preprocessing: - type: REGEX parameters: - 'Bateria\ Ligada\h+\=\ (\w+)' - \1 master_item: key: nobreaksms.get tags: - tag: Application value: Nobreaks triggers: - uuid: f01b7768c15c44b0af8151832816f638 expression: 'last(/Nobreak SMS Powerview by HTTP/nobreaksms.bateria.ligada)="true"' name: 'Nobreak SMS: Operando com Bateria' priority: HIGH - uuid: b34df16eb9994fce81f895cd73d9e20d name: 'Nobreak SMS: Bypass' type: DEPENDENT key: nobreaksms.bypass delay: '0' history: 15d trends: '0' value_type: TEXT description: 'Indica se o Bypass do Nobreak está ativo, ou seja, utilizando energia direto da rede sem o filtro do nobreak. Geralmente por algum problema na bateria, no nobreak, ou sobrecarga de potencia.' preprocessing: - type: REGEX parameters: - 'ByPass\h+\=\ (\w+)' - \1 master_item: key: nobreaksms.get tags: - tag: Application value: Nobreaks triggers: - uuid: 0dd3032c93a74f72aa435917b9633ad2 expression: 'last(/Nobreak SMS Powerview by HTTP/nobreaksms.bypass)="true"' name: 'Nobreak SMS: Bypass ativo' priority: AVERAGE - uuid: 1371ef34a24c43fa810db58113818d8e name: 'Nobreak SMS: Frequencia de Saida' type: DEPENDENT key: nobreaksms.frequencia.saida delay: '0' history: 15d trends: 90d value_type: FLOAT units: Hz description: 'Frequência de saída do Nobreak, geralmente 60Hz +- 1%.' preprocessing: - type: REGEX parameters: - 'Frequencia\ de\ Saida\h+\=\ (\d*\.?\d*)' - \1 master_item: key: nobreaksms.get tags: - tag: Application value: Nobreaks triggers: - uuid: 067e071c7d56401f9d64608762d0f144 expression: 'last(/Nobreak SMS Powerview by HTTP/nobreaksms.frequencia.saida)>60.2 or last(/Nobreak SMS Powerview by HTTP/nobreaksms.frequencia.saida)<59.8' name: 'Nobreak SMS: Frequencia de Saida Irregular' priority: WARNING - uuid: ddcdaa7a9f9c4f96b45630b8aeb5dd23 name: 'Nobreak SMS PowerView' type: HTTP_AGENT key: nobreaksms.get delay: 15s history: 2d trends: '0' value_type: TEXT description: | Item que realiza o GET da página do nobreak. A página atualizaBlock.action possui comentários com os parâmetros atuais do nobreak, e é atualizado em tempo real. url: 'http://{HOST.IP}:8080/sms/s2/atualizaBlock.action' retrieve_mode: BOTH tags: - tag: Application value: Nobreaks triggers: - uuid: 2ca4693b749b452cb7d9222a7d7c75dd expression: 'nodata(/Nobreak SMS Powerview by HTTP/nobreaksms.get,120s)=1 or find(/Nobreak SMS Powerview by HTTP/nobreaksms.get,,"like","HTTP/1.1 200")=0' name: 'Nobreak SMS: Sem atualização por 2 minutos' opdata: '{HOST.IP}' priority: WARNING - uuid: 667a72111d104a0d97cf7e8668e55d9a name: 'Nobreak SMS: Potencia de Saida' type: DEPENDENT key: nobreaksms.potencia.saida delay: '0' history: 15d trends: 90d value_type: FLOAT units: '%' description: 'Potência de saída do nobreak, quanto mais equipamentos ligados maior será a potência e menor a autonomia.' preprocessing: - type: REGEX parameters: - 'Potencia\ de\ Saida\ \%\h+\=\ (\d*\.?\d*)' - \1 master_item: key: nobreaksms.get tags: - tag: Application value: Nobreaks triggers: - uuid: 714e7da197894d78ae00138b9876e2a9 expression: 'last(/Nobreak SMS Powerview by HTTP/nobreaksms.potencia.saida)>85' name: 'Nobreak SMS: Potência de Saída Elevada' priority: AVERAGE - uuid: 166514d996a243ab84c7397723ec9897 name: 'Nobreak SMS: Temperatura' type: DEPENDENT key: nobreaksms.temperatura delay: '0' history: 15d trends: 90d value_type: FLOAT units: C description: 'Temperatura do nobreak, tende a subir quando utilizado a bateria. Pelos meus testes representa bem uma temperatura do ambiente, portanto eu uso também como alerta se a sala está muito aquecida.' preprocessing: - type: REGEX parameters: - 'Temperatura\h+\=\ (\d*\.?\d*)' - \1 master_item: key: nobreaksms.get tags: - tag: Application value: Nobreaks triggers: - uuid: 84423d1e4972464a9fd585b3acac4b2a expression: 'last(/Nobreak SMS Powerview by HTTP/nobreaksms.temperatura)>25' name: 'Nobreak SMS: Temperatura Elevada' priority: HIGH - uuid: 02ef4ea7ca1146168489d1602141f618 name: 'Nobreak SMS: Tensao da Bateria' type: DEPENDENT key: nobreaksms.tensao.bateria delay: '0' history: 15d trends: 90d value_type: FLOAT units: '%' description: 'Tensão da bateria reportado em %. Basicamente o nível de carga.' preprocessing: - type: REGEX parameters: - 'Tensao\ da\ Bateria\ \%\h+\=\ (\d*\.?\d*)' - \1 master_item: key: nobreaksms.get tags: - tag: Application value: Nobreaks triggers: - uuid: 841f6c6f36004fc694207ee5d21e3ef3 expression: 'last(/Nobreak SMS Powerview by HTTP/nobreaksms.tensao.bateria)<70' name: 'Nobreak SMS: Bateria com pouca carga' priority: DISASTER - uuid: bba7a40897904580b52cc17e8a4323fb expression: 'last(/Nobreak SMS Powerview by HTTP/nobreaksms.tensao.bateria)<>100' name: 'Nobreak SMS: Bateria não está com carga total' priority: INFO - uuid: a0b145d5e9a2459f8e54e49de237c00e name: 'Nobreak SMS: Tensao de Entrada' type: DEPENDENT key: nobreaksms.tensao.entrada delay: '0' history: 15d trends: 90d value_type: FLOAT units: V description: 'Tensão de Entrada em Volts.' preprocessing: - type: REGEX parameters: - 'Tensao\ de\ Entrada\h+\=\ (\d*\.?\d*)' - \1 master_item: key: nobreaksms.get tags: - tag: Application value: Nobreaks triggers: - uuid: 6eb77e019a3449f1a28c62121ad50199 expression: 'last(/Nobreak SMS Powerview by HTTP/nobreaksms.tensao.entrada)<=200 or last(/Nobreak SMS Powerview by HTTP/nobreaksms.tensao.entrada)>=238' name: 'Nobreak SMS: Falha de Energia na Entrada' priority: AVERAGE - uuid: d332e9df18c84dbe999098b7d8764799 name: 'Nobreak SMS: Tensao de Saida' type: DEPENDENT key: nobreaksms.tensao.saida delay: '0' history: 15d trends: 90d value_type: FLOAT units: V description: 'Tensão de Saída em Volts.' preprocessing: - type: REGEX parameters: - 'Tensao\ de\ Saida\h+\=\ (\d*\.?\d*)' - \1 master_item: key: nobreaksms.get tags: - tag: Application value: Nobreaks triggers: - uuid: 58239bbfe1834062a488b525e5af79da expression: 'last(/Nobreak SMS Powerview by HTTP/nobreaksms.tensao.saida)>222 or last(/Nobreak SMS Powerview by HTTP/nobreaksms.tensao.saida)<218' name: 'Nobreak SMS: Tensão de Saída fora do padrão 220v' priority: AVERAGE dashboards: - uuid: 22387442f54f4a2ba310eb809d6bcf72 name: 'Monitoramento Nobreak' pages: - widgets: - type: GRAPH_CLASSIC width: '12' height: '5' fields: - type: INTEGER name: source_type value: '0' - type: GRAPH name: graphid value: name: 'Tensões Entrada x Saída' host: 'Nobreak SMS Powerview by HTTP' - type: GRAPH_CLASSIC x: '12' width: '12' height: '5' fields: - type: INTEGER name: source_type value: '0' - type: GRAPH name: graphid value: name: 'Potência de Saída' host: 'Nobreak SMS Powerview by HTTP' - type: GRAPH_CLASSIC 'y': '5' width: '12' height: '5' fields: - type: INTEGER name: source_type value: '0' - type: GRAPH name: graphid value: name: 'Carga da Bateria' host: 'Nobreak SMS Powerview by HTTP' - type: GRAPH_CLASSIC x: '12' 'y': '5' width: '12' height: '5' fields: - type: INTEGER name: source_type value: '0' - type: GRAPH name: graphid value: name: Temperatura host: 'Nobreak SMS Powerview by HTTP' graphs: - uuid: 9d0331efb25c465caa0d4cf13d99ca3a name: 'Carga da Bateria' yaxismax: '110' ymin_type_1: FIXED ymax_type_1: FIXED graph_items: - sortorder: '1' color: E91E63 item: host: 'Nobreak SMS Powerview by HTTP' key: nobreaksms.tensao.bateria - uuid: a9b2db409bf94007b70c70068190814a name: 'Potência de Saída' percent_left: '85' ymin_type_1: FIXED ymax_type_1: FIXED graph_items: - sortorder: '1' color: 33691E item: host: 'Nobreak SMS Powerview by HTTP' key: nobreaksms.potencia.saida - uuid: 187b0702173744cf90fcc19b750e40a3 name: Temperatura ymin_type_1: FIXED graph_items: - sortorder: '1' color: FFB74D item: host: 'Nobreak SMS Powerview by HTTP' key: nobreaksms.temperatura - uuid: b1691c90028d4d0f926c6886c00e87cf name: 'Tensões Entrada x Saída' yaxismax: '250' ymin_type_1: FIXED ymax_type_1: FIXED graph_items: - sortorder: '1' color: 0080FF item: host: 'Nobreak SMS Powerview by HTTP' key: nobreaksms.tensao.entrada - sortorder: '2' color: 4000FF item: host: 'Nobreak SMS Powerview by HTTP' key: nobreaksms.tensao.saida