- create a command in icinga director using Powershell base as import
- add argument -c with and value::
$$cim = (Get-CimInstance Win32_OperatingSystem); $$datediff= (((Get-Date) - ($$cim.InstallDate)).Days); Write-Output "$$($$cim.Caption) $$($$cim.Version) ($$datediff days old)" ;
- create a service template for the check command with “run on agent” = yes
- add service to host