I am trying to execute nrpe plugin from my iCinga server like this
/usr/local/nagios/libexec/check_nrpe -H <host> -c \
'nrpe_check_traffic_status' -a '2' '3' -p <port>
I have made some print in plugin this is the result
>>opt>> -w >> arg 2
>>opt>> -c >> arg -p ### THIS LINE IS ERROR ###
Threshold values should be numerical
It is not executed properly, It sends -p
as second argument instead of 3
to remote nrpe
But same working when I give like this
/usr/local/nagios/libexec/check_nrpe -H <host> -c \
'nrpe_check_traffic_status' -p <port>-a '2' '3'
Result
>>opt>> -w >> arg 2
>>opt>> -c >> arg 3
TRAFFIC STATUS OK;
Did anyone faced this issue? Is there any solution for this? Or is there any way to change this argument position in iCinga2 configuration?
Note: I have tried changing argument parameter up/down in commands.conf
file, no use.