run.php只是一个普通的PHP文件:
[root@www4 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 :(得分:6)
根据this post,您没有安装正确的SNMP管理信息库。为您的Linux发行版安装正确的软件包,例如 net-snmp 。
答案 1 :(得分:6)
我刚刚关闭了snmp扩展名
答案 2 :(得分:2)
当某些东西给你错误时,最糟糕的方法就是“关掉它们”。如果你的汽车仪表板上的应急灯亮了,你去服务还是拧开灯泡?!
答案 3 :(得分:2)
PHP扩展的原因。 你试试:
Open Setup PHP file.
In setting PHP extensions removed extensions below:
- PostgreSQL
- Shared Memo....
- SNMP
- SOAP
- SQLite
- SQLite 3
参考: http://blog.vnlives.net/2013/10/php-bug-no-log-handling-enabled-turning.html
答案 4 :(得分:1)
如果这是Windows设置,您可以转到add/remove programs
(或program features
)并在PHP程序中执行更改,并在choose item to install
下确保您取消选择扩展SNMP
以及其他不需要的扩展。
完成安装程序向导。之后执行iisreset
。
答案 5 :(得分:0)
您的php.ini文件似乎配置错误,无法加载不存在的模块。