Добрый день
Прощу оказать помощь
Имеется сервер
CentOS release 6.2 (Final)
2.6.32-131.21.1.el6.x86_64
На нем установлен и настроен nagios 3.3.1 для мониторинга Windows серверов. В режиме реального времени все показывается, но сообщение на почту о каких-то проблемах не приходит.
Вот так выглядит файл contacts.cfg
[console]define contact{
contact_name nagiosadmin ; Short name of user
service_notification_period 24x7
host_notification_period 24x7
service_notification_options w,u,c,r,f
host_notification_options d,u,r,f
service_notification_commands notify-service-by-email
host_notification_commands notify-host-by-email
use generic-contact ; Inherit default values from generic-contact template (defined above)
alias Nagios Admin ; Full name of user
email diananiev@gmail.com ; <<***** CHANGE THIS TO YOUR EMAIL ADDRESS ******
}[/console]
[console]
define contactgroup{
contactgroup_name admins
alias Nagios Administrators
members nagiosadmin
}
[/console]
В чем может быть проблема?
Отправление e mail с уведомлениями о событиях nagios
А что в /var/log/mail пишут?
Такого файла нет
[console]
anaconda.ifcfg.log boot.log httpd secure
anaconda.log btmp lastlog secure-20111229
anaconda.program.log ConsoleKit maillog spooler
anaconda.storage.log cron maillog-20111229 spooler-20111229
anaconda.syslog cron-20111229 messages tallylog
anaconda.xlog dmesg messages-20111229 wtmp
anaconda.yum.log dmesg.old mysqld.log yum.log
audit dracut.log ntpstats
[/console]
maillog есть
[console]
grep diananiev@gmail.com /var/log/maillog*
[/console]
Можно и в messages посмотреть
В /var/log/maillog очень много ошибок вида
[console]
Jan 10 10:21:19 newhelpdesk postfix/error[3559]: 0885141484: to=<ananyev@rusprods.local>, relay=none, delay=34188, delays=34188/0.07/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to rusprods.local[192.168.0.12]:25: Connection refused)
[/console]
А grep именно по проблемному мылу что выдает? Тут-то все ясно, не может подконнектится к серверу rusprods.local для отправки мыла на ящик ananyev@rusprods.local. А вот что с гмайловским ящиком- не ясно. Вывода грепа нужен.
Дабы не создавать новой темы, освежу эту.... тож никак не получается настроить уведомление по мылу.....
cat /var/log/mail
[console]postfix/qmgr[1224]: E161D740040: from=<nagios@test.localdomain>, size=670, nrcpt=1 (queue active)
postfix/smtp[1518]: connect to firma.com[IP хостинга]:25: Connection timed out
postfix/smtp[1518]: E161D740040: to=<help@firma.com>, relay=none, delay=441, delays=411/0.21/30/0, dsn=4.4.1, status=deferred (connect to firma.com[IP хостинга]:25: Connection timed out)
[/console]
В сети имеется тестовый локальный почтарь...
nslookup mail.firma.com
[console]Server: 192.168.20.20
Address: 192.168.20.20#53
Name: mail.firma.com
Address: 192.168.20.25
[/console]
Как на него все это дело завернуть...? Полагаю надо шлифануть postfix?