Resources for “A System Monitoring Dashboard”

July 21st, 2005 by John Ouellette in

Resources for the print article.
Your rating: None
__________________________


Special Magazine Offer -- Free Gift with Subscription
Receive a free digital copy of Linux Journal's System Administration Special Edition as well as instant online access to current and past issues. CLICK HERE for offer

Linux Journal: delivering readers the advice and inspiration they need to get the most out of their Linux systems since 1994.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Anonymous...'s picture

scripts could be improved, tested more thoroughly

On October 4th, 2005 Anonymous... (not verified) says:

I read the article and looked forward to trying out the scripts. It seemed like just what we need. Some very good ideas in here but the scripts should probably be tested on a more common distro and checked for compliance with FHS.

I spent a few minutes to try testing the scripts and soon decided it was not worth the effort. Please let us know if the scripts have been fixed.

First... have the scripts gone through a unix2dos filter?? Why?

For example:


debian@:~/test$ ./monitor_web.sh
: bad interpreter: No such file or directory
debian@:~/test$ hexdump -C monitor_web.sh |head -n 1
00000000 23 21 2f 62 69 6e 2f 62 61 73 68 0d 0a 23 0d 0a |#!/bin/bash..#..|

Note the "0d 0a" AKA CR-LF which confused the bash shell interpreter.

After using unix2dos to remove these... I noticed some necessary editing to do in the monitor_disk.sh script:


GREP="/sbin/grep"
MOUNT="/sbin/mount"
AWK="/usr/bin/awk"

... why bother.... normally these are in the path... if it is really necessary to put the commands in variables... why not make it easy for readers and use locations that will just work. or even better, use "which" to set your variables. grep and mount are usually not in /sbin.

After this, I noticed that one script requires ksh. Not a big deal but, not mentioned in the article.

Thanks for the ideas though. I may consider writing a simple ssh based monitoring system.

Kurt Rudahl's picture

In defence of the author:

On February 15th, 2006 Kurt Rudahl (not verified) says:

In defence of the author: ("these things are usually on the path...")

These are intended to be run by cron, where the normal user path may not be available. It is customary to supply an explicit path in such cases (which will, naturally, vary with the system).

Hi. Thanks for the feedback! That's the whole point of Open Source, full disclosure of code, and making it better!

As the author of the scripts they are presented as a soluton, not a product. The goal, of course, is to please as many customers as possible, and that's not always possible.

I will report great success at my company so far, which is why I wrote the article! Here' an external link for the the latest updates to these scripts:

http://monitorsuite.sourceforge.net

I personally support these in my spare time. Don't hesitate to contact me at my current email address, I welcome all feedback!

Regards,
-John

Anonymous Too's picture

Agreed.

On October 21st, 2005 Anonymous Too (not verified) says:

I, too, downloaded the scripts as they looked like a great starting point for monitoring my systems, and, sadly, I have to agree with the poster before me that these scripts are replete with bugs. Even the way they were archived is broken. It appears the author made a big no-no: he made 'innocuous' last-minute changes which he did not test, perhaps to meet the LJ deadline, and ended up submitting very broken scripts.

In addition to the problems the poster above mentions, such basic things as forgetting to put a hash mark before a comment, and not putting a space between flags are found in at least the monitor_web.sh script. I've not tested the others yet.

Author: please do fix these problems and re-post.

Post new comment

Please note that comments may not appear immediately, so there is no need to repost your comment.
The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <pre> <ul> <ol> <li> <dl> <dt> <dd> <i> <b>
  • Lines and paragraphs break automatically.

More information about formatting options

Newsletter

Each week Linux Journal editors will tell you what's hot in the world of Linux. You will receive late breaking news, technical tips and tricks, and links to in-depth stories featured on www.linuxjournal.com.
Sign up for our Email Newsletter

Tech Tip Videos

From the Magazine

December 2009, #188

If last month's Infrastrucuture issue was too "big" for you then try on this month's Embedded issue. Find out how to use Player for programming mobile robots, build a humidity controller for your root cellar, find out how to reduce the boot time of your embedded system, and if you're new to embedded systems find out the basics that go into one. You can also read about the Beagle Board, the Mesh Potato and a spate of other interestingly named items. And along with our regular columns don't miss our new monthly column: Economy Size Geek.


Read this issue