problem with disk test display
list Larry Barber
Henrik, it appears that having partitions removed from a Linux/Unix system messes up the disk drive display. The disk test continues to display the removed partitions (at least in the legend), but at the expense of not displaying all of the current partitions. In order to display all of the current partitions you have to manually remove the .rrd files that correspond to the removed partitions. Evidently the program just goes through the .rrd files until it has read the same number of files as there are lines in the report from the client. It might be better to read all the .rrd files, regardless of number, or to check that the .rrd file corresponds with a line in the disk test data. Thanks, Larry Barber
list Henrik Størner
▸
On Mon, Sep 19, 2005 at 04:50:54PM -0400, user-7a6c75d6cc10@xymon.invalid wrote:
Henrik, it appears that having partitions removed from a Linux/Unix system messes up the disk drive display. The disk test continues to display the removed partitions (at least in the legend), but at the expense of not displaying all of the current partitions. In order to display all of the current partitions you have to manually remove the .rrd files that correspond to the removed partitions.
Ah yes - this is probably the same bug that Pat Vaughan reported earlier today.
▸
Evidently the program just goes through the .rrd files until it has read the same number of files as there are lines in the report from the client.
That's precisely what it does.
▸
It might be better to read all the .rrd files, regardless of number, or to check that the .rrd file corresponds with a line in the disk test data.
That is a bit more work, and for sites running hobbitd_filestore with the "--html" option to save the HTML status log every time a status message is received it will be a performance killer. But I don't know of anyone who does that - it really doesn't make sense with Hobbit. Next problem is that the hobbitsvc CGI that generates the HTML for the status logs doesn't know anything about how RRD files map to graphs. That's done by the hobbitgraph CGI.... So it's a simple problem that requires some re-shuffling to fix. Henrik
list Craig Cook
▸
On Mon, Sep 19, 2005 at 04:50:54PM -0400, user-7a6c75d6cc10@xymon.invalid wrote:Henrik, it appears that having partitions removed from a Linux/Unix system messes up the disk drive display. The disk test continues to display the removed partitions (at least in the legend), but at the expense of not displaying all of the current partitions. In order to display all of the current partitions you have to manually remove the .rrd files that correspond to the removed partitions.Ah yes - this is probably the same bug that Pat Vaughan reported earlier today.
I would be wary about calling this a bug. You should not be dropping file systems without a good reason. If you do drop a file system, you expect to do extra work. ie. locate rrd file and delete it (or run a command that does it for you). I would be concerned if a tool automatically removed a disk parition graph if it was not mounted at the time it was last checked. Maybe this should be made as a note in the documentation somewhere. Craig Cook -- Systems Monitoring Consulting and Support Services http://www.cookitservices.com
list Henrik Størner
▸
On Mon, Sep 19, 2005 at 06:46:23PM -0500, Craig Cook wrote:
On Mon, Sep 19, 2005 at 04:50:54PM -0400, user-7a6c75d6cc10@xymon.invalid wrote:Henrik, it appears that having partitions removed from a Linux/Unix system messes up the disk drive display. The disk test continues to display the removed partitions (at least in the legend), but at the expense of not displaying all of the current partitions. In order to display all of the current partitions you have to manually remove the .rrd files that correspond to the removed partitions.Ah yes - this is probably the same bug that Pat Vaughan reported earlier today.I would be wary about calling this a bug. You should not be dropping file systems without a good reason. If you do drop a file system, you expect to do extra work. ie. locate rrd file and delete it (or run a command that does it for you).
I understand your concern, but these things do happen occasionally. Someone needs some temp. storage and mounts a normally unused partition. Or a removable device (USB disks and memory sticks show up as SCSI devices on Linux). Windows boxes report filesystems that come and go. The solution i'm currently leaning towards would be to keep the number of graphs what it is now (i.e. matching the number of disk mounts shown in the latest "disk" status report), and then having the tool that generates the graphs skip those RRD-files that haven't been updated recently (within the past 24 hours). Combined with the new option I'm implementing that would allow you to have a red disk status if some filesystem disappears from the disk status reports, I think this would be a reasonable solution that doesn't require me to do major changes to the way the jobs are currently divided among the hobbitsvc- and the hobbitgraph-CGI tools.
▸
I would be concerned if a tool automatically removed a disk parition graph if it was not mounted at the time it was last checked.
Wouldn't it be OK to keep the RRD file - and the graph on the "trends" column page - but remove it from the current "disk" status display ?
Maybe this should be made as a note in the documentation somewhere.
Absolutely. Henrik
list Larry Barber
Not necessarily, most of the "dead" partitions on my machines are CD's that were mounted to install software, and then dismounted, leaving an .rrd file, but returning nothing in the df output after being dismounted. Thanks, Larry Barber
▸
On Mon, 2005-09-19 at 18:46 -0500, user-618593604956@xymon.invalid wrote:On Mon, Sep 19, 2005 at 04:50:54PM -0400, user-7a6c75d6cc10@xymon.invalid wrote: > > Henrik, it appears that having partitions removed from aLinux/Unix > > system messes up the disk drive display. The disk test continues to > > display the removed partitions (at least in the legend), but at the > > expense of not displaying all of the current partitions. In order to > > display all of the current partitions you have to manually remove > > the .rrd files that correspond to the removed partitions. > > Ah yes - this is probably the same bug that Pat Vaughan reported > earlier today. I would be wary about calling this a bug. You should not be dropping file systems without a good reason. If you do drop a file system, you expect to do extra work. ie. locate rrd file and delete it (or run a command that does it for you). I would be concerned if a tool automatically removed a disk parition graph if it was not mounted at the time it was last checked. Maybe this should be made as a note in the documentation somewhere. Craig Cook -- Systems Monitoring Consulting and Support Services http://www.cookitservices.com
list Hermann-Josef Beckers
Hi Larry, "user-7a6c75d6cc10@xymon.invalid" <user-7a6c75d6cc10@xymon.invalid> schrieb am 20.09.2005 15:14:37:
▸
Not necessarily, most of the "dead" partitions on my machines are CD's that were mounted to install software, and then dismounted, leaving an .rrd file, but returning nothing in the df output after being dismounted.
bbsys.sh from BigBrother uses the variables DFUSE and DFEXCLUDE. You sh/could define your cdrom-mountpoints in DFEXCLUDE. Yours hjb Diese E-Mail wurde geprüft von Symantec Antivirus
list Henrik Størner
▸
On Wed, Sep 21, 2005 at 08:40:42AM +0200, Hermann-Josef Beckers wrote:
"user-7a6c75d6cc10@xymon.invalid" <user-7a6c75d6cc10@xymon.invalid> schrieb am 20.09.2005 15:14:37:Not necessarily, most of the "dead" partitions on my machines are CD's that were mounted to install software, and then dismounted, leaving an .rrd file, but returning nothing in the df output after being dismounted.bbsys.sh from BigBrother uses the variables DFUSE and DFEXCLUDE. You sh/could define your cdrom-mountpoints in DFEXCLUDE.
I think Larry uses the Hobbit client, not the BB one - so those settings won't do him much good. However, it should be possible to change the "df" command in the client side script - ~hobbit/client/bin/hobbitclient-OSNAME.sh - to leave out those cdrom mounts. Henrik