Xymon Mailing List Archive search

Feature suggestion?

3 messages in this thread

list Gee Pee · Fri, 20 May 2005 09:29:44 +0200 ·
Hi all,

I've heard from a Nagios(?)-feature that I would like to see in (a future) Hobbit release very much, alerting based on dependies. Let me explain why:

Suppose two red conditions:

1-a disk failure (hardware error) -> support rep A is warned

2-an application failure on that particular disk -> support rep B is warned

but...

It's no use alerting support rep B while that disk is still unavailable. You would like to be warned after the disk has recovered or replaced. Than error 1 will be green again, but it is possible that test 2 still has errors. So I would like to set up a sort of dependancy between test 2 and 1. Alert me for the application, but the disk must be useable (status green).

Will this be possible some day?

Peter Welter
list Daniel J McDonald · Fri, 20 May 2005 07:52:02 -0500 ·
quoted from Gee Pee
On Fri, 2005-05-20 at 09:29 +0200, Gee Pee wrote:
Hi all,

I've heard from a Nagios(?)-feature that I would like to see in (a 
future) Hobbit release very much, alerting based on dependies. 
[...]
Will this be possible some day?
man bb-hosts
[...]
   depends=(testA:host1/test1,host2/test2),(testB:host3/test3),[...]
   This tag allows you to define dependencies betweeen tests.   If
"testA" for the current host depends on "test1" for host "host1" and
test "test2" for "host2", this can be defined with
depends=(testA:host1/test1,host2/test2)

    When  deciding  the  color  to  report  for  testA,  if   either
host1/test1  failed  or  host2/test2 failed, if testA has failed also
then the color of testA will be "clear" instead of  red  or yellow.

    Since  all  tests  are  actually run before the dependencies are
evaluated, you can use any host/test in the dependency - regard-less  of
the  actual sequence that the hosts are listed, or the tests run. It is
also valid to use tests from the same host that the dependency is for.
E.g.

      1.2.3.4  foo # http://foo/ webmin depends=(webmin:foo/http)

is  valid; if both the http and the webmin tests fail, then webmin will
be reported as clear.

    Note: The "depends" tag is evaluated on the BBNET  server  while
running  the network tests. It can therefore only refer to other network
tests that are handled by the same BBNET server -  there is  currently
no  way to use the e.g. the status of locally run tests (disk, cpu,
msgs)  or  network  tests  from  other  BBNET servers  in  a  dependency
definition.  Such  dependencies  are silently ignored.


-- 
Daniel J McDonald, CCIE # 2495, CNX
Austin Energy

user-290ce4e24e19@xymon.invalid
list P.H. Welter · Fri, 20 May 2005 20:12:35 +0200 ·
Many thanks! Sorry I had not read the man pages completely.

Peter

Op 20-mei-05 om 14:52 heeft Daniel J McDonald het volgende geschreven:
quoted from Gee Pee
On Fri, 2005-05-20 at 09:29 +0200, Gee Pee wrote:
Hi all,

I've heard from a Nagios(?)-feature that I would like to see in (a
future) Hobbit release very much, alerting based on dependies.
[...]
Will this be possible some day?
man bb-hosts
[...]
   depends=(testA:host1/test1,host2/test2),(testB:host3/test3),[...]
   This tag allows you to define dependencies betweeen tests.   If
"testA" for the current host depends on "test1" for host "host1" and
test "test2" for "host2", this can be defined with
depends=(testA:host1/test1,host2/test2)

    When  deciding  the  color  to  report  for  testA,  if   either
host1/test1  failed  or  host2/test2 failed, if testA has failed also
then the color of testA will be "clear" instead of  red  or yellow.

    Since  all  tests  are  actually run before the dependencies are
evaluated, you can use any host/test in the dependency - regard-less  
of
the  actual sequence that the hosts are listed, or the tests run. It is
also valid to use tests from the same host that the dependency is for.
E.g.

      1.2.3.4  foo # http://foo/ webmin depends=(webmin:foo/http)

is  valid; if both the http and the webmin tests fail, then webmin will
be reported as clear.

    Note: The "depends" tag is evaluated on the BBNET  server  while
running  the network tests. It can therefore only refer to other 
network
tests that are handled by the same BBNET server -  there is  currently
no  way to use the e.g. the status of locally run tests (disk, cpu,
msgs)  or  network  tests  from  other  BBNET servers  in  a  
dependency
definition.  Such  dependencies  are silently ignored.


-- 
Daniel J McDonald, CCIE # 2495, CNX
Austin Energy

user-290ce4e24e19@xymon.invalid