I’m studying docs for writing own plugins with graphs. For testing, After all, I copy/pasted the example check plugin and agent plugin from github page. To prevent typos.
But, I had to add levels=(hosts_up_lower) into yield Metric command. That is missing in documentation. But since I didn’t used check_levels functions, state determination is not working now.
If I use check_levels function according documentation
@Sara Can we move thread back to the Troubleshooting section? I think it’s not a problem with Checkmk documentation and particular example from docu as I stated before, but general with function check_levels itself. I will change Topic name so more people will have look (hopefuly) if it won’t be specified as problem with just docu.
No matter what I try, when using levels_lower Warning/Critical is just not drawn.
I think this is by design, with check_levels the warn/crit for the graph system comes from the upper_levels. And as there is no field for a second pair of warn/crit in the metrics definition you can not have both. see: Metrics in the Docs.
metricname=value;warn;crit;min;max
here a sample from one of my FW checks with upper and lower levels
as you can see the warn/crit is shown.
Here the rule for the levels
and a final look at the raw perfdata, there you also see the upper levels are used
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.