System Monitoring Tool (Web Interface) using PHP

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
devarishi
Forum Contributor
Posts: 101
Joined: Fri Feb 05, 2010 7:15 pm

System Monitoring Tool (Web Interface) using PHP

Post 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?
User avatar
Jonah Bron
DevNet Master
Posts: 2764
Joined: Thu Mar 15, 2007 6:28 pm
Location: Redding, California

Re: System Monitoring Tool (Web Interface) using PHP

Post 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.
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Re: System Monitoring Tool (Web Interface) using PHP

Post 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.
There are 10 types of people in this world, those who understand binary and those who don't
sharad.pai
Forum Newbie
Posts: 1
Joined: Wed Sep 15, 2010 4:44 am

Re: System Monitoring Tool (Web Interface) using PHP

Post 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
Post Reply