Loadavg collector: use platform independent os.getloadavg() instead of /proc/loadavg
Collector status for ceph server using command 'ceph -s'
Merge pull request #492 from soxofaan/feature-os-getloadavg

Loadavg collector: use platform independent os.getloadavg() instead of /proc/loadavg
Merge pull request #502 from nvhbk16k53/master

Collector status for ceph server using command 'ceph -s'
add methods to avoid repeatedly logging error messages

* keep a dict with the error messages and the last emit timestamp
* and add a way of clearing this dict when required

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
use the new throttle_errors method on socket errors

don't flood the logging facility if the server is down, or other network
errors keep happening

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
reset the errors dict when we were finally able to contact the server

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
docstring

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
don't fail if the error string doesn't exist in the dict

Signed-off-by: Tomas Neme <lacrymology@gmail.com>