Xymon Mailing List Archive search

client-local.cfg question

6 messages in this thread

list Chuck Danger · Fri, 17 Nov 2006 16:25:31 -0800 (PST) ·
Is there a way in client-local.cfg to group hosts by "like" hostnames?  For example, if I have:

web01
web02
web03
web04
web05

And I want to setup file monitoring in /var/log/httpd, is there some way to group them so that I don't have to define each one?  I'd like to do something like:

[web*]
log:`find /var/log/httpd -type f -maxdepth 1` size<10000000

instead of having to do:

[web01]
...
[web02]
...
[web03]
...

Thanks-
Jay
list Jason Altrincham Jones · Mon, 20 Nov 2006 09:11:22 -0000 ·
Hi guys,

 
My colleagues in all their infinite wisdom want to change the IP address
of our main hobbit server, I'm wondering if there is a way to change
this dynamically and update all the clients or if I have to go onto each
client one by one to change them to the new IP address?

 
Thanks,

Jason.
list Henrik Størner · Mon, 20 Nov 2006 10:51:05 +0100 ·
quoted from Jason Altrincham Jones
On Mon, Nov 20, 2006 at 09:11:22AM -0000, Jones, Jason (Altrincham) wrote:
My colleagues in all their infinite wisdom want to change the IP address
of our main hobbit server, I'm wondering if there is a way to change
this dynamically and update all the clients or if I have to go onto each
client one by one to change them to the new IP address?
You could use the client-update function to send out a new
hobbitclient.cfg file with the updated BBDISP setting. See the
clientupdate man-page for details.


Regards,
Henrik
list Chuck Danger · Mon, 20 Nov 2006 10:00:53 -0800 (PST) ·
Thought I would try this again, maybe I caught people on a weekend...
quoted from Chuck Danger

----- Original Message ----
From: Chuck Danger <user-1bc65d9b5be1@xymon.invalid>
To: user-ae9b8668bcde@xymon.invalid
Sent: Friday, November 17, 2006 4:25:31 PM
Subject: [hobbit] client-local.cfg question

Is there a way in client-local.cfg to group hosts by "like" hostnames?  For example, if I have:

web01
web02
web03
web04
web05

And I want to setup file monitoring in /var/log/httpd, is there some way to group them so that I don't have to define each one?  I'd like to do something like:

[web*]
log:`find /var/log/httpd -type f -maxdepth 1` size<10000000

instead of having to do:

[web01]
...
[web02]
...
[web03]
...

Thanks-
Jay
list Charles Jones · Mon, 20 Nov 2006 13:37:49 -0700 ·
Yes.  See the CLASS option in the bb-hosts man page.  Basically you can define a CLASS (group) of hosts, and then in client-local.cfg you can do:

[classname]
log:`find /var/log/httpd -type f -maxdepth 1` size<10000000

-Charles
quoted from Chuck Danger

Chuck Danger wrote:
Thought I would try this again, maybe I caught people on a weekend...

----- Original Message ----
From: Chuck Danger <user-1bc65d9b5be1@xymon.invalid>
To: user-ae9b8668bcde@xymon.invalid
Sent: Friday, November 17, 2006 4:25:31 PM
Subject: [hobbit] client-local.cfg question

Is there a way in client-local.cfg to group hosts by "like" hostnames?  For example, if I have:

web01
web02
web03
web04
web05

And I want to setup file monitoring in /var/log/httpd, is there some way to group them so that I don't have to define each one?  I'd like to do something like:

[web*]
log:`find /var/log/httpd -type f -maxdepth 1` size<10000000

instead of having to do:

[web01]
...
[web02]
...
[web03]
...

Thanks-
Jay

list Chuck Danger · Mon, 20 Nov 2006 14:08:08 -0800 (PST) ·
Thanks, I appreciate the heads up!
quoted from Charles Jones

----- Original Message ----
From: Charles Jones <user-e86b4aeade4e@xymon.invalid>
To: user-ae9b8668bcde@xymon.invalid
Sent: Monday, November 20, 2006 12:37:49 PM
Subject: Re: [hobbit] client-local.cfg question


Yes.  See the CLASS option in the bb-hosts man page.  Basically you can
define a CLASS (group) of hosts, and then in client-local.cfg you can
do:


[classname]

log:`find /var/log/httpd -type f -maxdepth 1` size<10000000


-Charles


Chuck Danger wrote:

  
  Thought
I would try this again, maybe I caught people on a weekend...

  
Original Message ----

From: Chuck Danger <user-1bc65d9b5be1@xymon.invalid>

To: user-ae9b8668bcde@xymon.invalid

Sent: Friday, November 17, 2006 4:25:31 PM

Subject: [hobbit] client-local.cfg question

  
  Is there a way in client-local.cfg to group hosts by "like"
hostnames?  For example, if I have:

  
web01

web02

web03

web04

web05

  
And I want to setup file monitoring in /var/log/httpd, is there some
way to group them so that I don't have to define each one?  I'd like to
do something like:

  
[web*]

log:`find /var/log/httpd -type f -maxdepth 1` size<10000000

  
instead of having to do:

  
[web01]

...

[web02]

...

[web03]

...

  
Thanks-

Jay