cooking, programming and everyday life xrado

Sunday, August 28, 2011

wmon - web server monitor

wmon or web monitor for Linux servers is tool I made about 3 years ago. The idea was to get a better picture of web server load. That's how it looked back in 2008.



A few lines of PHP and bash commands and chart made with GD library. Turned out to be quite useful. I gave it also to some friends and the totally forgot about it. Then one day a friend mention me, what about wmon, its very cool tool, are you planing any updates. I've been quite happy to hear it and that gave me some momentum to actually push it further.

I've found a nice charting tool dygraphs, that draws canvas charts and also have zooming in some other cool features. Dygraph relay gave mi some good options to add additional features, like top processes and services status changes for any pointed time on chart. I've also added easy way to include external wmon in to one report. Thats how you can monitor all servers from one location.


Turned out pretty good and probably useful for others, so i decide it to sell it on codecanyon.net. Hopefully it will buy me some beer :). If you are interested you can get it and try it here. Thanks!

Wednesday, June 18, 2008

dd-wrt rocks

Today i have flashed my asus wl-500gx with dd-wrt software and i must say I'm amazed how good it works. Actually i wasn't intending to, but asus offical firmware update failed so i tried dd-wrt. Flashing was easily done from linux console with tftp, but before you do it leave instructions page open, otherwise you might end up with dead router and no instructions to recover. Current software version v24 have every thing you need and a lot more, with very clean and simple web interface. The nicest are graphs (load, memory usage, bandwidth,.. ) which are auto refreshing so you see live picture of router status.

What can i say, if your home router that is supported you can't go wrong with dd-wrt
installation wiki: http://www.dd-wrt.com/wiki/index.php/Installation

Sunday, June 11, 2006

Mount samba share with utf8

If you dont want to have problems with different characters betweenwindows and linux clients you have to mount samba share with utf8charset.
mount -t cifs -o username=user,password=pass,uid=clientuser,gid=clientgroup,iocharset=utf8  //server/share /mountpoint
or you can add it to /etc/fstab (in one line):
//server/code /mountpoint cifs username=user,password=pass,uid=clientuser,gid=clientgroup,iocharset=utf8 0   0

Monday, June 12, 2006

Sync your hardware clock

Easiest way to set current time
ntpdate serverhwclock --systoh
for slovenia:
ntpdate time.ijs.si
hwclock --systoh
you can add this commands to rc.local or crontab for automatic time/date sync
pages:  1   2   3