Yes, you can use Twitter for monitoring your server. I won't say that it is a complete monitoring solution nor I will ask you to throw away your existing monitoring mechanisms. In fact the script I am talking about, MYST (AGPLv3), was not created for this purpose. It was created so that I could tweet without using browser with inspiration from Hiemanshu, a Fedora contributor, using python-twitter api.
It is just a fun script which you can use to tweet the health of your server periodically to a private account which only a moderated set of people can follow. So here is how you do it:
It is just a fun script which you can use to tweet the health of your server periodically to a private account which only a moderated set of people can follow. So here is how you do it:
Step 1: Create a Twitter account. From settings page, mark it private.
Step 2: Open Twitter's new application page and fill the form. Put the name as 'MYST' and website as 'http://myst.adityapatawari.com'.
Step 3: Download 'MYST: Twitter for Shell' and extract it.
Step 4: Open your application 'MYST' listed at Twitter's apps page and fill .myst.conf with the relevant details.
Copy it to your home directory.
Step 5: Install python-twitter (version 0.82) on your server along with dependencies.
Step 6: Put a cron with appropriate time (and path to scripts) to execute the following periodically:
This is a cool method to check out the system health and you can modify monitor.sh to add more parameters to monitor.
Step 2: Open Twitter's new application page and fill the form. Put the name as 'MYST' and website as 'http://myst.adityapatawari.com'.
Step 3: Download 'MYST: Twitter for Shell' and extract it.
Step 4: Open your application 'MYST' listed at Twitter's apps page and fill .myst.conf with the relevant details.
Copy it to your home directory.
Step 5: Install python-twitter (version 0.82) on your server along with dependencies.
Step 6: Put a cron with appropriate time (and path to scripts) to execute the following periodically:
./myst.py update `./monitor.sh`
This is a cool method to check out the system health and you can modify monitor.sh to add more parameters to monitor.
Please contribute to the MYST project on Gitorious.org