Ignoring filesystems
list Rob McBroom
I’ve added something like this to the DEFAULT section at the end of `hobbit-cleints.cfg`.
DISK /mnt IGNORE
But if I mount something on /mnt, it still shows up, alerts, etc. Does this have to be specified per-host/per-page/per-class or should it be possible to define such a thing under DEFAULT?
Related question: How can I “drop” a single filesystem that I don’t want to see historical data for?
Thanks.
--
Rob McBroom
<http://www.skurfer.com/>
The magnitude of a problem does not affect its ownership.
list Ryan Novosielski
For DEFAULT (which I thought had an S, no?) order is important. I think it has to be last in the file, but I do not recall. This bit me similarly a week or so ago. -- Sent from my Palm Pre
▸
On Jul 27, 2010 11:25, Rob McBroom <user-371ba9bb5b75@xymon.invalid> wrote:
I’ve added something like this to the DEFAULT section at the end of `hobbit-cleints.cfg`.
DISK /mnt IGNORE
But if I mount something on /mnt, it still shows up, alerts, etc. Does this have to be specified per-host/per-page/per-class or should it be possible to define such a thing under DEFAULT?
Related question: How can I “drop” a single filesystem that I don’t want to see historical data for?
Thanks.
--
Rob McBroom
<http://www.skurfer.com/> The magnitude of a problem does not affect its ownership.
list Steve Holmes
▸
On Tue, Jul 27, 2010 at 11:23 AM, Rob McBroom <user-371ba9bb5b75@xymon.invalid>wrote:
I’ve added something like this to the DEFAULT section at the end of `hobbit-cleints.cfg`. DISK /mnt IGNORE But if I mount something on /mnt, it still shows up, alerts, etc. Does this have to be specified per-host/per-page/per-class or should it be possible to define such a thing under DEFAULT? Related question: How can I “drop” a single filesystem that I don’t want to see historical data for? Thanks. -- Rob McBroom <http://www.skurfer.com/>; The magnitude of a problem does not affect its ownership.
As for dropping a filesystem from the history, I go looking for it in the data/rrd directory and just remove the rrd file. Steve -- Truth never damages a cause that is just. -Mohandas Karamchand Gandhi (1869-1948)
list Rob McBroom
▸
On Jul 27, 2010, at 12:33 PM, Ryan Novosielski wrote:
For DEFAULT (which I thought had an S, no?) order is important.
There’s no S in the examples or documentation, but that doesn’t necessarily mean it shouldn’t be there.
I think it has to be last in the file, but I do not recall.
I knew someone would bring that up, which is why I specifically said “the DEFAULT section at the end of `hobbit-cleints.cfg`”. :) Any other ideas? -- Rob McBroom <http://www.skurfer.com/>;
list Tim McCloskey
Default is read last, whatever is above it has already been parsed and added to the config. So, it may be that this FS is picked up explicity at some higher level.... maybe.. Have not spent any time on this in many moons.
▸
From: Rob McBroom [user-371ba9bb5b75@xymon.invalid]
Sent: Tuesday, July 27, 2010 10:03 AM
To: xymon at xymon.com
Subject: Re: [xymon] Ignoring filesystems
On Jul 27, 2010, at 12:33 PM, Ryan Novosielski wrote:
For DEFAULT (which I thought had an S, no?) order is important.
There’s no S in the examples or documentation, but that doesn’t necessarily mean it shouldn’t be there.
I think it has to be last in the file, but I do not recall.
I knew someone would bring that up, which is why I specifically said “the DEFAULT section at the end of `hobbit-cleints.cfg`”. :) Any other ideas? -- Rob McBroom <http://www.skurfer.com/>;
list Rob McBroom
▸
On Jul 27, 2010, at 1:08 PM, Tim McCloskey wrote:
Default is read last, whatever is above it has already been parsed and added to the config. So, it may be that this FS is picked up explicity at some higher level.... maybe.. Have not spent any time on this in many moons.
No, there are no mentions of `/mnt` higher up in the file, but thanks. -- Rob McBroom <http://www.skurfer.com/>;
list Ryan Novosielski
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 07/27/2010 12:50 PM, Steve Holmes wrote:
On Tue, Jul 27, 2010 at 11:23 AM, Rob McBroom <user-371ba9bb5b75@xymon.invalid
▸
<mailto:user-371ba9bb5b75@xymon.invalid>> wrote:
I’ve added something like this to the DEFAULT section at the end of
`hobbit-cleints.cfg`.
DISK /mnt IGNORE
But if I mount something on /mnt, it still shows up, alerts, etc.
Does this have to be specified per-host/per-page/per-class or should
it be possible to define such a thing under DEFAULT?
Ah! I think I've figured it out. My apologies for the
reading-comprehension problem earlier. ;)
What I believe to be the problem is that your DISK * 90 95 entry comes
before the /mnt entry. That could be a bum guess, but I think it's the
most likely. FYI, here is my DEFAULT section:
DEFAULT
# These are the built-in defaults.
UP 1h
LOAD 5.0 10.0
DISK %^/cdrom.* IGNORE
DISK %^/mnt.* IGNORE
DISK * 90 95
MEMPHYS 100 101
MEMSWAP 50 80
MEMACT 90 97
I don't know if all of the punctuation is necessary if you're looking
specifically for one name of a filesystem, but I can tell you that mine
works (and handles /mnt/cdrom, or things like Solaris' /cdrom/cdrom0/s0,
etc.).
- --
- ---- _ _ _ _ ___ _ _ _
|Y#| | | |\/| | \ |\ | | |Ryan Novosielski - Sr. Systems Programmer
|$&| |__| | | |__/ | \| _| |user-ae4522577e16@xymon.invalid - 973/972.0922 (2-0922)
\__/ Univ. of Med. and Dent.|IST/CST-Academic Svcs. - ADMC 450, Newark
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkxPL14ACgkQmb+gadEcsb6gvACguyB3xC/YijlfniOp7Zx181BQ
JpsAoKiVGQBltgCc7lwmE0va0VIpwMlT
=AN4r
-----END PGP SIGNATURE-----
list Rob McBroom
▸
On Jul 27, 2010, at 3:11 PM, Ryan Novosielski wrote:
What I believe to be the problem is that your DISK * 90 95 entry comes before the /mnt entry.
It sure does. That’s a good theory. I’ll test it out and let you know. Thanks. -- Rob McBroom <http://www.skurfer.com/>;
list Rob McBroom
On Jul 27, 2010, at 3:53 PM, Rob McBroom wrote:
I’ll test it out and let you know.
Looks like that was it. Thanks. -- Rob McBroom <http://www.skurfer.com/>