PowerShell

To Probe Index(Pg 1)

PowerShell > Disk Space

Disk Space

This probe uses Powershell to retrieve the disk space available on a drive

on the target host. Specifically, it queries the Size and FreeSpace

properties of the Win32_LogicalDisk class, computes percentage free space,

and compares it against the Warning and Critical parameters you set. The

target host must be running PowerShell with Remoting enabled.

The Drive parameter may be set to "All" to enumerate all Local hard drives

on the host. It may also be set to a list of comma-separated drive names

(including the colon), which will be listed whether or not they are local

hard drives. Zero-sized drives (i.e. an empty cd-rom) will not be listed.

The first drive failing the warning or critical criteria will be the one

cited in the reason.

The User parameter may be a local user on the target host, or may take the

form of "domain\user" for a domain login. Leave it blank if authentication

is not required, such as when the target is the localhost.

InterMapper invokes the WindowsFreeDiskSpace.ps1 companion script which was

placed in the Tools folder of the InterMapper Settings folder when this

probe was loaded. It uses the exit value to set the condition of the device

and the performance data returned by the script to create a nice display of

chartable data.

Filename: com.helpsystems.powershell.wmi.diskspace.txt
Version: 1.0

Back to Top

PowerShell > Remote > Disk Space (Signed)

Disk Space (Signed)

This probe uses Powershell to retrieve the disk space available on a drive on the target host. Specifically, it queries the Size and FreeSpace properties of the Win32_LogicalDisk class, computes percentage free space, and compares it against the Warning and Critical parameters you set. The

target host must be running PowerShell with Remoting enabled.

Parameters

Drive - set to "All" to list all Local hard drives on the host. Use a list of comma-separated drive letters with colons. Drives can be listed regardless of whether they are local or not. Zero-sized drives (i.e. an empty cd-rom) are not listed.

The first drive failing the warning or critical criteria test is cited in the reason.

User - may be a local user on the target host, or may take the form of "domain\user" for a domain login. Leave it blank if authentication is not required, such as when the target is the localhost.

InterMapper invokes the WindowsFreeDiskSpace.ps1 companion script, placed in the Tools folder of the InterMapper Settings folder when probe iss loaded. It uses the exit value to set the condition of the device, and uses the performance data returned by the script to create a display of chartable data.

Filename: com.helpsystems.powershell.remote.diskspace.sign.txt
Version: 0.2

Back to Top

PowerShell > Remote > Disk Space

Disk Space

This probe uses Powershell to retrieve the disk space available on a drive

on the target host. Specifically, it queries the Size and FreeSpace

properties of the Win32_LogicalDisk class, computes percentage free space,

and compares it against the Warning and Critical parameters you set. The

target host must be running PowerShell with Remoting enabled.

The Drive parameter may be set to "All" to enumerate all Local hard drives

on the host. It may also be set to a list of comma-separated drive names

(including the colon), which will be listed whether or not they are local

hard drives. Zero-sized drives (i.e. an empty cd-rom) will not be listed.

The first drive failing the warning or critical criteria will be the one

cited in the reason.

The User parameter may be a local user on the target host, or may take the

form of "domain\user" for a domain login. Leave it blank if authentication

is not required, such as when the target is the localhost.

InterMapper invokes the WindowsFreeDiskSpace.ps1 companion script which was

placed in the Tools folder of the InterMapper Settings folder when this

probe was loaded. It uses the exit value to set the condition of the device

and the performance data returned by the script to create a nice display of

chartable data.

Filename: com.helpsystems.powershell.remote.diskspace.txt
Version: 1.1

Back to Top

PowerShell > Remote > File Modification Monitor

File Modification Monitor

Probe File Name: com.helpsystems.powershell.remote.filemonitor.txt

Probe Requirements: Windows computers that support PowerShell 2.0 or later and PSRemoting configured.

This probe watches a file or group of files to determine if it has been modified in the given time period.

Parameters

Path - Required. The location of the files to be checked. Include the drive, and enclose the path in double-quotes if it contains spaces.

File - Required. the filename (and extension) of the file you wish to check. The probe uses the -match command so regular expressions or portions of a file name can also be used.

Days,Hours, Minutes and Seconds - Specify the minimum age of the file(s) being monitored. The probe will go to ALARM condition if the file's LastModifiedTime\p\ property is newer than this age.

User, Password - may be a local user on the target host, or can take the form domain\user for a domain login. If no credentials are supplied,

Timeout - the number of seconds to wait before assuming the host is not available. If no value is specified, this probe will time out in 3 seconds.

InterMapper invokes the FileMonitor.ps1 companion script, included with the probe. It lists the file or files which meet the specified criteria, and uses the exit value to set the condition of the device.

Filename: com.helpsystems.powershell.remote.filemonitor.txt
Version: 1.0

Back to Top

PowerShell > Remote > Installed Software

Installed Software

This probe uses PowerShell to provide a listing of installed software, installed updates, or both. This probe requires that PowerShell 2.0 or later be installed, and PowerShell remoting must be enabled and configured to use this probe. This probe uses the registry, not WMI objects

InterMapper invokes the included ApplicationList.ps1 companion script in InterMapper Settings/Tools.

Filename: com.helpsystems.powershell.remote.installedSoftware.txt
Version: 1.0

Back to Top

PowerShell > Remote > Process Count

Process Count

InterMapper invokes the ProcessCount.ps1 companion script which was

placed in the Tools folder of the InterMapper Settings folder when this

probe was loaded.

Filename: com.helpsystems.powershell.remote.processcount.txt
Version: 1.0

Back to Top

PowerShell > Remote > WMI Process Count

WMI Process Count

InterMapper invokes the WmiProcessCount.ps1 companion script which was

placed in the Tools folder of the InterMapper Settings folder when this

probe was loaded.

Filename: com.helpsystems.powershell.remote.wmi.processcount.txt
Version: 1.0

Back to Top