Article ID: 113730, created on Apr 19, 2012, last review on May 11, 2014

  • Applies to:
  • Operations Automation

Symptoms


Output of any PHP scripts is prepended with warnings like the following:
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 (HOST-RESOURCES-TYPES): At line 0 in (none) 
Cannot find module (UCD-DISKIO-MIB): At line 0 in (none) 
Cannot find module (DISMAN-EVENT-MIB): At line 0 in (none) 
Cannot find module (LM-SENSORS-MIB): At line 0 in (none) 
Cannot find module (IPV6-ICMP-MIB): At line 0 in (none) 
Cannot find module (IPV6-MIB): At line 0 in (none) 
Cannot find module (IPV6-TCP-MIB): At line 0 in (none) 
Cannot find module (IPV6-UDP-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 (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

Cause


For php-snmp module to work correctly the net-snmp package should be installed. The package net-snmp is not being installed automatically on installation of the php-snmp package.

Resolution


Install the net-snmp package on a Linux Shared Hosting server in question:
# yum install net-snmp

5356b422f65bdad1c3e9edca5d74a1ae caea8340e2d186a540518d08602aa065 e12cea1d47a3125d335d68e6d4e15e07

Email subscription for changes to this article
Save as PDF