eric6630
10-26-2011, 07:21 AM
hi
want to create php with vps server statistics where include the actual situation of ram, bandwidth etc.. or simply monitoring.
is there any script or tutorial for that/? :confused:
iLoveHosting-UK
10-26-2011, 07:29 AM
What control panel does your vps use?
- Ashton
eric6630
10-26-2011, 08:16 AM
most of them are using solusvm
iLoveHosting-UK
10-26-2011, 05:46 PM
Cant you pull the graphs from SolusVM, Whmcs does this.
- Ashton
abenson
10-26-2011, 06:09 PM
I use something like Nagios which is a server monitoring software. It gives me all the graphs and statistical information and ensures our servers are healthy.
Much recommended.
http://www.nagios.org/
abenson
10-26-2011, 10:10 PM
Thank you sir
I did forget to mention that we use it to monitor our dedicated servers but I'm sure it can still be applied to VPSs. A lot of networking professionals perfer this software so it's certainly professional grade for internal usage. I'm not sure how it would work if you wanted your customers to see their stats, they might have to use SolusVm for that. Hope this helps and good luck!
eric6630
10-26-2011, 10:16 PM
we have coded to monitor our customer bandwidth usage and apply it into php page but our problem to monitor the actual performance every vps we got and put it in web page. we prefer less memory usage but effective.
eric6630
10-26-2011, 10:25 PM
I did forget to mention that we use it to monitor our dedicated servers but I'm sure it can still be applied to VPSs. A lot of networking professionals perfer this software so it's certainly professional grade for internal usage. I'm not sure how it would work if you wanted your customers to see their stats, they might have to use SolusVm for that. Hope this helps and good luck!
how much memory does it consumed if we install that monitoring software?
ceva90
10-28-2011, 01:54 PM
Am using this. Call it uptime.php and upload it on ur site. then open domain.com/uptime.php :) Hope it helps
<?php
// ==============================
// Server Uptime And Hardware Information |
// ==============================
?>
<html>
<head>
<title><?php echo $SERVER_NAME; ?> - Server Information</title>
<STYLE type=text/css>
BODY { FONT-SIZE: 8pt; COLOR: black; FONT-FAMILY: Verdana,arial, helvetica, serif; margin : 0 0 0 0;}
</STYLE>
</head>
<body>
<pre>
<b>Uptime:</b>
<?php system("uptime"); ?>
<b>System Information:</b>
<?php system("uname -a"); ?>
<b>Memory Usage (MB):</b>
<?php system("free -m"); ?>
<b>Disk Usage:</b>
<?php system("df -h"); ?>
<b>CPU Information:</b>
<?php system("cat /proc/cpuinfo | grep \"model name\\|processor\""); ?>
</pre>
<br>
<br>
</body>
</html>
cedricd
10-28-2011, 02:45 PM
Give https://github.com/nikkiii/status a try. Demo page (http://servers.nikkii.us)
eric6630
10-29-2011, 04:29 AM
Am using this. Call it uptime.php and upload it on ur site. then open domain.com/uptime.php :) Hope it helps
wow great this code works
thank you very much for this ^_^
how can i save that info that we get into database?
we got 7 vps how can we print out all there system info and transfer to our main site?
eric6630
10-29-2011, 04:36 AM
Give https://github.com/nikkiii/status a try. Demo page (http://servers.nikkii.us)
thank you sir
dont know what to say im so blessed today
Again Thank You
Vikalp
12-05-2011, 09:16 PM
@cedricd Thanks, that helped. :)
d4m1r
02-25-2012, 09:47 PM
Am using this. Call it uptime.php and upload it on ur site. then open domain.com/uptime.php :) Hope it helps
Thanks for this!