Xymon Mailing List Archive search

monitoring rules

8 messages in this thread

list Stef Coene · Wed, 10 Jun 2009 15:29:08 +0200 ·
Hi,

I need to document the monitoring rules that are used by Xymon.  I can try to parse the hobbit-clients.cfg config file, but I need the information sorted by server.
So, is there a way to ask the xymon server 'hey, what monitoring rules do you use for serverX ?' ?


Stef
list Thomas R. Brand · Wed, 10 Jun 2009 17:08:55 -0400 ·
Hi,
  
  I need to check whether one, but not both of two processes is running.
If either process is running, I should get a green light. 
If both are running, or neither one is running, I need to yellow flag
it.

Is there some way to do this with a PROC rule in hobbit-client ?


Thanks,
Tom
list Buchan Milne · Thu, 11 Jun 2009 12:48:49 +0200 ·
quoted from Stef Coene
On Wednesday 10 June 2009 15:29:08 Stef Coene wrote:
Hi,

I need to document the monitoring rules that are used by Xymon.  I can try
to parse the hobbit-clients.cfg config file, but I need the information
sorted by server.
So, is there a way to ask the xymon server 'hey, what monitoring rules do
you use for serverX ?' ?
Besides the configuration report page, viewed from a host-specific page (e.g. 
after clicking on the 'info' icon)?
list Stef Coene · Thu, 11 Jun 2009 13:08:37 +0200 ·
quoted from Buchan Milne
On Thursday 11 June 2009, Buchan Milne wrote:
On Wednesday 10 June 2009 15:29:08 Stef Coene wrote:
Hi,

I need to document the monitoring rules that are used by Xymon.  I can
try to parse the hobbit-clients.cfg config file, but I need the
information sorted by server.
So, is there a way to ask the xymon server 'hey, what monitoring rules do
you use for serverX ?' ?
Besides the configuration report page, viewed from a host-specific page
(e.g. after clicking on the 'info' icon)?
The configuration report page is a start, but the information on that page is 
hard to parse.  Also, not all monitoring rules are included on that page.


Stef
list Kevin Kelly · Thu, 11 Jun 2009 06:49:29 -0500 ·
In the file hobbit-clients.cfg

You can have something like
HOST=server
	PROC cron 1 1

This would be a min of 1 and a max of 1.
quoted from Thomas R. Brand

-----Original Message-----
From: Brand, Thomas R. [mailto:user-10a840458972@xymon.invalid] 
Sent: Wednesday, June 10, 2009 4:09 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] Checking for mutually exclusive processes

Hi,
  
  I need to check whether one, but not both of two processes is running.
If either process is running, I should get a green light. 
If both are running, or neither one is running, I need to yellow flag
it.

Is there some way to do this with a PROC rule in hobbit-client ?


Thanks,
Tom


This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
list Thomas R. Brand · Thu, 11 Jun 2009 08:50:02 -0400 ·
Hi Kevin,

 Unfortunately, that isn't what I need.

Given ProcessA and ProcessB,
 If ProcessA is running AND ProcessB is running
 then YELLOW
 else      if ProcessA is NOT running AND ProcessB is NOT running
     then YELLOW
     else GREEN


 ProcessA and ProcessB are mutually exclusive; one OR the other must be running, but not BOTH.
quoted from Kevin Kelly

-----Original Message-----
From: Kevin Kelly [mailto:user-46671a9fcf56@xymon.invalid]
Sent: Thursday, June 11, 2009 7:49 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Checking for mutually exclusive processes

In the file hobbit-clients.cfg

You can have something like
HOST=server
	PROC cron 1 1

This would be a min of 1 and a max of 1.

-----Original Message-----
From: Brand, Thomas R. [mailto:user-10a840458972@xymon.invalid]
Sent: Wednesday, June 10, 2009 4:09 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] Checking for mutually exclusive processes

Hi,

  I need to check whether one, but not both of two processes is
running.
If either process is running, I should get a green light.
If both are running, or neither one is running, I need to yellow flag
it.

Is there some way to do this with a PROC rule in hobbit-client ?


Thanks,
Tom


This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email

list Daniel Hartmeier · Thu, 11 Jun 2009 15:01:32 +0200 ·
quoted from Thomas R. Brand
On Thu, Jun 11, 2009 at 08:50:02AM -0400, Brand, Thomas R. wrote:
Given ProcessA and ProcessB,
 If ProcessA is running AND ProcessB is running
 then YELLOW
 else 
     if ProcessA is NOT running AND ProcessB is NOT running
     then YELLOW
     else GREEN


 ProcessA and ProcessB are mutually exclusive; one OR the other must 
be running, but not BOTH.
PROC %(ProcessA|ProcessB) 1 1 yellow

Daniel
list Thomas R. Brand · Thu, 11 Jun 2009 11:49:33 -0400 ·
Beautiful....

Too simple!

Thanks!
quoted from Daniel Hartmeier
-----Original Message-----
From: Daniel Hartmeier [mailto:user-30a162321ef9@xymon.invalid]
Sent: Thursday, June 11, 2009 9:02 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Checking for mutually exclusive processes

On Thu, Jun 11, 2009 at 08:50:02AM -0400, Brand, Thomas R. wrote:
Given ProcessA and ProcessB,
 If ProcessA is running AND ProcessB is running
 then YELLOW
 else
     if ProcessA is NOT running AND ProcessB is NOT running
     then YELLOW
     else GREEN


 ProcessA and ProcessB are mutually exclusive; one OR the other must
be running, but not BOTH.
PROC %(ProcessA|ProcessB) 1 1 yellow

Daniel