June 22, 2015

Hoặc cài đặt SSMTP trên Shinken Server

Tại Shinken host

sudo apt-get install ssmtp mailutils -y
Sửa file cấu hình
vi /etc/ssmtp/ssmtp.conf
# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.
root=shinkenvdc@gmail.com

# The place where the mail goes. The actual machine name is required no
# MX records are consulted. Commonly mailhosts are named mail.domain.com
#mailhub=mail
mailhub=smtp.gmail.com:587
AuthUser=shinkenvdc@gmail.com
AuthPass=passworddaivakhonho
UseTLS=YES
UseSTARTTLS=YES

# Where will the mail seem to come from?
#rewriteDomain=
rewriteDomain=gmail.com
# The full hostname
hostname=shinkenvdc@gmail.com

# Are users allowed to set their own From: address?
# YES - Allow the user to specify their own From: address
# NO - Use the system generated From: address
FromLineOverride=YES
vi /etc/ssmtp/revaliases
root:shinkenvdc@gmail.com:smtp.gmail.com:587
Test xem đã có thể gửi mail được chưa sử dụng lệnh sau, kiểm tra hộp thư đến để biết kết quả.
echo "Test email" | mail -s "Shinken" ducnc92@hotmail.com

Related Posts:

  • Hoặc cài đặt SSMTP trên Shinken Server Tại Shinken host sudo apt-get install ssmtp mailutils -y Sửa file cấu hình vi /etc/ssmtp/ssmtp.conf # The person who gets all mail for userids < 1000 # Make this empty to disable rewriting. root=shinkenvdc@gmail.com … Read More
  • Hướng dẫn Giám sát một Switch Cisco Bật SNMP trên switch cisco enable config terminal snmp-server community public RO snmp-server host 10.145.34.130 public Cấu hình tại Shinken host Cài đặt plugin check_nwc_health su - shinken wget http://labs.consol.de/d… Read More
  • cấu hình shinken để gửi mail Tại host shinken Sửa file cấu hình host cần gửi email cảnh báo vi /etc/shinken/hosts/srv-webserver.cfg define host{ use linux-ssh host_name webserver-local address 10.145.34.131 contacts admin ;người dùng được gửi mai… Read More
  • Hướng dẫn sử dụng nrpe Tại Linux host được monitor wget http://sourceforge.net/projects/nagios/files/nrpe-2.x/nrpe-2.15/nrpe-2.15.tar.gz tar -xvf nrpe-2.15.tar.gz cd nrpe-2.15/ useradd nagios apt-get install libssl-dev xinetd nagios-plugins -y ./… Read More
  • Hướng dẫn sử dụng linux-snmp Tại host monitor cài Shinken su - shinken shinken install linux-snmp vi /etc/shinken/hosts/target.cfg Thêm vào nội dung như sau: define host{ use linux-snmp contactgroups adm… Read More

0 comments:

Post a Comment