Suggestion: Command Definitions - All $ARG$ values

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Suggestion: Command Definitions - All $ARG$ values

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
rdedon
Posts: 578
Joined: Sat Nov 20, 2010 4:51 pm

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

Post by rdedon »

Thank you for posting this, more flexibility is indeed a good thing :-)
Rene deDon
Technical Team
___
Nagios Enterprises, LLC
Web: http://www.nagios.com
Locked