Обсуждение настройки и работы сервисов, резервирования, сетевых настроек и вопросов безопасности ОС для молодых и начинающих системных администраторов.
Возможно, виноват основной конфиг, на всякий случай оставляю его в спойлере.UPD. Конфиг monit здесь не при чём, со стандартным ситуация та же.
Прошу помощи знатоков.
Spoiler
set daemon 60 # check services at 1-minutes intervals
with start delay 180 # optional: delay the first check by 3-minutes (by
set logfile /var/log/monit.log
set idfile /var/lib/monit/id
set statefile /var/lib/monit/state
set mailserver smtp.yandex.ru port 465
username "alert@somemail.ru" password "PhloyzAp"
using sslv3
with timeout 30 seconds
set eventqueue
basedir /var/lib/monit/events # set the base directory where events will be stored
slots 100 # optionally limit the queue size
set mail-format { from: alert@somemail.ru }
set alert info@somemail2.ru not on { pid, ppid, instance, action } with reminder on 180 cycle # repeat alert each N cycles (minutes)
set httpd port 2812 and
use address localhost # only accept connection from localhost
allow localhost # allow localhost to connect to the server and
allow admin:monit # require user 'admin' with password 'monit'
check filesystem rootfs with path /dev/md0p1 every 5 cycles
if space usage > 75% for 5 times within 10 cycles then alert
if inode usage > 75% then alert
check filesystem datafs with path /dev/md0p6 every 10 cycles
if space usage > 95% for 10 times within 40 cycles then alert
if inode usage > 95% then alert
check host somehost with address 192.168.100.35
if failed icmp type echo count 30 with timeout 10 seconds then alert
check host somehost_hostname with address somehost
if failed icmp type echo count 30 with timeout 10 seconds then alert