Zabbix Special Topic: The tenth Chapter Zabbix SNMP mode monitoring

Source: Internet
Author: User
Tags snmp snmpwalk

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

    1. 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

    2. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.