Two $ARG1$ & $ARG2% DNS Query

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ThomasP1010
Posts: 3
Joined: Wed Aug 30, 2017 10:51 am

Two $ARG1$ & $ARG2% DNS Query

Post 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)
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

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

Post 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
You do not have the required permissions to view the files attached to this post.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked