NRPE SSL error: unrecognised option '$'
Posted: Thu Apr 12, 2018 8:29 am
Hello!
NRPE version: 3.2.1
NSClient++ version: 0.5.2035
I've implemented SSL with NRPE for secure communications between the Nagios server and the monitored clients. The certificates have been placed on the target host and the nsclient.ini has been altered to allow for SSL communcation. In the logging from Centos I can see the following warning whenever a check is ran (note that without variables the check runs fine, even with the below warning. Perhaps SSL is not yet properly configured, but that might not even be related to the question below):
The code below successfully returns the current CPU values as expected:
But when I start working with variables I start to run into errors:
I've added the variables in a host template which is is attached to a host group. The servers I want to monitor are a member of the hostgroup and should receive the inherrited variables. Nagios Netherlands has sent over a consultant to my previous employer and explained that this was the way to go with default "group" checks.
This is the variable added to the template
The problem is that I do not have all the documentation from my old employer nor do I have access to the system to peak. I'm doing it all from memory. Does anyone have any idea where I should begin to look?
Kind regards,
Dennis Lans
NRPE version: 3.2.1
NSClient++ version: 0.5.2035
I've implemented SSL with NRPE for secure communications between the Nagios server and the monitored clients. The certificates have been placed on the target host and the nsclient.ini has been altered to allow for SSL communcation. In the logging from Centos I can see the following warning whenever a check is ran (note that without variables the check runs fine, even with the below warning. Perhaps SSL is not yet properly configured, but that might not even be related to the question below):
Code: Select all
Apr 12 15:20:49 <<server>> check_nrpe: Remote <<ip address> does not support Version 3 PacketsCode: Select all
./check_nrpe -H <<ip address>> -f /usr/local/nagios/etc/ssl/ssl_option.conf -c check_cpu -a "warn=load gt 85" "crit=load gt 95"Code: Select all
./check_nrpe -H <<ip address>> -f /usr/local/nagios/etc/ssl/ssl_option.conf -c check_cpu -a $_HOST_CPU_THRESHOLDS$
Restuls in: Invalid command line: unrecognised option '$HOST_CPU_THRESHOLDS$'
This is the variable added to the template
Code: Select all
__cpu_thresholds "warn=load gt 80" "crit=load gt 90"The problem is that I do not have all the documentation from my old employer nor do I have access to the system to peak. I'm doing it all from memory. Does anyone have any idea where I should begin to look?
Kind regards,
Dennis Lans
