主要内容

  • RHEL 5如何安装和配置agent & snmp协议

  • RHEL 5如何实现HP DL160 G6的硬件监控

  • Ubuntu/ RHEL自定义key介绍,以及crontab设定注意事项

Download zabbix agent rpm package

  • zabbix-agent

  • zabbix-get

  • zabbix-sender

Zabbix agent install & config

 1
 2
 3
 4
 5
 6
 7
 8
 9
10

1

2

3

4

5
 1
 2
 3
 4
 5
 6
 7
 8
 9
10

rpm -ivh zabbix-agent-3.2.0-1.el5.i386.rpm --force --nodeps #install agent

vim /etc/zabbix/zabbix_agentd.conf #setting config file

zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf #start agent

vi /etc/rc.local #add to startup

/etc/init.d/zabbix-agent restart #add to startup

Search snmp rpm package

  • lm_sensors-3.0.2-1centos5.i386.rpm

  • net-snmp-5.4.2-4centos5.i386.rpm

  • net-snmp-devel-5.4.2-4centos5.i386.rpm

  • net-snmp-libs-5.4.2-4centos5.i386.rpm

  • net-snmp-utils-5.4.2-4centos5.i386.rpm

Install & config snmp service

Zabbix通过SNMP监控HP服务器硬件信息

  • hpacucli-9.40-12.0.x86_64.rpm

  • hp-snmp-agents-9.40-2506.37.rhel6.x86_64.rpm

  • hp-health-9.40-1602.44.rhel6.x86_64.rpm

Linux自定义Key

 1
 2
 3
 4
 5
 6
 7
 8
 9
10

1

2

3

4

5
1
2
3
4
5
6
7
8

#Ubuntu

0 13 * * * python /etc/zabbix/general_info.py > ~/temp.log

#RHEL

0 13 * * * source /etc/profile && python /etc/zabbix/general_info.py

其他知识

  • 在使用ftp传输时,需要将传输模式改为二进位模式
1
2
3
4
5
6
7
8

1

2

3

4
1
2
3
4
5
6
7
8

open x.x.x.x #打开并登录ftp

image #設定二進位傳輸模式(同binary)

mget #傳輸多個遠端檔案

quit #離開ftp會話

文章作者

上次更新

2020-06-28