Problems with SNMP
| From: | nemholt_jf at tsm dot es | Date: | Wed, 20 Feb 2002 17:37:40 +0000 |
| Subject: | Problems with SNMP | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-6080@lists.php.net to get a copy of this message | ||
Hi, I have a rather strange problem with UCD-SNMP.
I use PHP 4.1.1 and UCD-SNMP 4.2.3
If I make a line like this :
echo snmpget("localhost", "public", "system.sysDescr.0");
...then I get a "Document contains no data" in the browser or at best a
message saying that the OID doesn't exist (which it does)
If I change to :
echo snmpget("localhost", "public", ".1.3.6.1.2.1.1.1");
...or :
echo snmpget("localhost", "public", "1.3.6");
...then I get the same.
...but if I look in phpinfo() ( http://statdb.dassic.com/phpinfo.php ) then
it's enabled, and I have the ucd-snmp-hack option in my configure...
On another machine running RedHat 6.2 buth with the same PHP & UCD-SNMP, it
only worked with 1.3.6 and gave a wrong result.
What's wrong ?
/Jesper