Author: Ian Gable email@example.com
A python script that will watch an imap server, get the number of unread messages and push that information to Librato Metrics. In order to use this script you need a Librato account and API key.
$ librato-imap --help $ librato-imap --username joe --imap-server imap.domain.com --librato-user "firstname.lastname@example.org" --api-key 1234561234sdf5345
The install requires the python librato package from PyPI. You can install this with pip. If you don't have pip install that first.
$ pip install librato $ git clone git://github.com/igable/librato-scripts.git $ cd librato-scripts $ python setup.py install
Hopefully this will get better.
This program is free software; you can redistribute it and/or modify it under the terms of either:
a) the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version, or
b) the Apache v2 License.