Pass parameters to plugin in config file

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
kehrli
Posts: 1
Joined: Mon May 04, 2020 6:27 pm

Pass parameters to plugin in config file

Post by kehrli »

I have been unable to pass a parameter to a plugin in ncpa.cfg. I'm just trying to run test_service.bat and pass a parameter to it. If I don't need a parameter, I can get a cmd file to register whatever I want to say in nagios. But as soon as I add a parameter, ncpa_passive.log shows: WARNING:ncpacheck:Unable to parse all arguments from instruction. Mis-paired option: <whatever parameter i give>

What is the trick to passing a parameter to a plugin in ncpa.cfg?
Locked