Feature Request: ARGs should be able to be specified even if there is a template with blanks

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Feature Request: ARGs should be able to be specified even if there is a template with blanks

Post by eloyd »

Imagine a command (call it check_eric) that does this:

Code: Select all

$USER1$/check_dummy $ARG1 $ARG2

Now imagine a service template (call it st_eric) that does this:

Code: Select all

command: check_eric
ARG1: 0
ARG2: <blank>

Lastly, imagine a service that:

Code: Select all

use st_eric
ARG1: <blank>
ARG2: This is my ARG2

ARG2 from the service will never be used because ARG2 from the template is blank. So even though a "more specific" setting is in the service description, it is ignored because it's using a template. This is not consistent with other template settings. We'd like to see the arguments (or the command, actually) allowed to be overridden at the service level even if a template has some of them specified. This would make for a much more powerful templating system.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
User avatar
lgute
Posts: 422
Joined: Mon Apr 06, 2020 2:49 pm

Re: Feature Request: ARGs should be able to be specified even if there is a template with blanks

Post by lgute »

Hi @eloyd, thanks for reaching out.

I created a feature request for this change.

I agree that it makes sense for values set higher up the inheritance chain (the "more specific"), to override inherited values (or lack there of).
Please let us know if you have any other questions or concerns.

-Laura
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Feature Request: ARGs should be able to be specified even if there is a template with blanks

Post by eloyd »

Groovy. Thanks. We're inching one step closer to me having just one service with a billion options on it to monitor everything!!
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
User avatar
lgute
Posts: 422
Joined: Mon Apr 06, 2020 2:49 pm

Re: Feature Request: ARGs should be able to be specified even if there is a template with blanks

Post by lgute »

Hi @eloyd,

For the sake of tracking, the Github Issue is 986 and internally it is 1286, so it will show up in the XI Changelog as [GL:XI#1268].
Please let us know if you have any other questions or concerns.

-Laura
Post Reply