Passing parameters to NCPA plugin in 2.1.6
Posted: Mon Mar 18, 2019 12:24 pm
I used to have this format for passing parameters to my NCPA plugins that worked fine: -a '<arg1> <arg2>'. This worked fine in 1.8.1.
With ncpa 2.1.6 it does not work.
-bash-4.1$ /usr/local/nagios/libexec/check_ncpa.py -H shlgnwsad011.tvlport.net -t wspwebfarm -M api/plugins/check_File_Recent.sh -a'/tmp/test 5'
find: missing argument to `-mmin'
Ok. File was not recently created
If I rework the way i pass the arguments then it works fine.
-bash-4.1$ /usr/local/nagios/libexec/check_ncpa.py -H shlgnwsad011.tvlport.net -t wspwebfarm -M api/plugins/check_File_Recent.sh -q 'args="/tmp/test",args=5'
Ok. File was not recently created
-bash-4.1$
I don't think this was documented.
With ncpa 2.1.6 it does not work.
-bash-4.1$ /usr/local/nagios/libexec/check_ncpa.py -H shlgnwsad011.tvlport.net -t wspwebfarm -M api/plugins/check_File_Recent.sh -a'/tmp/test 5'
find: missing argument to `-mmin'
Ok. File was not recently created
If I rework the way i pass the arguments then it works fine.
-bash-4.1$ /usr/local/nagios/libexec/check_ncpa.py -H shlgnwsad011.tvlport.net -t wspwebfarm -M api/plugins/check_File_Recent.sh -q 'args="/tmp/test",args=5'
Ok. File was not recently created
-bash-4.1$
I don't think this was documented.