Net-snmp load a third-party MIB Library
. Netcc ++ C # Unix
The MIB file we downloaded may be suffixed with. MIB. For clarity, you may need to change the name. It is generally changed to mib_name.txt.
For example,/usr/share/snmp/mibs/IP-MIB.txt
Net-snmp Add User-Defined MIB and net-snmp User-Defined mibI know three methods to add a user-defined MIB. static Load. c and. add the H file to the corresponding location and re-compile the snmp library. The advantage is that you do not need to
Install net-snmp
# YumInstallNet-snmp *
By default, there are 65 built-in MIB under/usr/share/snmp/mibs.
By default, the path for searching the MIB library is$ Home/. snmp/mibs:/usr/share/snmp/mibs
Download the required MIB Library, under my
PHP error Cannot adopt OID in UCD-SNMP-MIB, LM-SENSORS-MIB,
Cannot adopt OID in UCD-SNMP-MIB:
The Cannot adopt OID in LM-SENSORS-MIB: lmTempSensorsValue
What should I do if I encounter these errors when running PHP? Just install two software!
They
PhenomenonRecent work in the company's system to add some network-related features, it is based on Gatewayworker, after the launch report similar to the following error message:Cannot find module (IP-MIB): at line 0 in (none)Cannot find module
MiB is the basis of the SNMP collector. MiB are the carrier of network OID descriptions. They mainly include the values, descriptions, and parameters of device OID into MiB. It is the main basic data used for active polling and passive collection of
root@asd:/xx/production/xxx# apt Remove php-snmp root@asd:/xx/production/xxx# Apt Autoremove
Reading package lists ... Done building Dependency The Reading state information ... Done the following packages would be removed:libsnmp-base libsnmp3
Cannot adopt OID in Ucd-snmp-mib:Cannot adopt OID in Lm-sensors-mib:lmtempsensorsvalueWhat happens if I run PHP and encounter these errors? Install two software on the line!They were: Getcomposer and Snmp-mibs-downloader.Download: Curl-ss
Cannot adopt OID in Ucd-snmp-mib:
Cannot adopt OID in Lm-sensors-mib:lmtempsensorsvalue
What happens if I run PHP and encounter these errors? Install two software on the line!
They were: Getcomposer and Snmp-mibs-downloader.
Download: Curl-ss Https:
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.