I was trying to set up a service to monitor our Oracle ASM diskgroup usage, and one of the arguments I use in the service check contains a plus sign (+).
Here is my service check:
This works when I tested it using command line, however it does not work when I tested it using the Nagios XI web UI as the UI turns the plus sign (+) into a whitespace:[root@nagios01 scripts]# /usr/local/nagios/libexec/check_nrpe -n -t 30 -H foo.bar.com -c check_health_oracle -a '-t!ASMDISKSPACE!-I!+ASM!-p!FOOBAR'
OK - Disk space on FOOBAR is OK, 14755MB of 102396MB used (14.41%)
[root@nagios01 scripts]#
I tried escaping it using a backslash, however it does the following:Testing check from command line...
COMMAND: /usr/local/nagios/libexec/check_nrpe -n -t 30 -H foo.bar.com -c check_health_oracle -a '-t ASMDISKSPACE -I ASM -p FOOBAR'
Is there a way to escape the "+"? My service checks worked in Nagios Core perfectly, however they are all failing in Nagios XI due to the weird behavior.Testing check from command line...
COMMAND: /usr/local/nagios/libexec/check_nrpe -n -t 30 -H foo.bar.com -c check_health_oracle -a '-t ASMDISKSPACE -I \\ ASM -p FOOBAR'
Also, is it true that Nagios XI only supports 8 check arguments and does not convert $ARG9$ and beyond properly?
Thanks,
Steven