icinga-powershell-plugins icon indicating copy to clipboard operation
icinga-powershell-plugins copied to clipboard

Invoke-IcingaCheckPartitionSpace - Performance Data InfluxDB

Open phil-or opened this issue 3 years ago • 3 comments

We are currently migrating the .exe Windows checks to the Powershell plugins. When checking the free space of a partition with CheckPartitionSpace, I use the notation you defined for the Critical/Warning arguments . Invoke-IcingaCheckPartitionSpace -Warning 8192MB: -Critical 2048MB: [OK] Free Partition Space: 1 Ok | 'free_space_partition_c'=9853657000B;8192000000:;2048000000:;0;32758560000 0

So far so good, but the critcal and warning performance data contains the : at the end. I think that's the reason why there are no crit/warn entries in the influxdb. Is it possible to remove the : from perf data?

phil-or avatar Dec 17 '21 10:12 phil-or

Hello,

I will need to check with my colleagues regarding InfluxDB. Previously, graphing solutions accepted these kinds of metrics, as it is important for them to determine which is the range the check is ok or warning/critical.

As other solutions can handle this, I wouldn't want to remove the metric writing but maybe there is a better approach to this,

LordHepipud avatar Dec 22 '21 10:12 LordHepipud

I discussed this topic internally and it seems to be an issue with Icinga 2 itself: https://github.com/Icinga/icinga2/issues/9038

The performance data we generate is correct, Icinga 2 is however unable to properly proceed with the ranges or Icinga plugin threshold configurations.

LordHepipud avatar Jan 24 '22 08:01 LordHepipud

ref/NC/761567

tbauriedel avatar Sep 09 '22 09:09 tbauriedel