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
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
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
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
1. Preparation environmentYum-y install make gcc gcc-c++ gcc-g77 OpenSSL openssl-develCommon Lib installation can refer to this article2. Compiling and installingFirst we need to download the source code of NET-SNMP,Official
MIBs extension of Net-snmp
MIBs extension of Net-snmp
1 Compiling and installing NET-SNMP
2 Writing MIB files
MIB File description
A simple example
3 Making a custom MIB file effective
Basic concepts and classification of system monitoring:A Overview of System monitoring: How to scientifically, systematically and efficiently monitor the overall and detailed operation of existing IT architectures is a very important part of the
Introduction
For Simple Network Management Protocol (SNMP), most system administrators have some experience of using it, or at least have heard of it. If you are working in a data center, you may be interacting with SNMP in some way every day.
Introduction
For Simple Network Management Protocol (SNMP), most system administrators have some experience with it, or at least they have heard of it. If you are working in a data center, you may interact with SNMP in some way every day. There are
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.