Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Scripting library for monitoring server health?

Is there a scripting library preferably in Python/Perl/Ruby that allows you to get information on disk, load, a list of processes running, cpu usage in a standard way?

I always end up parsing df, uptime, ps etc. Given that these differ on different Unix flavors and need to be done in a totally different way on Windows, I would have thought that someone would have already done this.

like image 603
Stuart Woodward Avatar asked Jan 04 '12 01:01

Stuart Woodward


2 Answers

Most simple is monit: http://mmonit.com/monit/

A step up, as @lawrencealan mentioned, is Nagios: http://nagios.org/

And here's a new interesting effort: http://amon.cx/

like image 118
John Bachir Avatar answered Oct 16 '22 15:10

John Bachir


(ruby) Daniel Berger maintains a lot of gems in this field. Look for sys-cpu, sys-uptime, sys-uname, sys-proctable, sys-host, sys-admin, sys-filesystem - all multi-platform AFAIK.

like image 2
steenslag Avatar answered Oct 16 '22 14:10

steenslag