Ignoring snap mounts
list Josh Luthman
I am trying to ignore /snap/*. I've got my host as such:
HOST=foo.bar.com
DISK %^/snap.*/ IGNORE
INODE %^/snap* IGNORE
Neither of these are matching (notice the .*/ versus *). The man page says
"%^/oracle.*/" will match any filesystem whose mountpoint begins with
"/oracle". Replicating this, though, doesn't seem to be working for me -
I'm expecting the DISK to be working at this point as I matched the example.
I'm getting a red status that the file system is 100% used.
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX
list Kris Springer
I got mine working like this. DISK %^/snap*/ IGNORE Kris Springer
▸
On 11/13/18 10:18 AM, Josh Luthman wrote:I am trying to ignore /snap/*. I've got my host as such:
HOST=foo.bar.com <http://foo.bar.com>;
▸
DISK %^/snap.*/ IGNORE
INODE %^/snap* IGNORE
Neither of these are matching (notice the .*/ versus *). The man page says "%^/oracle.*/" will match any filesystem whose mountpoint begins with "/oracle". Replicating this, though, doesn't seem to be working for me - I'm expecting the DISK to be working at this point as I matched the example.
I'm getting a red status that the file system is 100% used.
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX
list Josh Luthman
Thanks for the sanity check! My issue was actually having DEFAULTS at the top (the DISK * 90 95) overwriting the things below. I've got all my server specific stuff below it, but that's for FILE checks and such. I figured this out when I tried to set DISK / 1 2 to be warned about that, which failed when the statement was placed below DEFAULTS.
▸
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX
On Tue, Nov 13, 2018 at 1:11 PM, Kris Springer <user-c2caa0a7a8d5@xymon.invalid>
▸
wrote:
I got mine working like this.
DISK %^/snap*/ IGNORE
Kris Springer
On 11/13/18 10:18 AM, Josh Luthman wrote:
I am trying to ignore /snap/*. I've got my host as such:
HOST=foo.bar.com
DISK %^/snap.*/ IGNORE
INODE %^/snap* IGNORE
Neither of these are matching (notice the .*/ versus *). The man page
says "%^/oracle.*/" will match any filesystem whose mountpoint begins with
"/oracle". Replicating this, though, doesn't seem to be working for me -
I'm expecting the DISK to be working at this point as I matched the example.
I'm getting a red status that the file system is 100% used.
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St<https://maps.google.com/?q=1100+Wayne+St+%0D%0A++++++++++++++++++++Suite+1337+%0D%0A++++++++++++++++++++Troy,+OH+45373&entry=gmail&source=g>; Suite XXXX Troy, OH XXXXX Xymon mailing user-d459c9d661b6@xymon.invalid
list Thomas Eckert
I’m late to the party … you already found out that the DEFAULT-section (or more general `DISK *`-lines) need to be _after_ your “snap-ignore lines”.
A more specific regex would be
DISK %^/snap/.+ IGNORE
(same for the INODE-line).
All the best
Thomas
▸
On 13 Nov 2018, at 18:18, Josh Luthman <user-4c45a83f15cb@xymon.invalid> wrote: I am trying to ignore /snap/*. I've got my host as such: HOST=foo.bar.com <http://foo.bar.com/>; DISK %^/snap.*/ IGNORE INODE %^/snap* IGNORE Neither of these are matching (notice the .*/ versus *). The man page says "%^/oracle.*/" will match any filesystem whose mountpoint begins with "/oracle". Replicating this, though, doesn't seem to be working for me - I'm expecting the DISK to be working at this point as I matched the example. I'm getting a red status that the file system is 100% used. Josh Luthman Office: XXX-XXX-XXXX Direct: XXX-XXX-XXXX XXXX Wayne St Suite XXXX Troy, OH XXXXX