Zabbix Special Topic: The tenth Chapter Zabbix SNMP mode monitoring (SNMP is basically monitoring network equipment, this article introduces point theory knowledge)
Overview
If we need to monitor the printers, routers, UPS and other devices, must not use Zabbix agentd, because they can not install software, fortunately they generally support the SNMP protocol, so I can use SNMP to monitor them. If you want to use SNMP Agent to get information about these devices, you need to add SNMP support when installing Zabbix server.
Note: SNMP check is based on UDP protocol
Configuring SNMP Monitoring
Using SNMP to monitor devices, you need to complete the following steps
Create a host
Create a host using the SNMP interface, you can select the appropriate template during the creation of the host, routers, switches, the monitoring of these devices Itme,zabbix has been brought by default
Find the SNMP string (or OID) you want to monitor
If you want to get the SNMP string, you can use the command snmpwalk, of course, when installing Zabbix you need to increase the support of SNMP
# snmpwalk -v 2c -c public .
Yum Install SNMP
[root@localhost ~]# yum install net-snmp* -y
SNMP Configuration
[[Email protected] ~]# vim/etc/snmp/snmpd.conf
View SystemView included.1.3.6.1.2.1. -.1.1Find this line and add the following configuration
View SystemView included.1This is a new addition.
procMOUNTD//Find these configurations and remove the annotations
procNtalkd4
procSendMailTen 1
Disk/10000
Load A - -
Start SNMPD
[root@localhost ~]# service snmpd start
Getting data through SNMP
Need to get the data through SNMP, first we need the corresponding OID
获取主机名
[[Email protected] ~]# snmpwalk-c Public-v 2C 10.1. 252. 241 SysName
Snmpv2-mib::sysname. 0= STRING:localhost.localdomain
[[Email protected] ~]# snmpwalk-c Public-v 2C 10.1. 252241 . 1. 3. 6 .1. 2. 1. 1. 5. 0
Snmpv2-mib::sysname. 0= STRING:localhost.localdomain
获取服务器剩余内存
[[Email protected] ~]# snmpwalk-c Public-v 2C 10.1. 252241 . 1. 3. 6 .1. 4. 1. 2021. 4.0
Ucd-snmp-mib::memtotalfree. 0= INTEGER:2222572Kb
[[Email protected] ~]# snmpwalk-c Public-v 2C 10.1. 252. 241 Memtotalfree
Ucd-snmp-mib::memtotalfree. 0= INTEGER:2222572Kb
This article from "Live by the Sea like Waves" blog, please be sure to keep this source http://zhang789.blog.51cto.com/11045979/1869852
Zabbix Special Topic: The tenth Chapter Zabbix SNMP mode monitoring