New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IcingaCheckPerfCounter - ThresholdInterval not working properly? #295
Comments
Hello Thank you for the issue. Could you please share the configuration of the You can fetch them with Show-IcingaRegisteredServiceChecks According to the plugin output you provided, the interval values are not present, because otherwise the time interval would be added there, like
|
Ah, I see, You are missing the arguments. You need to add the arguments as well, otherwise the check does not know, what do to.
Please check if I added all your time indexes. Once done, restart the PowerShell daemon with Restart-Service icingapowershell and after a short time, this should work properly. |
Ok, I was reading the official documentation. There ist just a part about the checkCPU part without arguments. That makes sense. I unregistered the first check, registered it again with the arguments an restarted the icingapowershell. But it is not working properly: I tested it with Thank you. |
Can you please test the linked PR if this resolves the issue? For testing:
After that, it should work. I will add this fix to v1.5.1 if you report back successfully. Thank you again! |
I have a few questions. The |
Is the background daemon registered? You can check this with Get-IcingaBackgroundDaemons You should see If not, please run Register-IcingaBackgroundDaemon -Command 'Start-IcingaServiceCheckDaemon'; afterwards restart the PowerShell daemon. If the daemon is already present, it could be a permission problem. Are you running the Icinga Agent on the system as well? Then run Test-IcingaAgent to verify that access to the cache directory is granted for this user. If not, the command will give you the required command to set permissions. Otherwise you will require manually to grant permissions to the cache folder for the user the |
Excellent, thank you very much! Just one important thing: In case you are using the identical plugin, in this case Otherwise they might conflict each other. Basically your registered service check should cover with I will apply the fix directly to v1.5.1. |
Hi,
we tested the IcingaCheckPerfCounter Powershell Check and we want to use the ThresholdInterval option for average values of the last x minutes.
We installed the icingapowershell Service on the Server and registered the Check.
When we open the performance monitor and run the check simultaniously, the average values will not fit.
I don't know where our mistake is and where we can change the query.
The Check-query is
Invoke-IcingaCheckPerfCounter -PerfCounter '\processor(0)\% processor time' -ThresholdInterval 1m
Thank you.
The text was updated successfully, but these errors were encountered: