Xymon Mailing List Archive search

DISK test: only monitor specific filesystems

list Chris Matlock
Thu, 12 Jul 2007 10:39:58 -0500
Message-Id: <user-1274cfd84136@xymon.invalid>

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 
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


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.