Patrick Kaiser
2018-09-26 06:27:54 UTC
Hi,
Iâve created a plugin for monitoring dynamically every RabbitMQ queue in our environment.
The plugin on the client side works fine and provides the output.
On the monitoring server Iâve created the extension to handle this agent output data, which is also working fine.
At least Iâve also created a register_check_parameters definition to be able to use a rule to overwrite the default_values.
It is in the file: /opt/omd/site/knt/local/share/check_mk/web/plugins/wato/rabbit_mq_check_parameters.py:
register_check_parameters(
subgroup_inventory,
"rabbit_mq",
_("RabbitMQ Queue Monitoring"),
Dictionary(
elements = [
("warn_messages",
Integer(
title = _("Warning if above"),
default_value = 5,
),
),
("crit_messages",
Integer(
title = _("Critical if above"),
default_value = 10,
),
),
],
),
None,
'dict',
)
Now I have the problem, when I want to create a rule inside WATO I am not able to limit to specific services, only to specific hosts
(See the âExplicit hostsâ option)
Mit freundlichen GrÃŒÃen
Patrick Kaiser
Senior System Administrator
CHECK24 Vergleichsportal Karten & Konten GmbH
Erika-Mann-Str. 62-66 | 80636 MÃŒnchen
Tel. 089 2000 47 5411 | Fax 089 2000 47 1011
***@check24.de | www.check24.de
GeschÀftsfÌhrer: Rainer Gerhard | Amtsgericht MÌnchen HRB 231529 | UST Ident Nr.: DE 310 935 564
Versicherungen | Konto & Kredit | Strom & Gas | DSL & Handy | Reise & Flug | Hotel | Mietwagen | Shopping
Iâve created a plugin for monitoring dynamically every RabbitMQ queue in our environment.
The plugin on the client side works fine and provides the output.
On the monitoring server Iâve created the extension to handle this agent output data, which is also working fine.
At least Iâve also created a register_check_parameters definition to be able to use a rule to overwrite the default_values.
It is in the file: /opt/omd/site/knt/local/share/check_mk/web/plugins/wato/rabbit_mq_check_parameters.py:
register_check_parameters(
subgroup_inventory,
"rabbit_mq",
_("RabbitMQ Queue Monitoring"),
Dictionary(
elements = [
("warn_messages",
Integer(
title = _("Warning if above"),
default_value = 5,
),
),
("crit_messages",
Integer(
title = _("Critical if above"),
default_value = 10,
),
),
],
),
None,
'dict',
)
Now I have the problem, when I want to create a rule inside WATO I am not able to limit to specific services, only to specific hosts
(See the âExplicit hostsâ option)
Mit freundlichen GrÃŒÃen
Patrick Kaiser
Senior System Administrator
CHECK24 Vergleichsportal Karten & Konten GmbH
Erika-Mann-Str. 62-66 | 80636 MÃŒnchen
Tel. 089 2000 47 5411 | Fax 089 2000 47 1011
***@check24.de | www.check24.de
GeschÀftsfÌhrer: Rainer Gerhard | Amtsgericht MÌnchen HRB 231529 | UST Ident Nr.: DE 310 935 564
Versicherungen | Konto & Kredit | Strom & Gas | DSL & Handy | Reise & Flug | Hotel | Mietwagen | Shopping