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

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:

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

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

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

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
mmestnik
Posts: 972
Joined: Mon Feb 15, 2010 2:23 pm

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

Post by mmestnik »

I'll work on this Monday.
Locked