#!/usr/bin/perl use MIME::QuotedPrint; use HTML::Entities; use Mail::Sendmail 0.75; # doesn't work with v. 0.74! $NOTIFICATIONTYPE=$ARGV[0]; $SERVICEDESC=$ARGV[1]; $HOSTNAME=$ARGV[2]; $HOSTADDRESS=$ARGV[3]; $SERVICESTATE=$ARGV[4]; $SHORTDATETIME=$ARGV[5]; $SERVICEOUTPUT=$ARGV[6]; $TO=$ARGV[7]; #$HOSTNAME=$ARGV[8]; $boundary = "====" . time() . "===="; $text = "***** Notification Shinken *****\n\n" . "Notification : $NOTIFICATIONTYPE\n\n" . "Impacted service : $SERVICEDESC\n" . "State : $SERVICESTATE\n\n" . "Related host : $HOSTNAME\n" . "Address : $HOSTADDRESS\n" . "Date/Time : $SHORTDATETIME\n\n" . "Service output : $SERVICEOUTPUT"; $texthtml = "