Xymon Mailing List Archive search

Client log parsing (suggestion)

4 messages in this thread

list Bob Gordon · Thu, 19 Jan 2006 09:58:04 -0800 ·
Hi Henrick -

In one of the previous messages, you had mentioned that you wanted to keep
as much configuration data on the server as possible in order to make
adminstration easier. To that end I offer the following suggestion for the
message configuration..

In the bb man page (4.1.2 early snapshot) there is a section that reads as
follows:
     config FILENAME
          Retrieve one of the Hobbit configuration files from the
          server. This command allows a client to pull files from
          the $BBHOME/etc/ directory on the server, allowing  for
          semi-automatic  updates  of  the  client configuration.
          Since the configuration files are designed  to  have  a
          common  file  for the configuration of all hosts in the
          system - and this is in fact  the  recommended  way  of
          configuring your clients - this makes it easier to keep
          the configuration files synchronized.
Why not set things up as follows:
1 - On the server have a "hobbit-msg" file that contains default
configuration information that applies to all systems.  (I.E. Alert on
kernel warning and panic messages from the syslog).
2 - In the same directory (or a subdirectory) have seperate
hobbit-msg.<servername> files that contain specific configuration
information for the specified hosts.
3 - Once an hour (or other configurable time frame) have the client systems
issue a command to pull the default file as well as the system specific file
from the server.  If the client specific file is not available use the
default file, otherwise use the standard configuration..

Doing it this way would still allow for central administration of the
configuration files as well as allow for custom message parsing
configurations on the target systems..

Anyways..  Just a thought..

Later -

--
--==[ Bob Gordon ]==--
list Steve Aiello · Thu, 19 Jan 2006 13:23:49 -0500 ·
I was thinking the same thing about using the config parameter of the
hobbit/bigbrother protocol. Only difference in what I was thinking was
one large global file i.e. in the format of the bb-msgstab. Running only
every hour is too long for me. Would need some type of tool to check the
log(s) with only updated info from the last time the log(s) were
checked.
quoted from Bob Gordon

	-----Original Message-----
	From: Bob Gordon [mailto:user-488dbf322a4e@xymon.invalid] 
	Sent: Thursday, January 19, 2006 12:58 PM
	To: user-ae9b8668bcde@xymon.invalid
	Subject: [hobbit] Client log parsing (suggestion)
	
	
	Hi Henrick -
	
	In one of the previous messages, you had mentioned that you
wanted to keep as much configuration data on the server as possible in
order to make adminstration easier. To that end I offer the following
suggestion for the message configuration..
	
	In the bb man page (4.1.2 early snapshot) there is a section
that reads as follows:
	
	     config FILENAME
	          Retrieve one of the Hobbit configuration files from
the
	          server. This command allows a client to pull files
from
	          the $BBHOME/etc/ directory on the server, allowing
for
	          semi-automatic  updates  of  the  client
configuration.
	          Since the configuration files are designed  to  have
a
	          common  file  for the configuration of all hosts in
the
	          system - and this is in fact  the  recommended  way
of
	          configuring your clients - this makes it easier to
keep
	          the configuration files synchronized.
	
	Why not set things up as follows:
	1 - On the server have a "hobbit-msg" file that contains default
configuration information that applies to all systems.  (I.E. Alert on
kernel warning and panic messages from the syslog).
	2 - In the same directory (or a subdirectory) have seperate
hobbit-msg.<servername> files that contain specific configuration
information for the specified hosts.
	3 - Once an hour (or other configurable time frame) have the
client systems issue a command to pull the default file as well as the
system specific file from the server.  If the client specific file is
not available use the default file, otherwise use the standard
configuration..
	
	Doing it this way would still allow for central administration
of the configuration files as well as allow for custom message parsing
configurations on the target systems..
	
	Anyways..  Just a thought..
	
	Later -
	
	-- 
	--==[ Bob Gordon ]==--
list Buchan Milne · Mon, 23 Jan 2006 16:12:11 +0200 ·
quoted from Steve Aiello
On Thursday 19 January 2006 20:23, Aiello, Steve (Corporate, consultant) wrote:
I was thinking the same thing about using the config parameter of the
hobbit/bigbrother protocol. Only difference in what I was thinking was
one large global file i.e. in the format of the bb-msgstab. Running only
every hour is too long for me. Would need some type of tool to check the
log(s) with only updated info from the last time the log(s) were
checked.
Here is my implementation which pulls the bb-msgstab from the hobbit server on every run.

On hosts running the hobbit client, you can just run it from clientlaunch.cfg.

Now i just need to get rid of the "The client did not report any logfile data" message ...

Comments welcome.

Regards,
Buchan

-- 
Buchan Milne
ISP Systems Specialist
B.Eng,RHCE(803004789010797),LPIC-2(LPI000074592)
list Buchan Milne · Mon, 23 Jan 2006 16:19:28 +0200 ·
On Thursday 19 January 2006 20:23, Aiello, Steve (Corporate, consultant) wrote:
I was thinking the same thing about using the config parameter of the
hobbit/bigbrother protocol. Only difference in what I was thinking was
one large global file i.e. in the format of the bb-msgstab. Running only
every hour is too long for me. Would need some type of tool to check the
log(s) with only updated info from the last time the log(s) were
checked.
Here is my implementation which pulls the bb-msgstab from the hobbit server on every run:

http://zarb.org/~bgmilne/bb-msgs.pl

On hosts running the hobbit client, you can just run it from clientlaunch.cfg.

Now i just need to get rid of the "The client did not report any logfile data" message ...

Comments welcome.

Regards,
Buchan

-- 
Buchan Milne
ISP Systems Specialist
B.Eng,RHCE(803004789010797),LPIC-2(LPI000074592)