..

Push notifications for Zabbix with Pushbullet

Posted October 10, 2014

This tutorial shows how to integrate Zabbix with Pushbullet.

At the end of this tutorial, we will have Zabbix configured to send alert notifications to Pushbullet, which will send push notifications to our devices. In my case, my Android smartphone and my browser.

Alert script installation

Pushbullet access token

  • Step 3 : Copy zabbix2pushbullet.py python script in Zabbix’s alertscripts folder (more details about alertscripts).

  • Step 4 : Set the script executable chmod +x zabbix2pushbullet.py

  • Step 5 : Install required dependency sudo pip install pushbullet.py.

  • Step 6 : Test the script :

./pushbullet.py [accesstoken] "PROBLEM: only a test" "Test message"

Zabbix configuration

  • Step 7 : Click on Media types from Administration tab.
  • Step 8 : Click on Create media type.
  • Step 9 : Enter pushbullet as the name of the media type.
  • Step 10 : Select Script as the Type.
  • Step 11 : Enter zabbix2pushbullet.py for the Script name.
  • Step 12 : Click on Save to save our new media type.
  • Step 13 : Click on Actions from Configuration tab.
  • Step 14 : Click on Create action button.
  • Step 15 : Enter Pushbullet notification as the Name.
  • Step 16 : Click on Operations tab.
  • Step 17 : Click on New to define a new operation.
  • Step 18 : Select Send message as operation type.
  • Step 19 : Click on Add and add your user.
  • Step 20 : Select pushbullet as the only media to use.
  • Step 21 : Click on add at the bottom of the page to Add the operation.
  • Step 22 : Click Save to save this new action.
  • Step 23 : Click on Users from Administration tab.
  • Step 24 : Select Users on the drop-down list.
  • Step 25 : Click on your user.
  • Step 26 : Click on Media tab.
  • Step 27 : Click on Add to add a new media.
  • Step 28 : Select pushbullet in the first drop-down list.
  • Step 29 : Paste your Access Key in the Send to text field.
  • Step 30 : Click on Add.
  • Step 31 : Click on Save to update your user.

Done ! All new problems will be sent to Pushbullet and will appear on all your devices connected to Pushbullet.


author Philippe LewinWritten by Philippe Lewin, French Software Engineer. twitter