Knowledge Base

IPCheck Custom Sensor: Reading Free Disk Bytes from local or remote computer using WMI

Esta pagina no esta disponible en Español. Rogamos su comprension.

This custom sensor for IPCheck Server Monitor reads the free disk bytes from a Windows machine using WMI. You can find the files of this sensor in the following sub folder of your IPCheck Server Monitor installation:

\custom\sample\dot net\read windows disk free bytes

It was created using .NET, the .NET framework must be installed. The source can be found in "ClassMain.cs".

Prerequisites:

  • .NET framework 1.1 must be installed on the machine running IPCheck Server Monitor.
  • the machine being queried must run Win2k or later

Instructions:

  • Copy EXE and PDB into your CUSTOM directory
  • Restart the IPCheck web server process (to scan the folder for new files)
  • Create a new CUSTOM sensor
  • For the Sensor setting choose CollectDiskFreeSpaceWMI.exe
  • For Parameters set the following values in the webinterface:
    "Drive" "Computername" "Units"
  • e.g.
    "C:" "COMPUTERNAME" "mb"
  • If a specific security account is necessary add the user account name and password:
    "C:" "REMOTECOMPUTER" "mb" "WINDOMAIN\user" "passwd"

Sample Code was created by Torsten Sturm