Put above file in c:\program files (x86)\nrpe\check_cardreader.vbs and update nrpe.cfg to contain:Ĭommand=cscript //nologo //t:10 "c:\program files (x86)\nrpe\check_cardreader.vbs"Īfter restarting the NRPE service, you're ready to monitor the USB device. If you don't know the exact name of the device, uncomment the lineĬscript //nologo //t:10 "check_cardreader.vbs" You should type the exact name of the device you're monitoring at that spot. In my case, I monitor a card reader that identifies as "SCR3311 USB Smart Card Reader". WScript.Echo "WARNING - No card reader detected" If objUSBDevice.Description="SCR3311 USB Smart Card Reader" Then Set colUSBDevices = objWMIService.ExecQuery ("Select * From Win32_PnPEntity Where DeviceID = '"
0 Comments
Leave a Reply. |