Pass arguments to plugin via NRDP config
Posted: Wed May 27, 2020 2:05 pm
Hi all,
I'm using some NCPA passive checks. These passive checks are using a plugin that are configured in /ncpa/ncpa.cfg.d/nrdp.cfg.
Till now I never wanted to pass an argument to the plugin and that worked fine.
But now I want to pass an argument to the plugin, e.g.:
%HOSTNAME%|Temperature = plugins/getCPUTemperature.sh SENSOR1
The problem is that SENSOR1 is not passed as an argument to the getCPUTemperature plugin.
Does anyone know how to pass it as an argument. The Nagios document is not clear about this.
Thanks!
I'm using some NCPA passive checks. These passive checks are using a plugin that are configured in /ncpa/ncpa.cfg.d/nrdp.cfg.
Till now I never wanted to pass an argument to the plugin and that worked fine.
But now I want to pass an argument to the plugin, e.g.:
%HOSTNAME%|Temperature = plugins/getCPUTemperature.sh SENSOR1
The problem is that SENSOR1 is not passed as an argument to the getCPUTemperature plugin.
Does anyone know how to pass it as an argument. The Nagios document is not clear about this.
Thanks!