Master list of check_nt variables
Damien Manuel
DManuel at continuumit.com.au
Tue Jun 3 05:53:23 CEST 2003
Greetings,
The best way to make a list is to use ctrlist.exe from the M$ resource
kit. When you run this on a server it will produce a list of counters
that can be queried. Note, that the counter name varies based on version
of M$ platform and software installed. If you want to find services to
query on M$ platforms use the free tool called Typhon.
I have listed some examples below:
# 'check_exch55_Out_queue' command definition
define command{
command_name Exch55_Out_Queue
command_line /usr/local/nagios/libexec/check_nt -H
$HOSTADDRESS$ -v COUNTER -l "\\MSExchangeIMC\Queued Outbound","%.f
Messages in Queue" -p 1248 -w $ARG1$ -c $ARG2$
}
# 'check_exch55_In' command definition
define command{
command_name Exch55_In_Queue
command_line /usr/local/nagios/libexec/check_nt -H
$HOSTADDRESS$ -v COUNTER -l "\\MSExchangeIMC\Queued Inbound","%.f
Messages in Queue" -p 1248 -w $ARG1$ -c $ARG2$
}
# 'Active Server Pages Request Total in Bytes' command definition
define command{
command_name ASP_Request_Total
command_line /usr/local/nagios/libexec/check_nt -H
$HOSTADDRESS$ -v COUNTER -l "\\Active Server Pages\Request Bytes In
Total","%.f Bytes" -p 1248
}
# 'Active Server Pages Total Number of Failed Requests - Includes
Disconnects and Authorisation Failures' command definition
define command{
command_name ASP_Requests_Failed_Total
command_line /usr/local/nagios/libexec/check_nt -H
$HOSTADDRESS$ -v COUNTER -l "\\Active Server Pages\Requests Failed
Total","%.f Failed Requests" -p 1248
}
# 'Memory - Available MBytes of physical memorys' command definition
define command{
command_name Memory_Available
command_line /usr/local/nagios/libexec/check_nt -H
$HOSTADDRESS$ -v COUNTER -l "\\Memory\Available MBytes","%.f MBytes" -p
1248 -w $ARG1$ -c $ARG2$
}
# 'HTTP - Indexing service' command definition
define command{
command_name HTTP_Indexing
command_line /usr/local/nagios/libexec/check_nt -H
$HOSTADDRESS$ -v COUNTER -l "\\Http Indexing Service","%.f " -p 1248
}
Other things you can query with check_nt are processes, services
etc...like the ones listed below:
# 'check_nt_disk' command definition
define command{
command_name check_nt_disk
command_line /usr/local/nagios/libexec/check_nt -H
$HOSTADDRESS$ -v USEDDISKSPACE -p 1248 -l $ARG1$ -w $ARG2$ -c $ARG3$
}
# 'check_nt_cpuload' command definition
define command{
command_name check_nt_cpuload
command_line /usr/local/nagios/libexec/check_nt -H
$HOSTADDRESS$ -v CPULOAD -p 1248 -l $ARG1$
}
# 'check_nt_uptime' command definition
define command{
command_name check_nt_uptime
command_line /usr/local/nagios/libexec/check_nt -H
$HOSTADDRESS$ -v U
PTIME -p 1248
}
# 'check_nt_process' command definition
define command{
command_name check_nt_process
command_line /usr/local/nagios/libexec/check_nt -H
$HOSTADDRESS$ -v PROCSTATE -p 1248 -l $ARG1$ }
# 'check_nt_service' command definition
define command{
command_name check_nt_service
command_line /usr/local/nagios/libexec/check_nt -H
$HOSTADDRESS$ -v SERVICESTATE -p 1248 -l $ARG1$
}
# 'check_nt_memuse' command definition
define command{
command_name check_nt_memuse
command_line /usr/local/nagios/libexec/check_nt -H
$HOSTADDRESS$ -v MEMUSE -p 1248 -w $ARG1$ -c $ARG2$
}
# 'check_nt_pagingfile' command definition
define command{
command_name check_nt_pagingfile
command_line /usr/local/nagios/libexec/check_nt -H
$HOSTADDRESS$ -v COUNTER -l "\\Paging File(_Total)\\% Usage","Paging
File usage is %.2f %%" -p 1248 -w $ARG1$ -c $ARG2$
}
# 'check_nt_thread' command definition
define command{
command_name check_nt_thread
command_line /usr/local/nagios/libexec/check_nt -H
$HOSTADDRESS$ -v COUNTER -l "\\Process(_Total)\\Thread Count","Thread
Count: %.f" -p 1248 -w $ARG1$ -c $ARG2$
}
# 'check_nt_session' command definition
define command{
command_name check_nt_session
command_line /usr/local/nagios/libexec/check_nt -H
$HOSTADDRESS$ -v COUNTER -l "\\Server\\Server Sessions","Server
Sessions: %.f" -p 1248 -w $ARG1$ -c $ARG2$
}
-----Original Message-----
From: James Turnbull [mailto:james at lovedthanlost.net]
Sent: Tuesday, 3 June 2003 1:20 PM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] Master list of check_nt variables
Hi
I have built a few commands using check_nt and was wondering if there
was a
master list or source for all the variables (and their arguments) able
to
retreived using this command, ie. UPTIME, CPULOAD etc, etc?
Regards
James Turnbull
-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when
reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list