NRPE Socket timeout after 10 seconds
Posted: Sun Feb 12, 2017 3:44 pm
Nagios 4.1 Core
Every so often I get NRPE Socket timeout after 10 seconds on a lot of my services that use NRPE.
So I looked at my NRPE commands and found no -T value defined.
My current NRPE commands
AS an example I did this
After a restart of Nagios
All the NRPE defined services went to unknown status I had to revert back to the original code.
I looked at the NRPE document and it shows -T after the command -C
Does it matter where I place it?
Thanks
Tom
Every so often I get NRPE Socket timeout after 10 seconds on a lot of my services that use NRPE.
So I looked at my NRPE commands and found no -T value defined.
My current NRPE commands
Code: Select all
define command{
command_name check_nrpe
command_line /usr/lib/nagios/plugins/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ $ARG2$ $ARG3$ $ARG4$
}
define command{
command_name check_nrpe_test
command_line /usr/lib/nagios/plugins/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ $ARG2$ $ARG3$ $ARG4$ > /tmp/yourlog.txt
}
define command{
command_name check_users
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -a $ARG2$ $ARG3$
}
define command{
command_name check_windows_users
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_users -a 2 3 "$_HOSTALLOWEDUSERS$"
}
define command{
command_name check_ms_win_updates
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_ms_win_updates -a '-wd 15 -cd 30 -M PSWindowsUpdate'
}
AS an example I did this
Code: Select all
define command{
command_name check_nrpe
command_line /usr/lib/nagios/plugins/check_nrpe -H $HOSTADDRESS$ -T 60 -c $ARG1$ $ARG2$ $ARG3$ $ARG4$
}
define command{
command_name check_nrpe_test
command_line /usr/lib/nagios/plugins/check_nrpe -H $HOSTADDRESS$ -T 60 -c $ARG1$ $ARG2$ $ARG3$ $ARG4$ > /tmp/yourlog.txt
}
define command{
command_name check_users
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -T 60 -c $ARG1$ -a $ARG2$ $ARG3$
}
define command{
command_name check_windows_users
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -T 60 -c check_users -a 2 3 "$_HOSTALLOWEDUSERS$"
}
define command{
command_name check_ms_win_updates
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -T 60 -c check_ms_win_updates -a '-wd 15 -cd 30 -M PSWindowsUpdate'
}
All the NRPE defined services went to unknown status I had to revert back to the original code.
I looked at the NRPE document and it shows -T after the command -C
Does it matter where I place it?
Thanks
Tom