Running the latest version of integration services on Hyper-V are important. This scripts reads all vms on the host and check againt the version you mention.


./check_nrpe -H HOSTNAME -p 5666 -c check_hv_intgrservices -a [Version]

Lines for nsclient.ini

Set the wrappings for Powershell

[/settings/external scripts/wrappings]
ps1=cmd /c echo scripts\%SCRIPT% %ARGS%; exit($lastexitcode) | powershell.exe -command -

Set the Command Lines

[/settings/external scripts/wrapped scripts]
check_csv = check_hv_intgrservices.ps1 $ARG1$

Example in ICINGA2

apply Service "hvintrsvc" {
  import "generic-service"
  check_command = "nrpe"
  display_name = "Hyper-V - Integrationsdienste"

  vars.nrpe_command = "check_hv_intgrservices"
  vars.nrpe_arguments = [ "6.3.9600.16384" ]

  assign where == "hyperv"