[hobbit] host-specific settings
You need to put the server specific entry(ies) BEFORE the default settings.
From: Johan Booysen [mailto:johan at matrix-data.co.uk] Sent: 08 August 2008 11:34 To: hobbit at hswn.dk Subject: [hobbit] host-specific settings
I'm new to hobbit monitor, and trying to set up host-specific settings in hobbit-clients.cfg on the hobbit server. At the moment I want to do a simple test, so that default settings apply to all clients except for server1 for which I want to use other disk space parameters:
In hobbit-clients.cfg I have:
DEFAULT
# These are the built-in defaults.
UP 1h
LOAD 5.0 10.0
DISK * 90 95
MEMPHYS 100 101
MEMSWAP 50 80
MEMACT 90 97
HOST=server1
DISK * 95 99
However, server1 still applies the default settings for DISK. I've reloaded the hobbit service so it rereads its config files, but after about 30 minutes the changes still don't seem to have taken effect.
I've followed the instructions on the hobbit-config.html help page, but think I may be missing something.
Any advice on this?
Thanks.
This e-mail including any attachments is provided for general information purposes only and does not constitute advice except to the addressee if expressly stated in this email. For the avoidance of doubt the contents of this email and any attachments are subject to contract and are not intended to and will not constitute a legally binding contract or any part of a legally binding contract.
The information contained in this email and any attachments is confidential. It is intended only for the use of the intended recipient at the email address to which it has been addressed. If the reader of this message is not an intended recipient, you are hereby notified that you have received this document in error and that any review, dissemination, distribution or copying of the message or associated attachments is strictly prohibited.
If you have received this e-mail in error, please notify postmaster at RWEsystemsUK.com and permanently delete the email and any attachments immediately from your system. You should not retain, copy or use this email or any attachment for any purpose, nor disclose all or any part of the contents to any other person. Thank you for your co-operation.
Neither RWE IT UK Ltd nor any of the other companies in the RWE Group from whom this e-mail originates accept any responsibility for losses or damage as a result of any viruses and it is your responsibility to check attachments (if any) for viruses.
RWE IT UK Ltd Registered office: Mistral, Westlea Campus, Chelmsford Road, Swindon, Wiltshire, SN5 7EZ. Registered in England and Wales: company number 6052966.
Thanks for the replies. Next time I'll read through the WHOLE man page before asking a question!
J
From: Morris, Chris (SS-IS) [mailto:Chris.Morris at RWEsystemsUK.com] Sent: 08 August 2008 11:47 To: hobbit at hswn.dk Subject: RE: [hobbit] host-specific settings
You need to put the server specific entry(ies) BEFORE the default settings.
From: Johan Booysen [mailto:johan at matrix-data.co.uk] Sent: 08 August 2008 11:34 To: hobbit at hswn.dk Subject: [hobbit] host-specific settings
I'm new to hobbit monitor, and trying to set up host-specific settings in hobbit-clients.cfg on the hobbit server. At the moment I want to do a simple test, so that default settings apply to all clients except for server1 for which I want to use other disk space parameters:
In hobbit-clients.cfg I have:
DEFAULT
# These are the built-in defaults.
UP 1h
LOAD 5.0 10.0
DISK * 90 95
MEMPHYS 100 101
MEMSWAP 50 80
MEMACT 90 97
HOST=server1
DISK * 95 99
However, server1 still applies the default settings for DISK. I've reloaded the hobbit service so it rereads its config files, but after about 30 minutes the changes still don't seem to have taken effect.
I've followed the instructions on the hobbit-config.html help page, but think I may be missing something.
Any advice on this?
Thanks.
This e-mail including any attachments is provided for general information purposes only and does not constitute advice except to the addressee if expressly stated in this email. For the avoidance of doubt the contents of this email and any attachments are subject to contract and are not intended to and will not constitute a legally binding contract or any part of a legally binding contract.
The information contained in this email and any attachments is confidential. It is intended only for the use of the intended recipient at the email address to which it has been addressed. If the reader of this message is not an intended recipient, you are hereby notified that you have received this document in error and that any review, dissemination, distribution or copying of the message or associated attachments is strictly prohibited.
If you have received this e-mail in error, please notify postmaster at RWEsystemsUK.com and permanently delete the email and any attachments immediately from your system. You should not retain, copy or use this email or any attachment for any purpose, nor disclose all or any part of the contents to any other person. Thank you for your co-operation.
Neither RWE IT UK Ltd nor any of the other companies in the RWE Group from whom this e-mail originates accept any responsibility for losses or damage as a result of any viruses and it is your responsibility to check attachments (if any) for viruses.
RWE IT UK Ltd Registered office: Mistral, Westlea Campus, Chelmsford Road, Swindon, Wiltshire, SN5 7EZ. Registered in England and Wales: company number 6052966.
I'm trying to get hobbit to monitor /var/log/messages for specific entries ("somestring" in my example below) on server1.
In hobbit-clients.cfg I've added (above DEFAULT):
HOST=server1
LOG /var/log/messages somestring COLOR=red
And in client-local.cfg, I've added:
server1
log:/var/log/messages:10240
ignore MARK
My understanding is that server1 should now collect data from /var/log/messages, and the hobbit server will then, if it finds "somestring" in the log file, flag it as red in the msgs column.
I can now see the entire log for server1 on the web interface, but the msgs icon doesn't change to red.
What am I missing?
Also, does any of the defaults in client-local.cfg match RHEL5 machines, e.g.
[redhat]
log:/var/log/messages:10240
ignore MARK
or
[redhatES]
log:/var/log/messages:10240
ignore MARK
Thanks.
somestring has to be a regular expression (which i know nothing about), but %Relay works for me.
Regards Lars ----- Original Message ----- From: Johan Booysen To: hobbit at hswn.dk Sent: Friday, August 08, 2008 4:28 PM Subject: [hobbit] monitoring logs
I'm trying to get hobbit to monitor /var/log/messages for specific entries ("somestring" in my example below) on server1.
In hobbit-clients.cfg I've added (above DEFAULT):
HOST=server1
LOG /var/log/messages somestring COLOR=red
And in client-local.cfg, I've added:
server1
log:/var/log/messages:10240
ignore MARK
My understanding is that server1 should now collect data from /var/log/messages, and the hobbit server will then, if it finds "somestring" in the log file, flag it as red in the msgs column.
I can now see the entire log for server1 on the web interface, but the msgs icon doesn't change to red.
What am I missing?
Also, does any of the defaults in client-local.cfg match RHEL5 machines, e.g.
[redhat]
log:/var/log/messages:10240
ignore MARK
or
[redhatES]
log:/var/log/messages:10240
ignore MARK
Thanks.
Are you sure (not that I'm in a position to question anyone else's knowledge about hobbit..)?
hobbit-clients.cfg says:
Example: Go yellow if the text "WARNING" shows up in any logfile.
LOG %.* WARNING COLOR=yellow
So I thought it could be a simple text string...
From: Lars Ebeling [mailto:lars.ebeling at leopg9.no-ip.org] Sent: 08 August 2008 15:37 To: hobbit at hswn.dk Subject: Re: [hobbit] monitoring logs
somestring has to be a regular expression (which i know nothing about), but %Relay works for me.
Regards
Lars
----- Original Message -----
From: Johan Booysen <mailto:johan at matrix-data.co.uk>
To: hobbit at hswn.dk
Sent: Friday, August 08, 2008 4:28 PM
Subject: [hobbit] monitoring logs
I'm trying to get hobbit to monitor /var/log/messages for
specific entries ("somestring" in my example below) on server1.
In hobbit-clients.cfg I've added (above DEFAULT):
HOST=server1
LOG /var/log/messages somestring COLOR=red
And in client-local.cfg, I've added:
server1
log:/var/log/messages:10240
ignore MARK
My understanding is that server1 should now collect data from
/var/log/messages, and the hobbit server will then, if it finds "somestring" in the log file, flag it as red in the msgs column.
I can now see the entire log for server1 on the web interface,
but the msgs icon doesn't change to red.
What am I missing?
Also, does any of the defaults in client-local.cfg match RHEL5
machines, e.g.
[redhat]
log:/var/log/messages:10240
ignore MARK
or
[redhatES]
log:/var/log/messages:10240
ignore MARK
Thanks.
My apologies, Lars - you were right.
I changed it to LOG /var/log/messages %somestring COLOR=red, and it works.
Thanks!
From: Johan Booysen [mailto:johan at matrix-data.co.uk] Sent: 08 August 2008 15:51 To: hobbit at hswn.dk Subject: RE: [hobbit] monitoring logs
Are you sure (not that I'm in a position to question anyone else's knowledge about hobbit..)?
hobbit-clients.cfg says:
Example: Go yellow if the text "WARNING" shows up in any logfile.
LOG %.* WARNING COLOR=yellow
So I thought it could be a simple text string...
From: Lars Ebeling [mailto:lars.ebeling at leopg9.no-ip.org] Sent: 08 August 2008 15:37 To: hobbit at hswn.dk Subject: Re: [hobbit] monitoring logs
somestring has to be a regular expression (which i know nothing about), but %Relay works for me.
Regards
Lars
----- Original Message -----
From: Johan Booysen <mailto:johan at matrix-data.co.uk>
To: hobbit at hswn.dk
Sent: Friday, August 08, 2008 4:28 PM
Subject: [hobbit] monitoring logs
I'm trying to get hobbit to monitor /var/log/messages for
specific entries ("somestring" in my example below) on server1.
In hobbit-clients.cfg I've added (above DEFAULT):
HOST=server1
LOG /var/log/messages somestring COLOR=red
And in client-local.cfg, I've added:
server1
log:/var/log/messages:10240
ignore MARK
My understanding is that server1 should now collect data from
/var/log/messages, and the hobbit server will then, if it finds "somestring" in the log file, flag it as red in the msgs column.
I can now see the entire log for server1 on the web interface,
but the msgs icon doesn't change to red.
What am I missing?
Also, does any of the defaults in client-local.cfg match RHEL5
machines, e.g.
[redhat]
log:/var/log/messages:10240
ignore MARK
or
[redhatES]
log:/var/log/messages:10240
ignore MARK
Thanks.
participants (3)
-
Chris.Morris@RWEsystemsUK.com
-
johan@matrix-data.co.uk
-
lars.ebeling@leopg9.no-ip.org