OpenBSD Journal
Home : : Add Story : : Archives : : About : : Create Account : : Login :
Contributed by jolan on Thu Sep 1 05:33:06 2005 (GMT)
from the OAP dept.

Ryan Flannery wrote in to say:

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.


<< Real-Time Audio Servers on BSD Unix Derivatives | Reply | Flattened | Expanded | Theo displays his birthday present >>

Threshold: Help

Related Links
more by jolan

  Re: phpSymon (mod 3/23)
by Rich ( on Thu Sep 1 11:48:10 2005 (GMT)
  This is a really nice addition.

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 :-)

  [ Show thread ] [ Reply to this comment ] [ Mod Up ] [ Mod Down ]

  Re: phpSymon (mod 6/22)
by m ( on Thu Sep 1 12:11:41 2005 (GMT)
  I have problem with symon. When I run it it doesn't listen on any port even that in conf file I have stream to 2100. So your script does not work for me :( OpenBSD 3.7.
  [ Show thread ] [ Reply to this comment ] [ Mod Up ] [ Mod Down ]
      Re: phpSymon (-3/17) by m on Thu Sep 1 14:33:39 2005 (GMT)

  Re: phpSymon (mod -5/19)
by Anonymous Coward ( on Thu Sep 1 20:20:59 2005 (GMT)
  Looks very nice, it's just missed the uptime, but have to try it.
  [ Show thread ] [ Reply to this comment ] [ Mod Up ] [ Mod Down ]

  Render latency (mod -1/23)
by Anonymous Coward ( on Sat Sep 3 05:58:32 2005 (GMT)
  I am quite impressed with this script. The latency rendering the page bothers me, however. According to the FAQ, it is because symon only collects stats every five seconds. Would it be feasible to have symon output to a text file every five seconds and then have your script read the information from that text file so as to reduce the rendering latency? (I am not very familiar with symon so if this is not possible with symon, pardon me and forget I said anything!)
  [ Show thread ] [ Reply to this comment ] [ Mod Up ] [ Mod Down ]

  Questions regarding discrepancies (mod -5/21)
by Anonymous Coward ( on Sun Sep 4 20:17:29 2005 (GMT)
  I tried this script and all seems to work well except I have identified some discrepencies between values for my network interfaces using a) netstat, b) symon, and c) phpsysmon.

# netstat -I fxp0 -b
Name Mtu Network Address Ibytes Obytes
fxp0 1500 <Link> 00:a0:c9:57:14:69 31192649 7187155

# 2100 "if(fxp0)" "bytes_in"

phpsysmon gives me "29.7 M"
  [ Show thread ] [ Reply to this comment ] [ Mod Up ] [ Mod Down ]

  Re: phpSymon (mod -6/22)
by Anonymous Coward ( on Fri Sep 9 00:24:58 2005 (GMT)
  I can't get more than one host to work with this script.

In defaults.php there are two pertinent lines:


The first host is always the one that succeeds. Interechanging "210" and "214" proves this.
  [ Show thread ] [ Reply to this comment ] [ Mod Up ] [ Mod Down ]

[ Home | Add Story | Archives | Polls | About ]

Copyright © 2004-2008 Daniel Hartmeier. All rights reserved. Articles and comments are copyright their respective authors, submission implies license to publish on this web site. Contents of the archive prior to April 2nd 2004 as well as images and HTML templates were copied from the fabulous original with Jose's and Jim's kind permission. Some icons from used with permission from Kathleen. This journal runs as CGI with httpd(8) on OpenBSD, the source code is BSD licensed. Search engine is ht://Dig. undeadly \Un*dead"ly\, a. Not subject to death; immortal. [Obs.]