DISK test: only monitor specific filesystems
list Dave Haertig
I want to only monitor three specific filesystem on a host, and ignore
the rest. I tried this in hobbit-clients.cfg:
HOST=wcscbe5
DISK * IGNORE
DISK /expsys 90 95
DISK /expert 90 95
DISK /inadsb 90 95
The above didn't list any filesystems in the textual df listing, but
showed a single graph line for the root filesystem. The three
filesystems I actually wanted were not there.
Next I tried:
HOST=wcscbe5
DISK /expsys 90 95
DISK /expert 90 95
DISK /inadsb 90 95
The above didn't appear to do anything different from the original
default, which was "DISK * 90 95". All filesystems were shown in the
textual df listing, and all filesystems were graphed.
I did not try IGNORE'ing individual filesystems one-by-one, although my
guess is that this might work. But that would get quite messy to
maintain with most of the computers I'm monitoring, each having dozens
of mounted filesystems (many unique to the specific computer). And new
filesystems are added fairly regularly, each new filesystem would
require me going back and modifying hobbit-clients.cfg.
It would be nice if hobbit-client.cfg could interpret subsequent lines
to override previous lines, as I attempted to configure in my first
test. Maybe it does do this, and I just missed out on the correct
syntax somehow. Any hints on how to do this?
Thanks!
list Henrik Størner
▸
On Wed, Jun 06, 2007 at 09:17:24AM -0600, Haertig, David F (Dave) wrote:
I want to only monitor three specific filesystem on a host, and ignore
the rest. I tried this in hobbit-clients.cfg:
HOST=wcscbe5
DISK * IGNORE
DISK /expsys 90 95
DISK /expert 90 95
DISK /inadsb 90 95Almost right, put the "DISK * IGNORE" line last instead of first. First match wins in Hobbit, so you should have the most specific entries first, and the more generic (default) ones last. Regards, Henrik
list Jason Altrincham Jones
▸
HOST=wcscbe5
DISK /expsys 90 95
DISK /expert 90 95
DISK /inadsb 90 95
DISK * IGNORE
Try that ^^
▸
From: Haertig, David F (Dave) [mailto:user-68874b735d77@xymon.invalid]
Sent: 06 June 2007 16:17
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] DISK test: only monitor specific filesystems
I want to only monitor three specific filesystem on a host, and ignore
the rest. I tried this in hobbit-clients.cfg:
HOST=wcscbe5
DISK * IGNORE
DISK /expsys 90 95
DISK /expert 90 95
DISK /inadsb 90 95
The above didn't list any filesystems in the textual df listing, but
showed a single graph line for the root filesystem. The three
filesystems I actually wanted were not there.
Next I tried:
HOST=wcscbe5
DISK /expsys 90 95
DISK /expert 90 95
DISK /inadsb 90 95
The above didn't appear to do anything different from the original
default, which was "DISK * 90 95". All filesystems were shown in the
textual df listing, and all filesystems were graphed.
I did not try IGNORE'ing individual filesystems one-by-one, although my
guess is that this might work. But that would get quite messy to
maintain with most of the computers I'm monitoring, each having dozens
of mounted filesystems (many unique to the specific computer). And new
filesystems are added fairly regularly, each new filesystem would
require me going back and modifying hobbit-clients.cfg.
It would be nice if hobbit-client.cfg could interpret subsequent lines
to override previous lines, as I attempted to configure in my first
test. Maybe it does do this, and I just missed out on the correct
syntax somehow. Any hints on how to do this?
Thanks!
list Chris Matlock
I am trying to do this same thing, but nothing I put in hobbit-clients.cfg on the server seems to take any effect. Is there something I have to do to get hobbit to re-read this file?
▸
-----Original Message-----
From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid]
Sent: Wednesday, June 06, 2007 10:37 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] DISK test: only monitor specific filesystems
On Wed, Jun 06, 2007 at 09:17:24AM -0600, Haertig, David F (Dave) wrote:I want to only monitor three specific filesystem on a host, and ignore
the rest. I tried this in hobbit-clients.cfg:
HOST=wcscbe5
DISK * IGNORE
DISK /expsys 90 95
DISK /expert 90 95
DISK /inadsb 90 95Almost right, put the "DISK * IGNORE" line last instead of first. First match wins in Hobbit, so you should have the most specific entries first, and the more generic (default) ones last. Regards, Henrik
CONFIDENTIALITY NOTICE:
This message is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged,
confidential and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient or the employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this
communication in error, please notify us immediately by email reply.
list Henrik Størner
hobbitd_client should reload this file every 10 minutes, if there are any changes to it. You can also do a "kill -HUP PID" with the process-ID of the hobbitd_client process to force a reload. But try the "--test" mode first. Like this: $ bbcmd hobbitd_client --test Hostname (.=end, ?=dump, !=reload) []: myhost Hosttype []: Test (cpu, mem, disk, proc, log, port): disk Filesystem: / Yellow at 85%, red at 90% Hostname (.=end, ?=dump, !=reload) [myhost]: Test (cpu, mem, disk, proc, log, port): disk Filesystem: /backup Ignored This is with the following config: DISK / 85 90 DISK * IGNORE Regards, Henrik
▸
On Thu, Jul 12, 2007 at 10:05:09AM -0500, Matlock, Chris wrote:I am trying to do this same thing, but nothing I put in hobbit-clients.cfg on the server seems to take any effect. Is there something I have to do to get hobbit to re-read this file? -----Original Message----- From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid] Sent: Wednesday, June 06, 2007 10:37 AM To: user-ae9b8668bcde@xymon.invalid Subject: Re: [hobbit] DISK test: only monitor specific filesystems On Wed, Jun 06, 2007 at 09:17:24AM -0600, Haertig, David F (Dave) wrote:I want to only monitor three specific filesystem on a host, and ignorethe rest. I tried this in hobbit-clients.cfg:HOST=wcscbe5DISK * IGNORE DISK /expsys 90 95 DISK /expert 90 95 DISK /inadsb 90 95Almost right, put the "DISK * IGNORE" line last instead of first. First match wins in Hobbit, so you should have the most specific entries first, and the more generic (default) ones last. Regards, Henrik CONFIDENTIALITY NOTICE: This message is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient or the employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by email reply.
--
Henrik Storner
list Chris Matlock
Thanks for the test command. That does help. I do see some changes taking effect, but I am still not getting what I wanted though. I put the following lines in my hobbit-clients.cfg file. HOST=www-test2 DISK /boot 85 90 DISK * IGNORE When I ran bbcmd hobbitd_client --test I got the following output. [root at 050halpnode2 bin]# ./bbcmd hobbitd_client --test 2007-07-12 10:36:43 Using default environment file /mnt/hobbit/server/etc/hobbitserver.cfg Hostname (.=end, ?=dump, !=reload) []: www-test2 Test (cpu, mem, disk, proc): disk Filesystem: / Yellow at 0K, red at 95% Hostname (.=end, ?=dump, !=reload) [www-test2]: Test (cpu, mem, disk, proc): disk Filesystem: /boot Yellow at 92%, red at 97% Hostname (.=end, ?=dump, !=reload) [www-test2]: Shouldn't it say / is ignored instead of Yellow at OK, red 95%? I guess I should also state that I am running hobbit 4.2-alfa-20060423. I am seeing this behavior because I'm running an alfa ver and need to upgrade? Thanks for any help or advice you can provide.
▸
-----Original Message-----
From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid]
Sent: Thursday, July 12, 2007 10:16 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] DISK test: only monitor specific filesystems
hobbitd_client should reload this file every 10 minutes, if there are
any changes to it. You can also do a "kill -HUP PID" with the process-ID
of the hobbitd_client process to force a reload.
But try the "--test" mode first. Like this:
$ bbcmd hobbitd_client --test
Hostname (.=end, ?=dump, !=reload) []: myhost Hosttype []:
Test (cpu, mem, disk, proc, log, port): disk
Filesystem: /
Yellow at 85%, red at 90%
Hostname (.=end, ?=dump, !=reload) [myhost]:
Test (cpu, mem, disk, proc, log, port): disk
Filesystem: /backup
Ignored
This is with the following config:
DISK / 85 90
DISK * IGNORE
Regards,
Henrik
On Thu, Jul 12, 2007 at 10:05:09AM -0500, Matlock, Chris wrote:I am trying to do this same thing, but nothing I put in hobbit-clients.cfg on the server seems to take any effect. Is there something I have to do to get hobbit to re-read this file? -----Original Message----- From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid] Sent: Wednesday, June 06, 2007 10:37 AM To: user-ae9b8668bcde@xymon.invalid Subject: Re: [hobbit] DISK test: only monitor specific filesystems On Wed, Jun 06, 2007 at 09:17:24AM -0600, Haertig, David F (Dave) wrote:I want to only monitor three specific filesystem on a host, and ignorethe rest. I tried this in hobbit-clients.cfg: HOST=wcscbe5 DISK * IGNORE DISK /expsys 90 95 DISK /expert 90 95 DISK /inadsb 90 95Almost right, put the "DISK * IGNORE" line last instead of first. First match wins in Hobbit, so you should have the most specific entries first, and the more generic (default) ones last. Regards, Henrik CONFIDENTIALITY NOTICE: This message is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient or the employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by email reply.
-- Henrik Storner CONFIDENTIALITY NOTICE: This message is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient or the employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by email reply.
list Henrik Størner
▸
On Thu, Jul 12, 2007 at 10:39:58AM -0500, Matlock, Chris wrote:
I guess I should also state that I am running hobbit 4.2-alfa-20060423. I am seeing this behavior because I'm running an alfa ver and need to upgrade?
You definitely need to upgrade. Henrik