NSClient++ offers a uniform mechanism for querying system information. Basic system information can be retrieved using the check_nt
command from a standard Nagios plugins package.
The syntax and options of the command is as follows:
check_nt -H <host> [-p <port>] [-P <password>] [-w level] [-c level]
-v <variable> -l <arguments>
Option |
Description |
---|---|
-H, --hostname |
The host name or IP address of the machine to connect to; this option must be specified |
-p, --port |
The TCP port number to connect to; defaults to 1248; for NSClient++ it should be set to 1248, which is the default port |
-P, --password |
The password to use for authentication; this is optional and is needed only if a password is set up on the Windows agent |
-v, --variable |
The variable to query; see the list below for the possible parameters |
-l, --arguments |
The arguments that should be passed to the variable; this parameter is optional |
-w, --warning ... |