Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I have a couple of Linux-servers. And I want one of them to display resource usage on the other ones. For instance CPU-load, RAM (total, used and available) and so on.

What I am looking for is an PHP-class or similar that possibly might get the data from Webmin (installed on all servers) or maybe through SSH.

Thanks in advance :)

share|improve this question

2 Answers 2

Unless Webmin provides some sort of api type interface, you would have to login, via ssh, to each server and run a set of commands to get all the data. This can be done using exec or with ssh library in PHP.

A more efficient option would be to have all servers report relevant stats on an interval to a central database. Then you could query that database to get information on any of the stats you were looking for.

share|improve this answer

Elegant solution i can think of (one of many)

Install zabbix clients on servers you want to monitor.

Use this in your PHP: http://zabbixapi.confirm.ch/

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.