openbsd-ports/net/mon/server/patches/patch-alert_d_mail_alert
pea 828c5c820c First import of mon.
mon is a tool for monitoring the availability of services, and sending alerts
on prescribed events. Services are defined as anything tested by a "monitor"
program, which can be something as simple as pinging a system, or as complex
as analyzing the results of an application-level transaction. Alerts are
actions such as sending emails, making submissions to ticketing systems, or
triggering resource fail-over in a high-availability cluster.

ok jasper@
2009-11-10 14:33:50 +00:00

13 lines
498 B
Plaintext

$OpenBSD: patch-alert_d_mail_alert,v 1.1.1.1 2009/11/10 14:33:50 pea Exp $
--- alert.d/mail.alert.orig Mon Oct 12 16:03:19 2009
+++ alert.d/mail.alert Mon Oct 12 16:03:30 2009
@@ -46,7 +46,7 @@ $ALERT = $opt_u ? "UPALERT" : "ALERT";
$t = localtime($opt_t);
($wday,$mon,$day,$tm) = split (/\s+/, $t);
-open (MAIL, "| /usr/lib/sendmail -oi -t $mailfrom") ||
+open (MAIL, "| /usr/sbin/sendmail -oi -t $mailfrom") ||
die "could not open pipe to mail: $!\n";
print MAIL <<EOF;
To: $mailaddrs