NAGIOS ALERTS with a Link to Knowledge Base

Hi,
I am trying to configure Nagios to send an Alert via email with URL a link to Knowledge base specific to the problem.
is this possible ?..

can somebody share their thoughts if implemeted or planing to implement.

Regards.
Anil

You would have to change your notify-by-email command to pipe the data to a script which would probably use regex to match certain alert results, then append a specified url, then finally email it out. Eg:

define command{

    command_name    notify-by-email

    command_line    /usr/bin/printf "%b" "***** Nagios Alert *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | **/bin/alertparser.pl**
    }

Then your alertparser.pl would have to parse standard input… do some if then else statements based on that, append a kb link and output the message to your mail program.