General Windows system information

  1. create a command in icinga director using Powershell base as import
  2. 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)" ;
  1. create a service template for the check command with “run on agent” = yes
  2. add service to host
2 Likes