z

Commercial Support Clients: Clients with support contracts can get escalated support assistance by visiting Nagios Answer Hub. These forums are for community support services. Although we at Nagios try our best to help out on the forums here, we always give priority support to our support clients.

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.

Provide Multiple Arguments to a Command

Postby JohnSonandrla » Wed Aug 24, 2022 7:11 am

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

Re: Provide Multiple Arguments to a Command

Postby gormank » Wed Aug 24, 2022 2:03 pm

Use single quotes around the argument.
gormank
 
Posts: 1079
Joined: Tue Dec 02, 2014 12:00 pm


Return to Open Source Nagios Projects

Who is online

Users browsing this forum: Fess [Nagios Bot] and 19 guests