II. Testing on the server
III. Adding items to monitor and graphics
Four .snmpwalk
SNMP protocol support using snmpwalk to view some information about the device, such as cisco switch or router IP address, etc., can also be used to help develop SNMP functionality.
zabbix-server安装net-snmp-utils:
yum install -y net-snmp-utils
snmpwalk usage:
snmpwalk -v 1 or 2 (on behalf of SNMP version) -c SNMP OID password IP address
(Object Identifier)
(1) -v: Specifies the version of snmp, 1 or 2;
(2) -c: Specifies the SNMP read password connection device;
(3) IP: Specifies the IP address of the device to walk;
(4) Oid: To obtain the index on behalf of oid equipment;
如:snmpwalk -v 2c -c public 10.10.1.113
V. Introduction
By a temperature monitoring device, CPU, power, reflecting the operating state of the device. By port (up / down) status display, and traffic statistics, the situation display equipment port
< H3C > System View-system view // [H3C] snmp-agent // open snmp [H3C] snmp-agent sys-info version v2 // open SNMPv2 [H3C] snmp-agent community read xxx // Set the community name, group name defaults to the public, get rid of the default community name, xxx will be used to query and zabbix host and template configuration [H3C] snmp-agent trap enable // open trap messages [H3C] snmp-agent target-host trap address udp-domain zabbix-server-ip udp-port 161 params securityname xxx v2c // Trap allowed to send messages to zabbix, using the community name xxx [H3C] display snmp-agent sys-info version // version of snmp, remember to save the configuration after completion
To test
Remote query operations on zabbix-server
snmpwalk -v 2c -c xxx switch-ip