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