Article title: FreeBSD: solves the problem that Nagios does not send alert messages. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Recently, a nagios monitoring system was deployed on a newly installed Freebsd 7 system, which is mainly used to monitor the survival status of hosts, the status of network services, and the utilization of resources of remote hosts. Despite the trouble of installing the source code of Freebsd, nagios is installed correctly and can work properly. you can view the status of the monitored object through the web.
Is there any fault warning behavior, but cannot see it?
As shown in, the service corresponding to port 443 of a server has failed, but after waiting for half a day, it will not receive the alarm email. Log on to the nagios system and check the mail sending status. The basic operation is to check if sendmail is up (ps aux | grep sendmail) and the result is normal; use the mail program to manually send an email to one of my mailboxes (mail? S "This is a mail test project" sery@163.com <ip_scan), can send and receive This mail. Where is the problem?
Based on the above troubleshooting, we can basically conclude that sendmail is okay, and domain name resolution is normal (it is dedicated to parsing MX and A records for this monitoring server ), now the possible cause is only nagios. Go to the directory where the nagios configuration file is located and check the configuration file one by one. My nagios configuration directory is as follows:
[Root @ nagios/usr/local/nagios] # pwd
/Usr/local/nagios/etc
[Root @ nagios/usr/local/nagios/etc] # ls *. cfg
Cgi. cfg contacts. cfg localhost. cfg services. cfg
Commands. cfg hostgroups. cfg nagios. cfg timeperiods. cfg
Contactgroups. cfg hosts. cfg resource. cfg did not see any exceptions. some of these settings were changed, such as the cgi. cfg file. restart nagios and you still cannot send an alert email. However, when I click the web management interface, there is indeed an email alarm, as shown in:
There are both host failure notifications and service failure alarm notifications, and all emails should be sent according to my definition!
[1] [2] [3] Next page