Zabbix push notification iPhone

Olá, meu nome é Diego Luisi e no artigo de hoje vou demonstrar como mandar push notifications no iPhone usando Prowl App.

iPhone Zabbix Push Notification

iPhone Zabbix Push Notification

Primeiramente vamos configurar o Prowl
Baixe e instale o App no seu iPhone

Crie um login e uma senha e gere uma "Api Key" para isso acesse o site
http://prowl.weks.net/

Agora vamos configurar o Zabbix.

Vamos editar o arquivo zabbix_server.conf e verificar onde esta configurado o AlertScriptsPath

grep AlertScriptsPath /etc/zabbix/zabbix_server.conf

AlertScriptsPath=/etc/zabbix/scripts

/etc/zabbix/scripts

wget http://prowl.weks.net/static/prowl.pl

vi iphone.sh

! /bin/sh

/etc/zabbix/scripts/prowl.pl -apikey="COLOQUE SUA API AQUI" -application=Zabbix
-event="Nome da Sua Empresa" -notification="$2" -priority=0

:wq!
chmod +x /etc/zabbix/scripts/iphone.sh
chown -R zabbix:zabbix /etc/zabbix/scripts

./prowl "Zabbix" "Test message"

Notification successfully posted.

Seu script esta pronto.

Para adicionar esse script no Zabbix acesse:

http://www.diegoluisi.eti.br/2013/04/30/configurando-alerts-no-zabbix/

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *