Troubleshooting Cannot find module (IP-MIB) under PHP

Source: Internet
Author: User
Tags snmp

Phenomenon

Recent 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 (IF-MIB): at line 0 in (none)
Cannot find module (TCP-MIB): at line 0 in (none)
Cannot find module (UDP-MIB): at line 0 in (none)
Cannot find module (HOST-RESOURCES-MIB): at line 0 in (none)
Cannot find module (SNMPV2-MIB): at line 0 in (none)
Cannot find module (SNMPV2-SMI): at line 0 in (none)
Cannot find module (NOTIFICATION-LOG-MIB): at line 0 in (none)
Cannot find module (UCD-SNMP-MIB): at line 0 in (none)
Cannot find module (UCD-DEMO-MIB): at line 0 in (none)
Cannot find module (SNMP-TARGET-MIB): at line 0 in (none)
Cannot find module (NET-SNMP-AGENT-MIB): at line 0 in (none)
Cannot find module (SNMP-VIEW-BASED-ACM-MIB): at line 0 in (none)
Cannot find module (SNMP-COMMUNITY-MIB): at line 0 in (none)
Cannot find module (NET-SNMP-EXTEND-MIB): at line 0 in (none)
Cannot find module (UCD-DLMOD-MIB): at line 0 in (none)
Cannot find module (SNMP-FRAMEWORK-MIB): at line 0 in (none)
Cannot find module (SNMP-MPD-MIB): at line 0 in (none)
Cannot find module (SNMP-USER-BASED-SM-MIB): at line 0 in (none)
Cannot find module (SNMP-NOTIFICATION-MIB): at line 0 in (none)
Cannot find module (SNMPV2-TM): at line 0 in (none)

Reason

According to the error message and the information found on the Internet, said is not open php_snmp.dll this extension, but view php.ini, found that the extension is actually open, further in-depth analysis, confirmed that the machine should not be installed NET-SNMP.

Solve

To NET-SNMP download an installation package, note that only 32-bit, but the 64-bit machine can also be used. After you run the installation package with the default path installed, confirm that Php_snmp.dll is turned on in the php.ini, restart Gatewayworker, and solve the problem.

Troubleshooting Cannot find module (IP-MIB) under PHP

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.