Memset Server Status Gnome AppIndicator
To demonstrate how you can use our new API, I have created a basic Gnome AppIndicator (crudely named "Memset Status App") which polls our API for server monitoring status information (specifically, the 'ping' check). It will update the status every 10 seconds and if any of the servers are not pinging, the icon will turn red. If everything is OK, the icon will turn (or remain) blue.
I have only tested it on Ubuntu 11.04 and there is no error checking, so it's rather fragile! Nevertheless, you can download
from here .
I'll upload it to our github account at some point and also improve the code and packaging.
Download the file
- untar it (e.g. tar xvf memset-status-app-0.1.tar)
- cd memset-status-app
- sudo python setup.py install
- If you do not have one already, create an API key in the Memset control panel (optionally restrict the scope to method:server.status.info).
- Create ~/.config/memset-status-app.conf with the following configuration:
[main] api_key = <YOUR KEY HERE> [servers] myserver1 myserver2 myserver3
You should now be able to run memset-status-app.py from a shell.blog comments powered by Disqus