zabbix_agentd安裝

  1. 解決依賴問題:Unable to use libpcre (libpcre check failed)

    yum -y install pcre*

  2. 創(chuàng)建zabbix用戶

    groupadd zabbix
    useradd -g zabbix -d /usr/lib/zabbix -s /sbin/nologin -c "Zabbix_agentd System" zabbix
    
  3. 編譯安裝

    ./configure --prefix=/usr/local/zabbix-agent --with-net-snmp --enable-agent
    make
    make install
    
  4. 添加啟動(dòng)腳本

    cp misc/init.d/tru64/zabbix_agentd /etc/init.d/
    chmod +x /etc/init.d/zabbix_agentd
    
  5. 修改啟動(dòng)腳本zabbix_agentd,因?yàn)槲覀儼惭b的zabbix_agen位置在/usr/local/zabbix-agent下

    vim /etc/init.d/zabbix_agentd 
    24 DAEMON=/usr/local/zabbix-agent/sbin/zabbix_agentd
    
  6. agent配置文件修改zabbix_agentd.conf

    Server=127.0.0.1,111.11.208.2  #111.11.208.2是zabbix_server端地址
    ServerActive=111.11.208.2
    Hostname=XZSN-PS-DNS-WEB       #zabbix_zgentd端主機(jī)名稱,配置主機(jī)是和這個(gè)名稱保存一致
    ListenPort=10050
    
  7. 啟動(dòng)agentd

    /etc/init.d/zabbix_agentd start

  8. 檢查agentd服務(wù)是否啟動(dòng)成功

    ps -ef|grep zabbix_agen
    netstat -nltup|grep 10050      #zabbix_agentd服務(wù)器啟動(dòng)默認(rèn)使用10050端口,因此也可以這樣檢查   
    
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容