FreeBSD: solve the problem that Nagios does not send alert messages

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.