Arno Wijnhoven
2018-11-30 10:17:33 UTC
Dear list,
Our switches are monitored by Check_MK (1.4.0p36 Raw). I was wondering if it's possible to use different error thresholds for different ->attached<- devices.
Example: I want to allow for more errors on a switch port that has an UPS connected and less for a port with an ESXi host connected.
Unfortunately, Check_MK doesn't know what kind of device is connected. I query this extra info in my notification script, so this is AFTER a rule is hit.
I could put some threshold logic in my output script (hard coded), but this is something I'd rather not do.
I prefer to have a rule at 'Network interfaces and switch ports' so I have all settings in one place (else I'd be the only one able to adjust the thresholds).
A thought:
Is it possible to query Check_MK for rules and settings?
This way I could create a rule that won't be hit, but it would only hold the threshold setting. Then I could get that info from my notification script and make a decision based on that info.
Not an elegant solution, but at least all threshold settings would be in one place.
Any (other) thoughts are very welcome.
Met vriendelijke groeten / Kind regards / Mit freundlichen Grüßen,
Arno Wijnhoven
Our switches are monitored by Check_MK (1.4.0p36 Raw). I was wondering if it's possible to use different error thresholds for different ->attached<- devices.
Example: I want to allow for more errors on a switch port that has an UPS connected and less for a port with an ESXi host connected.
Unfortunately, Check_MK doesn't know what kind of device is connected. I query this extra info in my notification script, so this is AFTER a rule is hit.
I could put some threshold logic in my output script (hard coded), but this is something I'd rather not do.
I prefer to have a rule at 'Network interfaces and switch ports' so I have all settings in one place (else I'd be the only one able to adjust the thresholds).
A thought:
Is it possible to query Check_MK for rules and settings?
This way I could create a rule that won't be hit, but it would only hold the threshold setting. Then I could get that info from my notification script and make a decision based on that info.
Not an elegant solution, but at least all threshold settings would be in one place.
Any (other) thoughts are very welcome.
Met vriendelijke groeten / Kind regards / Mit freundlichen Grüßen,
Arno Wijnhoven