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!
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 95
Almost 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
HOST=wcscbe5
DISK /expsys 90 95
DISK /expert 90 95
DISK /inadsb 90 95
DISK * IGNORE
Try that ^^
From: Haertig, David F (Dave) [mailto:haertig at avaya.com] Sent: 06 June 2007 16:17 To: hobbit at hswn.dk 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!
participants (3)
-
haertig@avaya.com
-
henrik@hswn.dk
-
JasonAS_Jones@mentor.com