Page 1 of 1

System Monitoring Tool (Web Interface) using PHP

Posted: Mon Sep 13, 2010 6:16 pm
by devarishi
Can we develop a System Monitoring Tool (Web Interface) using PHP or Perl? I mean a monitoring tool like Nagios. I am curious to develop such a tool that can display alerts / status when:

CPU Utilization Exceeds a Set Threshold Value
RAM Utilization Exceeds a Set Threshold Value
Disk Space for a Given Mount-Point / Partition Exceeds a Set Threshold Value
Certain Services, Applications, Clients or Workstations, and Servers are unavailable or have gone down

Etc., etc.


Any ideas?

Re: System Monitoring Tool (Web Interface) using PHP

Posted: Mon Sep 13, 2010 6:26 pm
by Jonah Bron
Yes, you could. Probably the easiest way to access that information would be to use shell_exec() to get data from the terminal.

Re: System Monitoring Tool (Web Interface) using PHP

Posted: Tue Sep 14, 2010 2:52 am
by VladSun
You may wish to use Munin

http://munin-monitoring.org/
http://munin-monitoring.org/wiki/munin-man#munin-html

and just use or write your own data gathering script.

Re: System Monitoring Tool (Web Interface) using PHP

Posted: Wed Sep 15, 2010 4:48 am
by sharad.pai
I recently worked on a project where i had to monitor all servers connected to switches in datacenter.. Monitoring can be done by installing mrtg and configuring all cfg files by cfgmaker. You will have to write perl alogrithm to calculate 95%,usage per day,usage per month