We use cookies to ensure that we give you the best experience on our website.  Visit our Privacy Policy to learn more. If you continue to use this site, we will assume that you are okay with it.

Your choices regarding cookies on this site.
Your preferences have been updated.
In order for the changes to take effect completely please clear your browser cookies and cache. Then reload the page.

Checkmk 1.6 has arrived! Learn more about it here!

Werk #0017: local: New state type P for state computation based on perfdata

ComponentChecks & Agents
Titlelocal: New state type P for state computation based on perfdata
Date2013-12-04 14:52:35
Checkmk EditionCheckmk Raw Edition (CRE)
Checkmk Version1.2.3i7
LevelTrivial Change
ClassNew Feature
CompatibilityCompatible - no manual interaction needed

The section <<<local>>> now allows a new state marker P (next to 0, 1, 2 and 3). When setting this marker, the check plugin computes the state according to the levels contained in the performance data. Take the following example:

<<<local>>>
P Environment temp=30;28;35|humidity=33;40:60;35:70;0;100 This is a text

The check will first check the variable temp. It's current value is 30. The levels are at 28 and 35 for warning and critical, resp. Because 30 is greater then 28 this will trigger a warning.

The second performance value humidity has both lower and upper levels for warning and critical - separated by a colon. The current value is 33, which is lower than the lower critical level of 35. This will make this variable und thus the total check critical.

Notes

  • It is allowed to use fractional values like 35.12.
  • If the current value exactly matches a level, the better state is being used. This is not consistent with the usual levels in Check_MK checks, but is neccessary if you want to have just one single value to be OK.
  • When using P then the current values of all variables are appended to the plugin output. If you want you can omit the your additional text at all in that case.
  • When you use P and do not supply performance data or do not supply levels, the status will always be OK.

Example for a local line without a text:

<<<local>>>
P Environment temp=30;28;35|humidity=33;40:60;35:70;0;100

The output will be:

CRIT - temp 30.0 > 28.0(!), humidity 33.0 < 35.0(!!)