Xymon Mailing List Archive search

how/where to set/check thresholds for custom test

4 messages in this thread

list Jerry Yu · Fri, 25 Aug 2006 16:40:27 -0400 ·
I am successful following the 'slab' example to get it show up in RRD
graph as well as reported under 'slab' column. However, I am albeit at
loss on how to set up thresholds just like those in the built-in
tests. I used to write BB extension scripts, which calculate status
based on hard-coded thresholds set locally on the client and report
status to BBSERVER accordingly using $BB "status" command.

In an ideal world, I'd, of course prefer, the extension script working
the same way as the built-in tests, in that a custom data section came
in from client, while the server sets the threshold centrally to
trigger alerts (plus plot them into a RRD graph). Is this possible
with Hobbit? Short of which, is there a better Hobbit approach other
than the BB extension approach I described above?
list Henrik Størner · Fri, 25 Aug 2006 23:17:58 +0200 ·
quoted from Jerry Yu
On Fri, Aug 25, 2006 at 04:40:27PM -0400, Jerry Yu wrote:
I am successful following the 'slab' example to get it show up in RRD
graph as well as reported under 'slab' column. However, I am albeit at
loss on how to set up thresholds just like those in the built-in
tests. I used to write BB extension scripts, which calculate status
based on hard-coded thresholds set locally on the client and report
status to BBSERVER accordingly using $BB "status" command.

In an ideal world, I'd, of course prefer, the extension script working
the same way as the built-in tests, in that a custom data section came
in from client, while the server sets the threshold centrally to
trigger alerts (plus plot them into a RRD graph). Is this possible
with Hobbit?
Alas, no. You are welcome to grab a custom configuration file from
the Hobbit server with the bb "config" command, or by picking lines out
of the client-local.cfg file (which ends up in the clients'
~hobbit/client/tmp/logfetch.HOSTNAME.cfg file). But the
hobbit-clients.cfg file on the server doesnt support add-on clients
having their private threshold data stored there.
quoted from Jerry Yu
Short of which, is there a better Hobbit approach other
than the BB extension approach I described above?
No.


Regards,
Henrik
list Jerry Yu · Fri, 25 Aug 2006 18:49:14 -0400 ·
thx, Henrik.  would it be a nice feature [extension working like native
built-in test ]  to have?  How easy does the current flow lend itself to
such a 'native-look-like' extension?
quoted from Henrik Størner

On 8/25/06, Henrik Stoerner <user-ce4a2c883f75@xymon.invalid> wrote:
On Fri, Aug 25, 2006 at 04:40:27PM -0400, Jerry Yu wrote:
I am successful following the 'slab' example to get it show up in RRD
graph as well as reported under 'slab' column. However, I am albeit at
loss on how to set up thresholds just like those in the built-in
tests. I used to write BB extension scripts, which calculate status
based on hard-coded thresholds set locally on the client and report
status to BBSERVER accordingly using $BB "status" command.

In an ideal world, I'd, of course prefer, the extension script working
the same way as the built-in tests, in that a custom data section came
in from client, while the server sets the threshold centrally to
trigger alerts (plus plot them into a RRD graph). Is this possible
with Hobbit?
Alas, no. You are welcome to grab a custom configuration file from
the Hobbit server with the bb "config" command, or by picking lines out
of the client-local.cfg file (which ends up in the clients'
~hobbit/client/tmp/logfetch.HOSTNAME.cfg file). But the
hobbit-clients.cfg file on the server doesnt support add-on clients
having their private threshold data stored there.
Short of which, is there a better Hobbit approach other
than the BB extension approach I described above?
No.


Regards,
Henrik

list Buchan Milne · Mon, 28 Aug 2006 11:55:31 +0200 ·
quoted from Jerry Yu
On Friday 25 August 2006 23:17, Henrik Stoerner wrote:
Alas, no. You are welcome to grab a custom configuration file from
the Hobbit server with the bb "config" command, or by picking lines out
of the client-local.cfg file (which ends up in the clients'
~hobbit/client/tmp/logfetch.HOSTNAME.cfg file). But the
hobbit-clients.cfg file on the server doesnt support add-on clients
having their private threshold data stored there.

I would really be nice if a feature like this could be added ...

Regards,
Buchan


-- 
Buchan Milne
ISP Systems Specialist
B.Eng,RHCE(803004789010797),LPIC-2(LPI000074592)