Tue Nov 3 11:37:17 EST 2009

Monitoring Script for resources

This is a small script to display the resources utilization of a NSLU2 running linux on a web page in plain HTML, It is coded in BASH and some JavaScript in orther to display the information. Here is what the output looks like:


Source Code of resources.sh:

You then direct the output of that script to a file in your RootDirectory, in my case I am using /resources.js and I execute resources.sh every 5 minutes from a cronjob.


Source Code of resources.js:

I use the following code to display the information:

Powered by Disqus