문제

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.

도움이 되었습니까?

해결책

(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.

다른 팁

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/

Have you looked into Nagios? http://nagios.org/

There are an abundance of agents: http://exchange.nagios.org/directory/Addons/Monitoring-Agents

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top