problem with a Nagios check

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
RajeshEzrado
Posts: 6
Joined: Thu Jun 02, 2022 2:52 am

problem with a Nagios check

Post by RajeshEzrado »

I have a problem with a Nagios check, and it's that I need to check a Windows service using nrpe, but the service name has square brackets. Anybody here knows how to escape square omegle.2yu.co brackets? My check arguments go like this:

$ARG1$ check_service $ARG2$ -a service='serviceName omeglz echat [1016]'
Last edited by RajeshEzrado on Wed Aug 10, 2022 5:02 am, edited 1 time in total.
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Re: problem with a Nagios check

Post by gormank »

Use \ to escape things: \[...\]
Locked