PDA

View Full Version : Aditional Information in Notifications


exoid
06-17-2008, 05:34 AM
Would there be a way to include like the last 5 comments on specific host/service down/up notification that is received?

This way if something breaks and a tech logs into centreon-2 and leaves a comment of what they did. it would come up the next time its down?

I think this would be a very neat feature, if it exports something like.

[ standard cent/nagios notifications ]

+

[ last 5 comments ]

in a {date}{user-id}{comment} format.

possible?

naparuba
06-17-2008, 10:00 AM
I thinks it's possible. Just find a way to find the last 5 comments. It's in database is'nt it? Write a script (perl?) to make the printf, add the 5 comments, and pipe it to the mail command.

In a other threads I put two scripts to send mails in html format. Maybe you can use them.