Page 1 of 1

Leave $ARG1$ blank and it shifts $ARG2$ into $ARG1$

Posted: Fri Apr 09, 2010 8:31 pm
by Box293
As per this topic http://support.nagios.com/forum/viewtopic.php?f=6&t=87

Quick overview: if you leave $ARG1$ blank and have data in $ARG2$ it shifts $ARG2$ into $ARG1$ after you save the service / host.

This was fixed in 2009R1.1G for a host and a service.

However the problem still occurs for a host template and a service template.

Warning You have not filled in all command arguments (ARGx)

Posted: Fri Apr 09, 2010 8:48 pm
by Box293
As per this topic http://support.nagios.com/forum/viewtopic.php?f=6&t=104

Quick overview: you get prompted about required fields being empty when saving a host / service.

This behaviour was changed in 2009R1.1G for a host, service and host template.

However for a service template:
  • I've selected a command
    The command has requirements for $ARG1$ and $ARG2$
    I leave $ARG1$ empty
    I save the service template
    I get the warning "You have not filled in all command arguments (ARGx) for your select command"
This behaviour does NOT occur on a service when I follow the same steps.

I can understand that this is a template, and a template should be correctly populated as per the command arguments.

My reasons why I would leave ARGx fields blank:
  • * I don't want to use a password with check_nt. Instead of duplicating the command so there is no password requirement I would like to use the built in command that comes with XI and omit $ARG1$
    * I have a custom command [$USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -v $ARG1$ $ARG2$ $ARG3$ $ARG4$ $ARG5$ $ARG6$ $ARG7$ $ARG8$]
    Having a command with all 8 (ARGx) values allows me to use the command in different service / host templates for different purposes instead of creating specific commands with only one purpose.
I hope this makes sense.

Re: Leave $ARG1$ blank and it shifts $ARG2$ into $ARG1$

Posted: Sun Apr 11, 2010 4:54 pm
by mmestnik
I'll work on this Monday.