added host to alertmail messages
This commit is contained in:
@@ -431,8 +431,8 @@ static void send_mail()
|
|||||||
(void) close(0);
|
(void) close(0);
|
||||||
|
|
||||||
/* feed the data to sendmail */
|
/* feed the data to sendmail */
|
||||||
(void) sprintf(buf, "To: %s\nSubject: %s\n\n%s\n\n",
|
(void) sprintf(buf, "To: %s\nSubject: %s\n\n%s : %s\n\n",
|
||||||
ALERTMAIL, subject, logline);
|
ALERTMAIL, subject, host, logline);
|
||||||
write(1, buf, strlen(buf));
|
write(1, buf, strlen(buf));
|
||||||
close(1);
|
close(1);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user