Код: Выделить всё
uname -msri
Монит:
Код: Выделить всё
set daemon 120
set logfile syslog facility log_daemon
set mailserver localhost with timeout 15 seconds
set eventqueue
basedir /var/monit # set the base directory where events will be stored
slots 100 # optionaly limit the queue size
## --8<--
## From: monit@$HOST # sender
## Subject: monit alert -- $EVENT $SERVICE # subject
##
## $EVENT Service $SERVICE #
## #
## Date: $DATE #
## Action: $ACTION #
## Host: $HOST # body
## Description: $DESCRIPTION #
## #
## Your faithful employee, #
## monit #
## --8<--
set mail-format { from: monit@domain.com}
set alert root@domain.com # receive all alerts
# set alert manager@foo.bar only on { timeout } # receive just service-
# # timeout alert
set httpd port 2812 and
allow 0.0.0.0/0
allow monit_user:*****
###############################################################################
# Services
###############################################################################
check process sendmail with pidfile /var/run/sendmail.pid
group server
start program = "/etc/rc.d/sendmail start"
stop program = "/etc/rc.d/sendmail stop"
if failed host localhost port 25 protocol smtp then alert
if 5 restarts within 5 cycles then timeout
Логи:
May 20 16:14:42 jsrt monit[38241]: 'sendmail' failed protocol test [SMTP] at INET[localhost:25] via TCP
Логи sendmail:
May 20 16:14:42 jsrt sm-mta[38808]: n4KCEgW5038808: localhost [127.0.0.1] did not issue MAIL/EXPN/VRFY/ETRN during connection to IPv4
Может быть кто-нибудь сталкивался?