icinga-powershell-plugins
icinga-powershell-plugins copied to clipboard
Invoke-IcingaCheckPartitionSpace - Performance Data InfluxDB
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?
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,
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.
ref/NC/761567