Hi everyone,
I'm writing my first plugin and am learning about the $ARGx macros. It seems from my reading that you have to supply your plugin with arguments in a particular order? Is there a way to do named parameters instead? I ask because my plugin (a Unix shell script) has a fair number of configuration flags and it would be nice to allow users to pass arguments in the order they want, using the flags they know. Is this possible?
Named arguments in a nagios plugin?
Re: Named arguments in a nagios plugin?
Technically you can just use $ARG1$ and cram all the flags into that one arg.
Former Nagios employee
Re: Named arguments in a nagios plugin?
Works for me, thanks!tmcdonald wrote:Technically you can just use $ARG1$ and cram all the flags into that one arg.