I have several hosts on Zabbix that send to me notifications on slack.
for some triggers severity like warning or average, I would like to receive a notification if a trigger is repeated for the third time.and for other severities like high or disaster I would like to receive a notification every time a trigger happened.
How can this be done?
You have to define a single trigger to account the three "events" plus the time range to consider (last 5 checks? last five minutes?), and of course define its severity.
You can define trigger notifications, delays and escalations in the Configuration - Action menu, the documentation explains how to set it up with examples.
You can set up a simple slack notification if a trigger stays up for 5 minutes, then send a SMS to the boss if the trigger is still up after 1 hour etc...
Related
From FCM console I can not set up much more than 10 recurring notifications.
You can have up to 10 unique recurring notifications active per
project
I want to aim targeting audiences, user properties, last user engagement also. For example, you can set up a recurring notification that sends a push notification to a user who has been inactive for 2 days. From FCM console it is possible but I want to set it up manually since FCM console does not allow me to create recurring notifications much more than 10.
There is no API to create recurring notifications in Firebase Cloud Messaging. Since you already tagged your question with google-cloud-functions, you seem to know that you can create scheduled tasks with that.
To create a scheduled, recurring notification you can:
either run a function on a PubSub schedule or enqueue functions with Cloud Tasks, and
combine that with notifying the user when something interesting happens
From this documentation and the examples in it, you should be able to get the use-case working. If not, post another question with the minimal, complete code that any of us can run to reproduce where you got stuck.
How can I implement an online application which sends emails to selected users. The email contains a link which is available for 3 days after the email was sent. If the user clicks the link before it expires, then they will open a new browser window/tab with the user specific questions and a countdown timer that begins on window load. Starting from that moment, with no pause permitted, they have exactly 1 hour to answer the questions.
The quiz will be submitted by user or automatically with all the answers after the timer reaches 60 minutes.
The user can see the time remaining (updating real time somewhere in the UI).
If possible I would like to implement it in a way that if user accidentally closes the tab, he can open it again with all the answers saved.
We are currently working with Java/Spring Boot(REST API - backend), ReactJS(frontend) + MySQL database.
We do not know exactly how we should search the keywords needed for that email-link-expiration logic. The login method, creation of the quiz and the sending of it to a user along with the database structure is clear for us.
We appreciate any help or implementation ideas (or even technologies)
The ideea was to generate each quizz with a specific random token, like this:
04e69b43-f6e2-4a6b-835b-dd58c95e41810
Then, send the email to the specific person myapp.com/quizz?token=token.
A CRON job in backend will check the creation date of the quizz and check if 3 days have passed without being assessed for the first time and mark the quizz as expired if so(of course, when the link will be assessed and the quizz is expired, an error message will be displayed).
If the quizz is not expired and user clicks, automatically start the quiz and save in the database firstClickTime and expirationTime = firstClick + 1h.The frontend will send each minute a JSON with everything he has written so far to prevent any lost answers if he closes the tab.
Of course there are also some other small details, but this is the whole idea.
I'm taking over a legacy Zabbix instance and there are triggers defined in a template that are sending emails without an action tied to them. For example, the template has triggers for "Free disk space less than 40%", but we don't have any actions defined for this. How/why is Zabbix sending emails for this without an action, and bonus points if you know how to turn this off.
Actions are not necessarily "tied to triggers". Actions have conditions that can be as narrow as "if this trigger fires", and as broad as "match anything". To identify the action with confidence, add {ACTION.ID} in the message body for all of them.
If you do that and emails don't get action ID, it might be a different Zabbix instance even - check email headers to find out where it originated from.
I have a notification system for my website. I need a email notification system for website users.
I have email notification setting page from where user can schedule their email on daily bases or monthly basic or immediate basis or on particular date.
What is the best approach i need to use for this kind of functionality?
PS: i don't want to use socket.io
Thanks
I'd say the following:
In case the email should be sent everytime the event occurs, then you
don't need any crontab. Just send the email when the event occur.
Run a crontab once an hour. This crontab will fetch all events from
the last hour, and send an email with all these events to the users
requesting a hourly email
Do the same once a day and once a week for users with daily and
weekly emails preferences
.
I'm working on synchronization from our application to Exchange and back. I've set up a streamingnotification to the calendar of a room/resource defined in Exchange.
When I create an appointment in the calendar of the room I get a notification in my application, which is great. However, I also want to change this appointment from our application and send these changes to the calendar of the room in Exchange. That is no problem, but then I also receive a notification from Exchange. Basically Exchange is telling me that item 'x' has changed, when I'm the one who changed it, so I already know and don't want to process this change.
Is there a way to determine where the change originated from, or tell EWS to not send a streamingnotification when I edit an item?
Whenever you change an Item in EWS with UpdateItem the lasted ChangeKey is returned in the Response https://msdn.microsoft.com/en-us/library/office/dn605828(v=exchg.150).aspx . This property allows you to track when changes occur on the Item or to validate if no changes has occurred since the last modification.
The PidTagLastModifierEntryId property https://msdn.microsoft.com/en-us/library/gg672131(v=exchg.80).aspx will tell you who last modified an appointment.