Skip to content

Instantly share code, notes, and snippets.

@plewin
Last active December 4, 2018 00:22
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save plewin/679358b09136a58f3468 to your computer and use it in GitHub Desktop.
Save plewin/679358b09136a58f3468 to your computer and use it in GitHub Desktop.
Zabbix Pushbullet alert script
#!/usr/bin/env python
#deps: pip install pushbullet.py
#source: http://philippe.lewin.me
from pushbullet import PushBullet
import sys
to = sys.argv[1]
subject = sys.argv[2]
body = sys.argv[3]
pb = PushBullet(to)
success, push = pb.push_note(subject, body)
@dannyhanes
Copy link

Is there anyway to push to a specific channel?

@dannyhanes
Copy link

dannyhanes commented Aug 16, 2017

Never mind. I figured it out.

my_channel = pb.get_channel('CHAN-NAME')

success, push = pb.push_note(subject, body, channel=my_channel)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment