2009-06-18 19 views
5

run.php es sólo un archivo normal de PHP:cómo desactivar estas advertencias PHP?

[[email protected] robot]# php run.php 
No log handling enabled - turning on stderr logging 
Cannot find module (HOST-RESOURCES-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 (TCP-MIB): At line 0 in (none) 
Cannot find module (UDP-MIB): At line 0 in (none) 
Cannot find module (MTA-MIB): At line 0 in (none) 
Cannot find module (NETWORK-SERVICES-MIB): At line 0 in (none) 
Cannot find module (LM-SENSORS-MIB): At line 0 in (none) 
Cannot find module (IP-MIB): At line 0 in (none) 
Cannot find module (IF-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 (DISMAN-EVENT-MIB): At line 0 in (none) 
Cannot find module (DISMAN-SCHEDULE-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-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-VIEW-BASED-ACM-MIB): At line 0 in (none) 
Cannot find module (SNMP-COMMUNITY-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 (IP-FORWARD-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-NOTIFICATION-MIB): At line 0 in (none) 
Cannot find module (SNMPv2-TM): At line 0 in (none) 
Cannot find module (NET-SNMP-VACM-MIB): At line 0 in (none) 
+0

¿Puede usted por favor, puesto que su sistema operativo? Puede ser útil darle instrucciones para que instale las bibliotecas de MIB de SNMP y/o actualice su configuración de PHP si es necesario. – defines

+0

Tuve el mismo problema. Por algún motivo, tuve el módulo SNMP habilitado para cargar en php.ini. Comentó esa línea de php.ini y está bien ahora. – James

Respuesta

0

Parece que su archivo php.ini está mal configurado para cargar los módulos que no existen.

6

Según this post, no tiene instaladas las bases de datos de gestión de SNMP adecuadas. Instale el paquete correcto para su distribución de Linux, algo así como net-snmp.

2

Cuando algo le da errores, lo peor es simplemente "apagarlos". Si la luz de emergencia se enciende en el tablero de tu automóvil, ¿vas a buscar servicios o desatornillas las bombillas?

+2

Hay una gran diferencia entre simplemente desactivar los errores y desactivar la cosa, que no está usando, lo que está causando los errores. – WiseOldDuck

6

Acabo de apagado extensión SNMP

+0

para otros ... esto se encuentra en el archivo php.ini - extension = php_snmp.dll – Stevanicus

1

Si se trata de una instalación de Windows se puede ir a add/remove programs (o program features) y hacer un cambio deen el programa PHP y bajo choose item to install asegurarse de que se deselecciona extensión SNMP y otras extensiones que no necesita

Finaliza el asistente de instalación. Después de eso haz un iisreset.

Cuestiones relacionadas