Hello,
i’ve setup an icinga installation and adding windows systems to it. One of the windows sserver 2016 system have a false output of the “Invoke-IcingaCheckPartitionSpace” ifw plugin.
Free Partition Space: 1 Critical 3 Ok Partition E: (99.95% (499.70GiB))
_ Partition E: 99.95% (499.70GiB) is greater than threshold 95% (474.95GiB)
That does not make sense. The threshold were defined for 95 % critical and 80 % warning.
Hope someone can help.
Edit: I add more systems to icinga2 and the error appears on multiple systems. Till know there is no things thats are equal above the systems.
I think there is a command line parameter which works as a switch to decide which way this works.
Or you could just use Invoke-IcingaCheckUsedPartition
But shold this issue not be on all systems if the check is configuried wrong? I have about 40 windows vm in my icinga instance and just about 5 have this issue.
hm, could you add the exectued Command here, so I can see what is actually happening?
If you are using IcingaDB you find that in the “Source” tab of the service.
In my case all IfW checks work but do not have any thresholds - so the CPU check does not alarm, when the the load is high - which is bad.
This happened after I switched to the API forwarder (with the legacy way the thresholds are working fine, but the load goes up when the checks are executed).
While reading your post I am wondering about one thing:
Your curl command shows some parameters at the very end - but my curl does not show that:
Sorry @teqqy, I didn’t follow up for some reason. I would recommend to try Invoke-IcingaCheckUsedPartitionSpace which (as the name suggests) should evaluate the used volume instead of the free one.
@vpdose It is hard to tell why, but the parameters are obviously not encoded in this command.
Could describe here how the command is configured in your system? So, Director or Icinga DSL, where did you get the CheckCommand from (IfW export or manual) and how your Service definition looks like.
I am using Icinga Director to render the Icinga config. The Invoke-* commands were imported as basket (and exported in IfW via Get-IcingaCheckCommandConfig -OutDirectory 'C:\Users\myuser\Documents').
The service check for the CPU load without ifw-api looks like this:
‘C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe’ ‘-NoProfile’ ‘-NoLogo’ ‘-C’ ‘try { Use-Icinga -Minimal; } catch { Write-Output ‘'‘The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check Introduction - Icinga for Windows for further details’'’; Write-Output ‘'‘Error:’'’ $($_.Exception.Message)Components:rn$( Get-Module -ListAvailable ‘'‘icinga-powershell-*’'’ )rn’'‘Module-Path:’''rn$($Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command ‘'‘Invoke-IcingaCheckCPU’'’ ’ ‘-Warning’ ‘70’ ‘-Critical’ ‘85’ ‘-Core’ ‘_Total’ ‘-Verbosity’ ‘1’
At the end one finds the parameters I am using.
When I import the ifw-api template to Powershell-Base I am missing the thresholds and parameters - see above.
It is the same picture with the Invoke-IcingaCheckUsedPartitionSpace - with ifw-api the command is like this