Page 1 of 1

Two $ARG1$ & $ARG2% DNS Query

Posted: Wed Feb 17, 2021 2:08 pm
by ThomasP1010
DNS Query Check:
$ARG1$ -H 'time.windows.com' -a 'IP AddrXX9' -s 'IP AddrXXX9'
$ARG2$ -H 'time.windows.com' -a 'IP AddrXX8' -s 'IP AddrXXX8'
Run check cmd executes $ARG1$ ONLY, $ARG2$ is not run.
Query needs to check:
$ARG1$ time.windows.com returns IP AddrXX9 from our internal DNS SVRxx9 (in SITE 1)
And
$ARG2$ time.windows.com returns IP AddrXX8 from our internal DNS SVRXXX8 (in SITE 2)

Re: Two $ARG1$ & $ARG2% DNS Query

Posted: Wed Feb 17, 2021 4:52 pm
by benjaminsmith
Hi Thomas,

Out of the box, all the dns related check commands are set with a single argument.
command-arguments.png
Go to Configure > Core Config Manager and select commands from the left-hand sidebar menu, find the command then select edit and add another argument to the string. For example,
add-command-argument.png
Then Apply Configuration and try testing this again and let me know if it works. If not, can you run the full check command from the CLI and post the output for us to review.

See:Nagios XI - How To Test Check Commands From The Command-line

Best Regards,
Benjamin