View Full Version : Setting up Notification in Centreon - Some questions.
tortakva
17th November 2008, 14:27
Hello there. I'm just wondering, is it possible to make Nagios/Centreon2 to queue up mail, and then send it at a given time? E.g I don't want my alerts to be sent at night, but all those messages i want to be sent at 08:00 the following day.
naparuba
17th November 2008, 14:35
Why just send them at 8? If the messages do not interest you, just make a time period without the night and do not send notification during it.
tortakva
17th November 2008, 14:47
The purpose was to queue the critical and/or warning messages from the night, and send them at between 8 and 9. As I understand the notification in Nagios; if there is no timeperiod for a given time, all the notification is dropped, or not sent.
I'm just wondering if it is possible :)
naparuba
17th November 2008, 15:12
I don't think this is possible easily. You can write a notification script that write notifications to file and a cron job that send the notifications at 8, but it's not very easy.
tortakva
17th November 2008, 15:14
Ok.
Thanks anyway :-)
tortakva
20th November 2008, 09:57
I found a way to do it:
Add a notification message with your selected info (by using the macros) and then pipe it to a file.
Then I parse the file through a perl-script I made to sum up the identical messages, and send them via mail every day at 08:00 :)
manu720
17th April 2009, 16:11
hi,
I've got same problems.
I'm using sms notification, I don't want to be notified between 8pm and 8am but I want to be notified at 8am if one or more host is still down.
Could you post your perl script ?
(sorry if bad english).
Visu@lSt@tion
19th April 2009, 20:49
Yes sure,
You should be able to do it, with the following steps:
A database where you can store information.
A cron like Naparuba adivices you at 8 o'clock.
and a script which send message to the database when it isn't work hours and directly send sms when you are in the 8 to 8 fork.