Need a boolean "or" statment in a check
-
jon.bilderback
- Posts: 52
- Joined: Tue Aug 10, 2010 9:16 am
Need a boolean "or" statment in a check
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
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
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
-
jon.bilderback
- Posts: 52
- Joined: Tue Aug 10, 2010 9:16 am
Re: Need a boolean "or" statment in a check
That worked great.
Thank you.
Thank you.