×
Back to Opsview FAQ
Internal documentation only
This page has been marked as draft.
Check arguments within Agent (NRPE) usage
Problem Copied
Service Checks may error if arguments are not parsed correctly
An example of this is when you are sending a command to a host and confusion may occur for you if the same argument is listed within that input.
- This topic is simply about understanding the format and syntax around check_nrpe
Explanation Copied
In the example below, the use of “nested” arguments is seen with -a being used twice.
- This becomes simpler to understand however when you see that the single quote is used to encapsulate the command being sent to the host
- Therefore the initial
-ais for the check_nrpe command, stating everything within the the single quotes as my argument for the command-c“check_procs”
check_nrpe -H '$HOSTADRESS$ -c check_procs -a '1: -a <Argument String>' -C '%NRPE_CERTIFICATES:1%' -k '%NRPE_CERTIFICATES:2%' -r '%NRPE_CERTIFICATES:3%' -y '%NRPE_CIPHERS:1%'
["Geneos"]
["FAQ"]