-
Notifications
You must be signed in to change notification settings - Fork 31
Closed
Labels
CrashPowerShell module is crashing and not/partial usablePowerShell module is crashing and not/partial usable
Milestone
Description
I try to register a background Service Check for CPU utilization.
Unfortunately the background service does not calculate the average values for the specified time intervals.
What I have done and checked so far
I have checked that the Powershell Service is running
Get-Service -Name icingapowershell
Status Name DisplayName
------ ---- -----------
Running icingapowershell Icinga PowerShell Service
Then I registered the Deamon and created a new service.
Get-IcingaBackgroundDaemons
Name Value
---- -----
Start-IcingaServiceCheckDaemon {}
Show-IcingaRegisteredServiceChecks;
[Notice]: Service Id: 5275219864641021224811420224776891459631192206
[Notice]:
Name Value
---- -----
CheckCommand Invoke-IcingaCheckCPU
Interval 30
Arguments
Id 5275219864641021224811420224776891459631192206
TimeIndexes {1, 3, 5, 15}
I have also checked the permissions and restarted the service and the server.
Test-IcingaAgent
[Passed]: Icinga Agent service is installed
[Passed]: The specified user "NT AUTHORITY\NetworkService" is allowed to run as service
[Passed]: Directory "C:\ProgramData\icinga2\etc" is accessible and writeable by the Icinga Service User "NT AUTHORITY\NetworkService"
[Passed]: Directory "C:\ProgramData\icinga2\var" is accessible and writeable by the Icinga Service User "NT AUTHORITY\NetworkService"
[Passed]: Directory "C:\Program Files\WindowsPowerShell\Modules\icinga-powershell-framework\cache" is accessible and writeable by the Icinga Service User "NT AUTHORITY\NetworkService"
[Passed]: Icinga Agent configuration is valid
[Passed]: Icinga Agent debug log is disabled
The deamon edit the config file under:
C:\Program Files\WindowsPowerShell\Modules\icinga-powershell-framework\config
But the cache folder still remains empty
Am I still doing something wrong here or have I perhaps missed something?
Best regards
Viktor
Your Environment
- PowerShell Version used (
$PSVersionTable.PSVersion):
Major Minor Build Revision
----- ----- ----- --------
5 1 14393 3866
- Operating System and version (
Get-IcingaWindowsInformation Win32_OperatingSystem | Select-Object Version, BuildNumber, Caption):
Version BuildNumber Caption`
------- ----------- --------
10.0.14393 14393
- Icinga Framework and Plugin version (
Get-Module -Name *icinga-powershell*):
ModuleType Version Name ExportedCommands
---------- ------- ---- ----------------
Script 1.2.0 icinga-powershell-framework {Get-IcingaCacheDir, Get-IcingaCustomPluginDir, Get-IcingaFrameworkRootPath, Get-IcingaPluginDir...}
Script 1.2.0 icinga-powershell-plugins {Import-IcingaPlugins, Publish-IcingaPluginDocumentation, Use-IcingaPlugins}
Metadata
Metadata
Assignees
Labels
CrashPowerShell module is crashing and not/partial usablePowerShell module is crashing and not/partial usable