pdh

check_pdh

Checks pdh paths and handles wildcard expansion.

Implementation

WindowsLinuxFreeBSDMacOSX

Examples

Default Check

	check_pdh "counter=foo" "warn=value > 80" "crit=value > 90"
	Everything looks good
	'foo value'=18;80;90

Example using NRPE and Naemon

Naemon Config

define command{
    command_name         check_nrpe
    command_line         $USER1$/check_nrpe -H $HOSTADDRESS$ -n -c $ARG1$ -a $ARG2$
}

define service {
    host_name            testhost
    service_description  check_pdh
    use                  generic-service
    check_command        check_nrpe!check_pdh!counter=\\System\\System Up Time" "warn=value > 5" "crit=value > 9999
}

Check Specific Arguments

ArgumentDescription
CounterThe fully qualified counter name
counterThe fully qualified counter name
englishUsing english names regardless of system language (requires Windows Vista or higher)
expand-indexShould indices be translated?
hostThe name of the machine in the network where the counter should be searched, defaults to localhost
instancesExpand wildcards and fetch all instances
typeThis can be large or float depending on what you expect, default is large

Attributes

Filter Keywords

these can be used in filters and thresholds (along with the default attributes):

AttributeDescription
countNumber of items matching the filter. Common option for all checks.
valueThe counter value (either float or int)