check_jdbc_conn_nrpe!1!2


#1

Hey guys,

Let me preface this with saying I am brand new to Nagios. As in, oh? 2 hours ago I discovered I would need to support it for my new job. One of my first tasks is to document what it does. I ran into this config… I am wondering what it does

Specifically the !1!2?

check_jdbc_conn_nrpe!1!2

check_jdbc_conn_nrpe

define command{
command_name check_jdbc_conn_nrpe
command_line $USER1$/check_nrpe -u -t $USER4$ -H $HOSTADDRESS$ -c check_jdbc_conn -a $ARG1$ $ARG2$
}


#2

The exclamation marks delimit arguments to the command line - $ARG1$ is the first equal to 1, $ARG2$ is the second equal to 2.

In order to understand exactly what this command does you will need to check the host it is checking. check_nrpe is used for doing remote checks.
Locate the config file (usually at /etc/nagios/nrpe.conf or similar). The line that defines check_jdbc_conn should be listed. Once you understand what the remote plugin is doing everything should be clear.