Let Nagios send a warning message using an external mailbox

Source: Internet
Author: User
<span id="Label3"></p><p><p>Reference</p></p><p><p>Linux under the Mail command and use an external SMTP server to set instructions</p></p><p><p>Http://blog.chinaunix.net/uid-16969514-id-3363644.html</p></p><p><p><br></p></p><p><p><br></p></p><p><p>1, Modify the sender email, modified, All users send email is using this email account.</p></p><p><p>In order for Nagios to send email, you need to modify the/etc/mail.rc, This configuration file is postfix, not modified although it can be sent, but will be treated as Spam.</p></p><p><p>Open the Postfix service,</p></p><p><p><br></p></p><p><p>Modify the/etc/mail.rc, Add the last Face</p></p><p><p><br></p></p><p><p>Vim/etc/mail.rc</p></p><p><p>...</p></p><p><p>Set [email protected]<span class="Apple-tab-span" style="white-space:pre;"></span>//this is the Sender's Email.</p></p><p><p>Set smtp=smtp.domain.com<span class="Apple-tab-span" style="white-space:pre;"></span>//sender's Email SMTP settings</p></p><p><p>Set [email protected]<span class="Apple-tab-span" style="white-space:pre;"></span>//sender's Email account name</p></p><p><p>Set Smtp-auth-password=password<span class="Apple-tab-span" style="white-space:pre;"></span>//sender's Email password</p></p><p><p>Set Smtp-auth=login</p></p><p><p>: Wq</p></p><p><p><br></p></p><p><p>2, Modify the Administrator email, when the service error, send an email to the Administrator's email address. That is, the administrator received the email email</p></p><p><p>Vim/usr/local/nagios/etc/object/contacts.cfg</p></p><p><p>Found it</p></p><p><p>Define Contact{</p></p><p><p>....</p></p><p><p><br></p></p><p><p>Email <span class="Apple-tab-span" style="white-space:pre;"> </span>Your email<span class="Apple-tab-span" style="white-space:pre;"></span>//change to admin email address</p></p><p><p>}</p></p><p><p><br></p></p><p><p><br></p></p><p><p>Attention:</p></p><p><p>1, do not receive mail, you can check whether it is treated as spam, to check the spam mailbox, if it is used as junk e-mail can be sent to the Sender's email whitelist to Try.</p></p><p><p><br></p></p><p><p>2, the use of Postfix has a drawback, is the modification, all users send email is to use this email account.</p></p><p><p><br></p></p><p><p>3, If use sendmail can solve this shortcoming, but no test</p></p><p><p><br></p></p><p><p>Let Nagios send a warning message using an external mailbox</p></p></span>

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.