Page 1 of 1

I am new to Nagios and I have a question

Posted: Fri Mar 11, 2011 3:49 pm
by rvaede
An alert has generated because a server has not been rebooted for 90 days
I was looking into the configuration files in a client.
nrpe.cfg

and noticed that the uptime:

command[check_uptime]=/usr/lib/nagios/plugins/check_uptime $ARG1$

I am not clear how is the parameter passed to $ARG1$

Re: I am new to Nagios and I have a question

Posted: Tue Mar 15, 2011 3:21 pm
by mguthrie
The command definition for an NRPE command on the server side would look something like this

$USER1$/check_nrpe -H $HOSTADDRESS$ -c check_uptime -a $ARG1$

If you have some NRPE checks up and running, look at the working examples first before making changes. The checks and arguments can be set up a variety of ways.