I tried to download an asset from Bonsai and create a check from it but the check does not appear to be executed, either on interval or when I ad hoc execute.
I have sensu-backend running on RHEL8 and sensu-agent running on Windows Server 2019.
The agent subscribes to a subscription that I made up called ‘win_system’. The check also has this subscription called out correctly.
Asset from Bonsai: sensu/sensu-windows-powershell-checks
Link to Asset on Bonsai: https://bonsai.sensu.io/assets/sensu/sensu-windows-powershell-checks
Here is the command I run to create the check which is successful. Note: I have tried tweaking the command to use ‘-Warning 75 -Critical 90’ but this did not work either
sensuctl check create check-win-cpu
–command ‘check-windows-cpu-load.ps1 75 90’
I see the check if I run ‘sensuctl check list’. I am wondering if I am missing something fundamental to make this work. I did walk through the sensu doc on creating your first monitoring check for cpu on Linux and that works fine. But can’t get this working on the Win box.
Any help is appreciated. Thanks.