Xymon Mailing List Archive search

check messages logfile

4 messages in this thread

list Bengt Olsson · Mon, 23 Apr 2007 17:08:20 +0200 ·
Hello

Do i have to use a externel script to check a logfile like 
/var/log/messages on hobbit server/client, just  like BB do?

Regards

Bengt
list Henrik Størner · Mon, 23 Apr 2007 17:15:11 +0200 ·
quoted from Bengt Olsson
On Mon, Apr 23, 2007 at 05:08:20PM +0200, Bengt Olsson wrote:
Do i have to use a externel script to check a logfile like 
/var/log/messages on hobbit server/client, just  like BB do?
No, the Hobbit client has log monitoring built-in.

First, add the logfile to the client-local.cfg file; /var/log/messages
is in there by default for most types of systems, so you can probably
skip that step.

Then you only need to setup the log monitoring in the hobbit-clients.cfg
file to specify what you want to look for in the log data. See the
hobbit-clients.cfg(5) man-page - the "msgs status column settings"
section.


Henrik
list Bengt Olsson · Thu, 26 Apr 2007 15:41:32 +0200 ·
Hello again

I think a missed something crucial here.....

I can't find the client-local.cfg file on the hobbit client, but the 
localclient.cfg file "talk" about the client-local.cfg file regaring the 
log config.

Shall I just create the client-local.cfg file and put the config there?

I tried to but the log config in the localclient.cfg file but it was 
obviously wrong.

We run hobbit-client-4.2.0-1 version,  installed from rpm package.

On the sevrer we run Hobbit 4.1.2p1.

/Bengt
quoted from Henrik Størner


Henrik Stoerner wrote:
On Mon, Apr 23, 2007 at 05:08:20PM +0200, Bengt Olsson wrote:
  
Do i have to use a externel script to check a logfile like 
/var/log/messages on hobbit server/client, just  like BB do?
    
No, the Hobbit client has log monitoring built-in.

First, add the logfile to the client-local.cfg file; /var/log/messages
is in there by default for most types of systems, so you can probably
skip that step.

Then you only need to setup the log monitoring in the hobbit-clients.cfg
file to specify what you want to look for in the log data. See the
hobbit-clients.cfg(5) man-page - the "msgs status column settings"
section.


Henrik

list Henrik Størner · Thu, 26 Apr 2007 16:45:16 +0200 ·
quoted from Bengt Olsson
On Thu, Apr 26, 2007 at 03:41:32PM +0200, Bengt Olsson wrote:
Hello again

I think a missed something crucial here.....

I can't find the client-local.cfg file on the hobbit client, but the 
localclient.cfg file "talk" about the client-local.cfg file regaring the 
log config.
The client-local.cfg file is on the Hobbit server. you should remember
that once the Hobbit client is installed, you should *never* have to
do anything on the client box. All configuration is done on the Hobbit
server.
quoted from Bengt Olsson
We run hobbit-client-4.2.0-1 version,  installed from rpm package.

On the sevrer we run Hobbit 4.1.2p1.
Oops - you must be running 4.2.0 on the server as well, for logfile
monitoring to work.


Regards,
Henrik