How to pass arguments to plugin via NCPA config file?
Posted: Fri Sep 29, 2017 5:42 pm
Hello,
I'm trying to set up a passive check in NCPA that calls a plugin. The plugin works if I su to nagios and execute it. It also works from the browser when passing the two required arguments:
What I can't figure out is the syntax to pass arguments from the NCPA configuration file (java and 5 in this case).
Note, if I modify the script and don't try to pass arguments to it everything works.
Thanks!
I'm trying to set up a passive check in NCPA that calls a plugin. The plugin works if I su to nagios and execute it. It also works from the browser when passing the two required arguments:
Code: Select all
https://x.x.x.x:5693/api/plugins/check_proc_uptime.sh/java/5/?token=mytokenCode: Select all
[passive checks]
%HOSTNAME%|__HOST__ = system/agent_version
%HOSTNAME%|Process Check = plugins/check_proc_uptime.sh java 5
Thanks!