Page 1 of 1
Defintions of plugin commands not defined in nrpe.cfg?
Posted: Sat Jun 01, 2019 5:05 am
by riahc3
Hello
I was going to use check_uptime but I see it isnt defined in nrpe.cfg First, question: Why?
Second, what is the best or standard way to define all the commands?
Thanks
Re: Defintions of plugin commands not defined in nrpe.cfg?
Posted: Mon Jun 03, 2019 12:56 pm
by npolovenko
Hello,
@riahc3. Depending on the NRPE build, only some or no services will be defined by default. Here is the definition that you can paste into the nrpe.cfg file:
Code: Select all
command[check_uptime]=/usr/local/nagios/libexec/check_uptime $ARG1$
You can define all other commands in a similar way:
Code: Select all
command[command_name_here]=path/to/the/plugin/ $ARG1$
Then restart the nrpe to apply changes and run this command to test out the command:
Code: Select all
/usr/local/nagios/libexec/check_nrpe -H 127.0.0.1 -c check_uptime