Nagios: Extended message sending method (smtp, msn, fetion) (1)

Source: Internet
Author: User

Nagios: Extended message sending methods include smtp, msn, and fetion.

1. Use SMTP to send emails

In objects/commands. cfg, the email reminder command is set.

To send an email via SMTP, you can use sendEmail:

Http://caspian.dotconf.net/menu/Software/SendEmail/

Install

Wget http://caspian.dotconf.net/menu/Software/SendEmail/sendEmail-v1.55.tar.gz

Tar zxvf sendEmail-v1.55.tar.gz

Music sendEmail-v1.55/sendEmail/usr/local/bin/

Example of sending an email:

SendEmail-f nagios@test.com-t admin@test.com-s smtp.test.com-u "test"-xu nagios@test.com-xp password-m "test ."

Vi objects/commands. cfg

Change the email sending part of notify-host-by-email and notify-service-by-email:

/Usr/local/bin/sendEmail-f nagios@test.com-t $ CONTACTEMAIL $-s smtp.test.com-u "$ HOSTALIAS $/$ SERVICEDESC $ is $ SERVICESTATE $"-xu nagios@test.com-xp password


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.