Icinga / icingaweb2-module-puppetdb

PuppetDB module for Icinga Web 2 (ImportSource for Icinga Director)
12 stars 6 forks source link

dynamically assign values to custom properties #12

Closed Vinclame closed 6 years ago

Vinclame commented 6 years ago

Hi, I’m using icingaweb2-module-puppetdb to import my nodes from puppetdb. Works very nice! Now I would like to use facts from puppetdb in icinga in order to adjust the thresholds for certain checks. For example, load check needs warnings and critical thresholds. For each client I know how many cpu’s are configured (processercount fact from puppet). I want to use this value and dynamically configure the several thresholds according to this value. I already have a data field for every threshold (load_cload1 etc). I use modifiers to map the fact to load_cload5) in icinga. Now I'm trying to use load_cload5 to configure load_wload5, load_cload1 etc. Is this possible?

Environment

Vinclame commented 6 years ago

I figured out this is possible through arguments and some DSL scripting.