Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

small Twitter script for Nagios

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 README.md
Octocat-spinner-32 nagios_commands.tpl
Octocat-spinner-32 tweepy-1.7.1-py2.6.egg
Octocat-spinner-32 twitter-python-register.py
Octocat-spinner-32 twitter-python.py
README.md

Install

  • easy_install tweepy-1.7.1-py2.6.egg
  • chmod +x *.py
  • mv *.py /usr/local/bin
  • cat nagios_commands.tpl >> /etc/nagios3/objects/commands.cfg

  • register a new application at Twitter and use "Desktop Client" and "Read/Write Access"

  • copy Consumer key and secret into /usr/local/bin/twitter-python-register.py
  • execute /usr/local/bin/twitter-python-register.py and copy given URL into browser
  • enter URL and paste the PIN back to twitter-python-regiser.py
  • copy the Access key & secret and Consumer key & secret into /usr/local/bin/twitter-python.py
  • Test script with /usr/local/bin/twitter-python.py "Hello World"
Something went wrong with that request. Please try again.