Page 1 of 1

Suggestion: Command Definitions - All $ARG$ values

Posted: Mon Feb 21, 2011 9:12 pm
by Box293
Using the check_local_load command as a reference.

Out of the box it is

Code: Select all

$USER1$/check_load -w $ARG1$ -c $ARG2$
When I wanted to modify the localhost Current Load service to add -r to the end of the command I found that there was no logical place to put the -r.

I had the option of:
  • Add -r to the end of the $ARG2$ field
    Modify the existing check_local_load command to include $ARG3$
    Create an alternate check_local_load command that includes $ARG3$
I ended up creating an alternate command as I don't like changing the commands that come pre-defined.

My suggestion is that all commands that come defined in the base product should have all the $ARG$ fields present in the command string. For example I suggest the following check_local_load command:

Code: Select all

$USER1$/check_load -w $ARG1$ -c $ARG2$ $ARG3$ $ARG4$ $ARG5$ $ARG6$ $ARG7$ $ARG8$
This just allows more flexibility with the built in commands, even though all of the fields may not be used at lease there is the option there (without having to modify an existing command or create a new one).

Nagios XI 2009R1.4B running on a VMware VM on an ESXi 4.1 host.

Re: Suggestion: Command Definitions - All $ARG$ values

Posted: Mon Feb 28, 2011 10:23 am
by rdedon
Thank you for posting this, more flexibility is indeed a good thing :-)