Last active
December 4, 2018 00:22
-
-
Save plewin/679358b09136a58f3468 to your computer and use it in GitHub Desktop.
Zabbix Pushbullet alert script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Never mind. I figured it out.
my_channel = pb.get_channel('CHAN-NAME')
success, push = pb.push_note(subject, body, channel=my_channel)