Provide Multiple Arguments to a Command

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.
Post Reply
JohnSonandrla
Posts: 6
Joined: Sun Jul 10, 2022 12:49 am

Provide Multiple Arguments to a Command

Post by JohnSonandrla »

I have created a custom plugin in order to monitor a parameter using Nagios XI. To execute that plugin remotely I must use:

/usr/local/nagios/libexec/check_nrpe -H [IP_ADDR] -c [PLUGIN_NAME] -a [ARGUMENT]

Having made appropriate changes in nrpe.cfg and /etc/sudoers, I could get correct results.

But, I need to provide multiple arguments to the command. What should be omegle shagle voojio the syntax I must use?
Last edited by JohnSonandrla on Thu Oct 13, 2022 6:38 am, edited 1 time in total.
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Re: Provide Multiple Arguments to a Command

Post by gormank »

Use single quotes around the argument.
Post Reply