PDA

View Full Version : Setting up Notification in Centreon - Some questions.


tortakva
11-17-2008, 02:27 PM
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
11-17-2008, 02:35 PM
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
11-17-2008, 02:47 PM
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
11-17-2008, 03:12 PM
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
11-17-2008, 03:14 PM
Ok.

Thanks anyway :-)

tortakva
11-20-2008, 09:57 AM
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 :)