Contributed by jolan on from the OAP dept.
I wanted something like phpSysInfo to get a quick snapshot of various server stats when all I had was a web-browser. I use the symon package by Willem Dijkstra to monitor various OpenBSD stats on our web/email servers, but I don't have symux update the graphs (displayed via syweb) on a continuous basis for obvious reasons.
Unwilling to break apache's chroot for something as trivial as phpSysInfo, I decided to write a PHP script that taps into the stats symon streams to my server. It displays a quick overview of any stats available.
Webpage with downloads for phpSymon here, and demo here.
(Comments are closed)
By Rich (62.6.248.24) on
I use symon too, but the one (and only) thing I really dislike about it is that the report generator requires a shell in order to work. Putting a shell in the apache chroot is hardly ideal from a security standpoint. Using your natty script, I may not have to any more :-)
Rich.
By m (217.197.149.135) on
Comments
By m (217.197.149.135) on
Comments
By m (217.197.149.135) on
By Anonymous Coward (200.5.117.242) on
By Anonymous Coward (24.15.207.148) on
By Anonymous Coward (216.252.84.174) on
# netstat -I fxp0 -b
Name Mtu Network Address Ibytes Obytes
fxp0 1500 <Link> 00:a0:c9:57:14:69 31192649 7187155
# getsymonitem.pl 127.0.0.1 2100 127.0.0.1 "if(fxp0)" "bytes_in"
31194237
phpsysmon gives me "29.7 M"
Comments
By Anonymous Coward (64.165.91.226) on
31194237
Seems pretty reasonable to me.
Lets do some quick math
31194237 bytes/1024 = 30463 KBytes/1024= 29.74 MBytes = 29.7, which is what was reported to three sig-figs.
Granted, you could argue KiB vs. KB, and I'd agree with you, but the fact of the matter in most cases it's still 1024 and not 1000.
Comments
By Anonymous Coward (64.165.91.226) on
Comments
By Anonymous Coward (81.168.66.229) on
By Anonymous Coward (216.252.84.115) on
In defaults.php there are two pertinent lines:
$maxtries=2;
$hostlist="192.168.2.210, 192.168.2.214";
The first host is always the one that succeeds. Interechanging "210" and "214" proves this.