Sending Multiple Emails
-
We are trying to setup a configuration where if any of our nodes are down it will send an email at first poll and then at 5 minutes if it is still down and then at 20 minutes if it is still down. We only care about icmp at this point.
Can this be setup globally so each node doesn't have to be configured individually?
Any help is appreciated.
Thanks.
-
From reviewing other forum posts it seems like I need to:
- Create a custom event such as "NODE_STILL_DOWN"
- Create a server script that runs nxevent calling NODE_STILL_DOWN.
- Add an action to "SYS_NODE_DOWN" that runs the above server script.
- Create a processing policy rule for NODE_STILL_DOWN that has a filter checking for 5 and 20 minute poll intervals.
Is this the best way to do this?
If so, how can I call nxevent from a server script? (I haven't seen any examples. I am using Windows NetXMS). nxevent.exe is in C:\NetXMS\bin on the server.
Thanks for any help.
-
Hi,
if you are running server scripts (NXSL), you can use PostEvent function: https://wiki.netxms.org/wiki/NXSL:PostEvent
Another possible option is to set node's custom attribute in reaction for SYS_NODE_DOWN and create status poll hook script, which will check if node is down for certain amount of time and use PostEvent function to generate another event.
Best regards,
Victor -
Thank you. Your status poll hook script suggestion works great.
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