Hi,
because Microsoft cut off WMI support, I need to migrate to a different way to monitor Windows server.
I read about:
Icinga for Windows
Icinga Agent
NSClient++
My problem is that I have a Nagios system monitoring, too, so, both Icinga and Nagios need to monitor Windows server.
How could I choose as agent useful both for Icinga and Nagios?
[2022-10-05 12:42:35 +0200] warning/PluginCheckTask: Check command for object âmyserverwindow.domain.net!CPU Utilization IcingaForWindowsâ (PID: 14445, arguments: âC:\Windows\System32\WindowsPowerShell\v1.0\powershell.exeâ â-NoProfileâ â-NoLogoâ â-ExecutionPolicyâ âBypassâ â-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â ') terminated with exit code 128, output: execvpe(C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe) failed: No such file or directory
you have to execute the check on the windows server.
if you use director you have to set ârun on agentâ yes
if you use config files you have to set the command_endpoint to the hostname