Hi All,
I Would like to generate an Alert if 2 IP's are down at the same time. and Reset once both the IP's are UP again. The Alert should not generate if only 1 IP goes down.Please do help me with Trigger and Reset Conditions.Thanks
You can achieve this by a Cutom SQL Alert in your Advanced Alert Manager
Type of property to monitor : Custom SQL Alert
Set up your trigger Query: Node
Use the below query in your alert:
WHERE
(
(Nodes.Status = '2') AND
(Nodes.IP_Address = '10.X.X.1')
)
AND EXISTS (SELECT
Nodes.Caption AS NodeName, Nodes.IP_Address AS IP_Address, Nodes.Status AS Status
FROM
Nodes
(Nodes.IP_Address = '10.X.X.2')
))
Note :
1. In the above query I have used '10.X.X.1' and '10.X.X.2' modify them accordingly.
2. The alert would get triggered from '10.X.X.1' if both the IP's are down.
3. If you want to reset the alert if both IP's are UP , under Reset Condition select - Reset this alert when following condition 's are met, use the same query above but modify Nodes.Status to 1 [Change (Nodes.Status = '2') to (Nodes.Status = '1')]
Thanks for your quick reply Vinay. I will try them now.
Just to check, Will this below work as well.
Node Status is equal to Down IP Address is equal to x.x.x.x IP Address is equal to x.x.x.x
So this one below?
Where (Nodes.Status = '2') and (Nodes.IP_Address in ('10.X.X.1','10.X.X.2'))
Thanks again
I doubt on that. But the query that I have pasted will work for sure. I have tested it for one of my alerts.
In case you think my response was helpful or correct, please mark the thread as helpful or correct.
Thanks
Sure Vinay, Thanks for helping
NP
Just curious:
Would something more simple like the below work?
) AND
ok... this will not work, because initial condition will never be true
Thanks, this has inspired me to come up with a solution for one long standing problem I had before... I will create an article and link-back here
Alex
Alex Slv I doubt it would work in such a case (but then if you have a better approach please share the same with me)
I keep reading your posts , most of them are cool . Thanks for sharing them over thwack
Oops saw your recent comment now , you have already tested it. Sorry for the delay....
Here it is
How To Monitor Split-Scope DHCP Pool
Similar Query. I Would like to generate Down Alert based on Custom Properties. This is how i have configured as of now and have not tested it yet.
The Output required is if Any RSA Appliance or Bluecoat devices goes down i need an Alert to be generated.
The Way i configured it, will it work? or any changes required?
As far as I can see - this will work as per your requirements - "if any, then..."
Thanks for the confirmation Alex.. I'll try to test them if possible.
Hi Vinay,
Would like to ask if you can modify the sql coding you have provided to something where it will reset even if any 1 IP is UP? The Trigger is perfect
Reuben
Hi reubenjack,
Same as per Vinay's note #3 + change "AND EXISTS" to "OR EXISTS"
Thank you So much for helping Alex.