pdh
check_pdh
Checks pdh paths and handles wildcard expansion. Also available with the alias CheckCounter
Implementation
Windows | Linux | FreeBSD | MacOSX |
---|---|---|---|
✅ |
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
Argument | Description |
---|---|
Counter | The fully qualified Counter Name |
counter | The fully qualified Counter Name |
english | Using English Names Regardless of system Language requires Windows Vista or higher |
expand-index | Should Indices be translated? |
host | The Name Of the Host Mashine in Network where the Counter should be searched, defults to local mashine |
instances | Expand WildCards And Fethch all instances |
type | this can be large or float depending what you expect, default is large |
Attributes
Filter Keywords
these can be used in filters and thresholds (along with the default attributes):
Attribute | Description |
---|---|
count | Number of items matching the filter. Common option for all checks. |
value | The counter value (either float or int) |