zabbix windows用戶端安裝設定及伺服器郵件通知設定

來源:互聯網
上載者:User

標籤:zabbix agent、郵件通知


http://www.zabbix.com/downloads/2.4.4/zabbix_agents_2.4.4.win.zip


1、修改檔案 

D:\zabbix\zabbix_agents_2.4.4.win\conf\zabbix_agentd.win.conf

LogFile=c:\zabbix_agentd.log

Server=10.173.230.158

ServerActive=10.173.230.158

Hostname=platform-web1


2、安裝agent

>D:\zabbix\zabbix_agents_2.4.4.win\bin\win64\zabbix_agentd.exe -c D:\zabbix\z

abbix_agents_2.4.4.win\conf\zabbix_agentd.win.conf -i

zabbix_agentd.exe [12884]: service [Zabbix Agent] installed successfully

zabbix_agentd.exe [12884]: event source [Zabbix Agent] installed successfully


3、啟動agent用戶端 -s  停止:-x

>D:\zabbix\zabbix_agents_2.4.4.win\bin\win64\zabbix_agentd.exe -c D:\zabbix\z

abbix_agents_2.4.4.win\conf\zabbix_agentd.win.conf -s

zabbix_agentd.exe [12684]: service [Zabbix Agent] started successfully




---------------------------------------------------------------------------

郵件警示通知:

http://ftp.debian.org/debian/pool/main/h/heirloom-mailx/heirloom-mailx_12.5.orig.tar.gz

http://www.linuxfromscratch.org/patches/blfs/7.7/heirloom-mailx-12.5-fixes-1.patch


[[email protected] heirloom-mailx-12.5]# patch -Np1 -i ../heirloom-mailx-12.5-fixes-1.patch

[[email protected] heirloom-mailx-12.5]# make PREFIX=/usr UCBINSTALL=/usr/bin/install install

# whereis mailx

mailx: /usr/bin/mailx /usr/share/man/man1/mailx.1

# mailx -V

12.5 6/20/10


[[email protected] ~]# cat >> /etc/nail.rc << EOF

set [email protected]

set smtp=smtp.163.com

set [email protected]

set [email protected]$*19

set smtp-auth=login

EOF



/usr/lib/zabbix/alertscripts/sendmail.sh

#!/bin/bash


echo "$3" | /usr/bin/mailx -s "$2" $1


zabbix windows用戶端安裝設定及伺服器郵件通知設定

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.