Icinga / icinga2

The core of our monitoring platform with a powerful configuration language and REST API.
https://icinga.com/docs/icinga2/latest
GNU General Public License v2.0
2.03k stars 579 forks source link

windows-uptime plugin - perfdata non guideline conform output #6406

Closed Gammenon closed 6 years ago

Gammenon commented 6 years ago

Expected Behavior

the plugin perfdata output should be usable for graphing with e.g. graphite. In my case no graph is generated. With other plugins the behavior is like expected.

Current Behavior

If the -u parameter is used, in my case to set the unit to "hour", an 'h' is append to the perfdata current value. No graph is available.

"c:\Program Files\ICINGA2\sbin\check_uptime.exe" -c 840 -u h -w 768 UPTIME OK 352h | uptime=352h;768;840;0;

Possible Solution

I think the reason for this could be, that graphite isn't able to generate a graph because the 'h' can't be handled. According to the Monitoring Plugin Guidelines the 'h' is not one of the UOM (unit of measurement)

Steps to Reproduce (for bugs)

Use the plugin with the default command object an these parameters uptime_win_crit: "840", uptime_win_unit: "h", uptime_win_warn: "768"

Context

Your Environment

mcktr commented 6 years ago

Thanks for the report, indeed h isn't a valid UOM.