Xymon Mailing List Archive search

how to trigger in column "msgs" ???

6 messages in this thread

list Cayo de Moraes · Tue, 23 Jun 2009 08:06:27 +0200 ·
Hi guys,

im trying to do an easy thing but its not working. I've been looking in the
client-local.cfg manual but it doesnt helped a lot.

What i want to do is:
-monitor a logfile (like as usual by the column msgs) which is usualy empty.
-trigger the status as soon as the logfile get a line --> then it should
become red!!!

What i tried to do:
-put some lines like: "trigger allert", "* COLOR=red" etc... in the
client-local.cfg --> didnt work

ps: I'm trying to do this in the Hobbit-Server... should i change the config
in the client also?

does somebody know how i can configure this?

thanks,
Cayo
list Stef Coene · Tue, 23 Jun 2009 09:18:15 +0200 ·
quoted from Cayo de Moraes
On Tuesday 23 June 2009, Cayo de Moraes wrote:
Hi guys,

im trying to do an easy thing but its not working. I've been looking in the
client-local.cfg manual but it doesnt helped a lot.

What i want to do is:
-monitor a logfile (like as usual by the column msgs) which is usualy
empty. -trigger the status as soon as the logfile get a line --> then it
should become red!!!

What i tried to do:
-put some lines like: "trigger allert", "* COLOR=red" etc... in the
client-local.cfg --> didnt work

ps: I'm trying to do this in the Hobbit-Server... should i change the
config in the client also?

does somebody know how i can configure this?
Yes.
First make sure the client is sending the content of the file so you have something under the files check.  This can be configured in client-local.cfg (see the manpage for the correct syntax).  You can also check the tmp directory on the client.  There should be some files with the relevant lines from client-local.cfg.  It will also take some time (10 minutes) before the client picks up the changed config and start sending lines.

Next step is in hobbit-clients.cfg where you can configure what will be triggering a red or yellow error.

So, first make sure the client is sending lines from the logfile and then confgure what will trigger red/yellow.


Stef
list Cayo de Moraes · Tue, 23 Jun 2009 09:33:43 +0200 ·
Thank you for the fast answer Stef!

im geting the lines from my logfile and i can see them in hobbit. So far its
working. But somehow they can not be triggered.

now the only thing that i want to do is:
msgs column should get red, when this logfile get a line (the content doesnt
matter). Thats why i think that the trigger would not be a really good idea,
because i would have to trigger a status for every type of entries in this
log.

i also tried to write something in this logfile and then trigger some words
(to become red) but it didnt work...

TIA

2009/6/23 Stef Coene <user-dbffe946c0f4@xymon.invalid>
quoted from Cayo de Moraes
On Tuesday 23 June 2009, Cayo de Moraes wrote:
Hi guys,

im trying to do an easy thing but its not working. I've been looking in
the
client-local.cfg manual but it doesnt helped a lot.

What i want to do is:
-monitor a logfile (like as usual by the column msgs) which is usualy
empty. -trigger the status as soon as the logfile get a line --> then it
should become red!!!

What i tried to do:
-put some lines like: "trigger allert", "* COLOR=red" etc... in the
client-local.cfg --> didnt work

ps: I'm trying to do this in the Hobbit-Server... should i change the
config in the client also?

does somebody know how i can configure this?
Yes.
First make sure the client is sending the content of the file so you have
something under the files check.  This can be configured in
client-local.cfg
(see the manpage for the correct syntax).  You can also check the tmp
directory on the client.  There should be some files with the relevant
lines
from client-local.cfg.  It will also take some time (10 minutes) before the
client picks up the changed config and start sending lines.

Next step is in hobbit-clients.cfg where you can configure what will be
triggering a red or yellow error.

So, first make sure the client is sending lines from the logfile and then
confgure what will trigger red/yellow.


Stef

list Stef Coene · Tue, 23 Jun 2009 10:23:15 +0200 ·
quoted from Cayo de Moraes
On Tuesday 23 June 2009, Cayo de Moraes wrote:
Thank you for the fast answer Stef!

im geting the lines from my logfile and i can see them in hobbit. So far
its working. But somehow they can not be triggered.

now the only thing that i want to do is:
msgs column should get red, when this logfile get a line (the content
doesnt matter). Thats why i think that the trigger would not be a really
good idea, because i would have to trigger a status for every type of
entries in this log.

i also tried to write something in this logfile > and then trigger some
words (to become red) but it didnt work... 
This works fine for mu:
  LOG   %/home/rdbmsp/oracle/admin/TEST/bdump/alert_TEST.log %ORA-04031

I had to add a % so it is interpreted as a regexp.


Stef
list Buchan Milne · Tue, 23 Jun 2009 13:49:40 +0200 ·
quoted from Cayo de Moraes
On Tuesday 23 June 2009 08:06:27 Cayo de Moraes wrote:
Hi guys,

im trying to do an easy thing but its not working. I've been looking in the
client-local.cfg manual but it doesnt helped a lot.

What i want to do is:
-monitor a logfile (like as usual by the column msgs) which is usualy
empty. -trigger the status as soon as the logfile get a line --> then it
should become red!!!
Do you need to see the contents of the log file or not?

If you just want to alert on the file being non-empty, you may prefer to use a 
FILES check, alerting with 'size>0'.
quoted from Cayo de Moraes
What i tried to do:
-put some lines like: "trigger allert", "* COLOR=red" etc... in the
client-local.cfg --> didnt work
client-local.cfg should just list which log files should be checked on the 
client. The pattern to alert on should go in hobbit-clients.cfg. Please 
include the entire section from the relevant config files, otherwise it is 
difficult to assist (the snippets you provide wouldn't work on their own ...).
quoted from Cayo de Moraes
ps: I'm trying to do this in the Hobbit-Server... should i change the
config in the client also?
No. Please read the client-local.cfg man page.
list L.M.J · Thu, 25 Jun 2009 07:00:48 +0200 ·
Le Tue, 23 Jun 2009 09:33:43 +0200,
quoted from Cayo de Moraes
Cayo de Moraes <user-92aec3b3c467@xymon.invalid> a écrit :
Thank you for the fast answer Stef!

im geting the lines from my logfile and i can see them in hobbit. So far its
working. But somehow they can not be triggered.

now the only thing that i want to do is:
msgs column should get red, when this logfile get a line (the content doesnt
matter). Thats why i think that the trigger would not be a really good idea,
because i would have to trigger a status for every type of entries in this
log.

i also tried to write something in this logfile and then trigger some words
(to become red) but it didnt work...

TIA
Hello Cayo,

  I'm wondering if you have the behavior expected with Hobbit? I never been able to trigger alerts on
  Hobbit :-/ 

   thanks by advance,

     LMJ