Inter-dependent status
-
Dear all,
I'm not sure how to create alarms that are conditional on multiple object status' and would be grateful if someone can point me on the right path.
The NetXMS server is sat on a server on one network connected to the Internet by connection A, most of the managed node are on separate remote networks that are themselves connected to the Internet by connections B, C, D etc..
Currently I have alarms generated on NODE_DOWN that email me an alert, however I do not want this email alert if the server connection (A) is down, i.e. the alarm (or alert) should only be asserted if the remote node goes down but connection A is up, or put another way if connection A is down do not generat any alarms for remote nodes.
Thanks in advance for any help.
Regards,
David Hewison -
Hi!
Basically you have two ways:
- Use situations. Create situation which will reflect connection A status, and in rule for processing SYS_NODE_DOWN event add additional filtering script which will check the status of situation, and only pass event through if connection A status is up.
- Just find a local node/DCI reflecting current state of connection A in filtering script for SYS_NODE_DOWN, and use it to choose if event should pass or not.
How do you monitor state of connection A?
Best regards,
Victor -
-
-
You can use function FindNodeObject and then use attribute status of that node. For example, if you have node named ISP_gateway, your script to check if it is down may looks like following:
gw = FindNodeObject($node, "ISP_gateway"); return gw->status == 4;This script will return true if node named ISP_gateway has status "critical". DOn't forget to add node for which this script executes to the list of trusted nodes for node ISP_gateway, or disable trusted nodes checking completely by setting server configuration variable CheckTrustedNodes to 0.
Best regards,
Victor -
-
-
Yes, you have to add all other nodes to trusted nodes list on ISP_gateway. So in your case it's probably easier to disable trusted nodes checking.
Best regards,
Victor
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