Node down and situation setup
-
I'm trying to get NetXMS to email me when a PRIMARY interface NODE is down and not the SECONDARY interface NODE. I created a node called NIC01 and a node called NIC02. The secondary NIC02 will not work if the primary NIC01 is down. I want NIC02 to report only if NIC01 is still up.
I used the following link and other posts and could not get it figured out. https://www.netxms.org/forum/configuration/node-down-config-question/
Below is what i have now:
-
Open Situations and Create situation called "NodeDown"
-
Using the SYS_NODE_DOWN event in Event Configuration
-
Open Event Processing Policy
-
Created Event Processing Policy
- Event: SYS_NODE_DOWN
- Situtation object: NodeDown
- Instance: %n
- Attribute: NAME: status VALUE: 1
- Created Event Processing Policy
- Event: SYS_NODE_DOWN
- Filtering Script: SEE BELOW
sub main()
{
s1 = FindSituation("NodeDown", "NIC01");
isDownA = (s1 != null) ? s1->status : 0;
s2 = FindSituation("NodeDown", "NIC02");
isDownB = (s2 != null) ? s2->status : 0;
return s1 && s2;
}What am I missing? Do i need that 2nd Policy at step 5? or do I add the script on the first policy, where i defined the situation.
Any help on this would be great. I love NetXMS and I have been tasked with figuring this out. Figuring this part out would be a great achievement for me.
Thanks for any help on this
Cheers! -
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login