They're in these articles https://support.nagios.com/kb/category.php?id=186could you please post a link of samples of check_nrpe services thanks.
For example, if you're interested in measuring the memory usage you'd open a Memory Checks article. Then you'd scroll down till you see NSClient++ via check_nrpe.
You'd see this command:
Code: Select all
./check_nrpe -H 10.25.14.10 -c check_memory -a 'warn=free<20%' 'crit=free<10%'
Code: Select all
define service {
host_name HostName
service_description MemoryCheck
check_command check_nrpe!check_memory!-a 'warn= uptime > 1d' 'crit= uptime > 1d'
max_check_attempts 5
check_interval 5
retry_interval 1
check_period 24x7
notification_interval 60
notification_period 24x7
contacts nagiosadmin
}
Code: Select all
service nagios restart
Code: Select all
define command {
command_name check_nrpe
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -t 30 -c $ARG1$ $ARG2$
}
Take a look at this article if you need more clarification on how command work in Nagios:
https://assets.nagios.com/downloads/nag ... ml#command