Need a boolean "or" statment in a check

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jon.bilderback
Posts: 52
Joined: Tue Aug 10, 2010 9:16 am

Need a boolean "or" statment in a check

Post by jon.bilderback »

Our website is load balanced, so when nagios runs a dns match check, it can actually get 2 possible IP address returns. Is there a boolean "or" statement I can use in the check for this?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Need a boolean "or" statment in a check

Post by scottwilkerson »

Jon,

The DNS IP match can take multiple -a IP's in $ARG1$

So, under
Configure > Core Config Manager > Services > DNS IP Match > Modify

Where you see:

$ARG1$ -a xxx.xxx.xxx.xxx

you can make it

$ARG1$ -a xxx.xxx.xxx.xxx -a 1.1.1.1
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
jon.bilderback
Posts: 52
Joined: Tue Aug 10, 2010 9:16 am

Re: Need a boolean "or" statment in a check

Post by jon.bilderback »

That worked great.

Thank you.
Locked