Xymon Mailing List Archive search

problem with disk test display

7 messages in this thread

list Larry Barber · Mon, 19 Sep 2005 16:50:54 -0400 (EDT) ·
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 · Mon, 19 Sep 2005 23:28:05 +0200 ·
quoted from Larry Barber
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.
quoted from Larry Barber
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.
quoted from Larry Barber
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 · Mon, 19 Sep 2005 18:46:23 -0500 ·
quoted from 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.
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 · Tue, 20 Sep 2005 11:39:42 +0200 ·
quoted from Craig Cook
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.
quoted from Craig Cook
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 · Tue, 20 Sep 2005 09:14:37 -0400 (EDT) ·
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
quoted from Henrik Størner

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 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 Hermann-Josef Beckers · Wed, 21 Sep 2005 08:40:42 +0200 ·
Hi Larry,

"user-7a6c75d6cc10@xymon.invalid" <user-7a6c75d6cc10@xymon.invalid> schrieb am 20.09.2005
15:14:37:
quoted from 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.
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 · Wed, 21 Sep 2005 09:57:41 +0200 ·
quoted from Hermann-Josef Beckers
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