[Check_mk (english)] Using WATO for check parameters

Marcel Schulte schulte.marcel at gmail.com
Tue Jul 5 22:52:01 CEST 2016

Hi Max,

Could we get the check and custom_check_parameters file attached? Most
likely the issue's in the code...


Caines, Max <Max.Caines at wlv.ac.uk> schrieb am Di., 5. Juli 2016 15:40:

> Hi
> I thought I understood this, but it’s clear I don’t, and maybe someone
> else can explain. I’m using RAW 1.2.6p10. I’ve written an SNMP check for a
> Swiftbase climate monitor, which works fine, but now I’m trying to add code
> to configure the check parameters via WATO. I’ve followed Craig Cook’s
> example at https://github.com/cncook001/check_mk/tree/master/redis, and
> created a custom_check_parameters.py in the appropriate directory under
> /local, which registers a Dictionary containing the check parameters. An
> extra item has appeared in the right subgroup in the “Host and Service
> Parameters” page of the GUI, with the right prompts. I’ve created an
> all-hosts rule, which has appeared in etc/check_mk/conf.d/wato/rules.mk.
> If I look at the Parameters screen for the service on a host running it, it
> says the parameters are coming from “Rule 1 in Main directory”, but the
> values it lists are the ones specified by the “default_levels_variable”
> variable in the check script, which is a “factory_settings” variable. But
> if I click “Rule 1 in Main directory”, it displays the rule with the
> correct values. The values the script is actually using are the ones from
> the “factory_settings” variable, because it lists them as part of the
> output from the check. So although the rule values are in rules.mk, the
> check isn’t picking them up. I’ve also looked at the generated check script
> for the host in var/check_mk/precompiled, and it contains the
> “factory_settings” values too, rather than the ones in the rule.
> Does anyone have any idea what I’ve got wrong? Would any more information
> be useful, and if so what?
> Thanks
> Max
> *Max Caines | Network Design Consultant | IT Services | **Directorate of
> Academic Support | **University of Wolverhampton | 01902 322245 | 07976
> 841874*
> *For contact details and general information on IT Services please visit *
> *http://www.wlv.ac.uk/its* <http://www.wlv.ac.uk/its>* This email,
> together with any attachment, is for the exclusive and confidential use of
> the addressee(s) and may contain legally privileged information. If you
> receive this email in error, please visit *
> *http://www.wlv.ac.uk/ITS-disclaimer*
> <http://www.wlv.ac.uk/ITS-disclaimer>* . Please consider the environment
> before printing this e-mail.*
> _______________________________________________
> checkmk-en mailing list
> checkmk-en at lists.mathias-kettner.de
> http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mathias-kettner.de/pipermail/checkmk-en/attachments/20160705/3a993c92/attachment.html>

More information about the checkmk-en mailing list