BTW: saveint()
and savefloat()
are deprecated.
If you have a parse function you should cast the numbers there and also do the error handling. Or no error handling at all, then also no checks would be discovered.
And there is a helper function check_levels() that can replace all the if value > warn ... elif value > crit ...
code. This method is also available in the new checkmk 2.0 plugin API.