Icinga agent installation causing memory leak in our windows server and only very few checks are running on the server
So I am trying check_by powershell in director method
Unfortunately i am not getting correct details how to configure it in director way.commands are genereted in external commands sections also I am getting the output from linux cmd line.
anyone tried the same ?
I think the commands imported via the director basket require a local agent to execute the checks. What i think you want to do is check the windows host remotely via check_by_powershell and WinRM. I guess you have to create your own command definition for this.
I tried to recreate the example command. Instead of using a dictionary for the --icingacmd, i just used a string.
Then I created another command for the specific check which imports the above command. The arguments can be directly added to the command string. Idea from here
I don’t know if there’s a better way now but i had the same problem in the past with by_ssh and found this discussion to be useful. Maybe this will change with the support for dictionaries.