ID:               27967
 Updated by:       [EMAIL PROTECTED]
 Reported By:      mac dot and dot cheese at hush dot com
-Status:           Open
+Status:           Analyzed
 Bug Type:         Feature/Change Request
 Operating System: win32 only
 PHP Version:      4.3.4
 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

Hi,

A default installation of NET-SNMP does not include
the HOST-RESOURCES-MIB in MIB modules read at start
up time. IIRC, due to this MIB module is not fully
supported on the Windows platform (for the agent side).

You need to have the HOST_RESOURCES-MIB, someone else
will need another MIB, and maybe some one will need a enterprise
specific MIB module. It will become impossible
to fulfil all those requests and people depending on
other MIB modules better built the binary themselves.
(note, I do not built the binary version, so he may
choose differently)

Of course, an option is to add a configuration function
with which additional MIB modules can be loaded in PHP.



Previous Comments:
------------------------------------------------------------------------

[2004-04-12 17:40:28] mac dot and dot cheese at hush dot com

Description:
------------
Working with Windows PHP 4.3.4 or 4.3.5 SNMP does not load all MIBS in
c:/usr/mibs directory. php_snmp.dll compiled without
HOST-RESOURCES_MIB.

Suggest adding additional MIBs to DEFAULT-MIB string in php_snmp.dll. 

I used a Hex Editor and modified the MIB String in the dll, adding
HOST-RESOURCES.MIB;; (replacing SNMP-NOTIFICATION_MIB) and got desired
results from snmprealwalk command.

Add additional MIBs matching those provided with PHP release.

Could not fine another reference to loading additional MIBs

NOTE: Unix (FreeBSD 4.9 - PHP 4.3.4) returns all of the text
descriptors correctly. ucd-snmp 4.2.3 DEFAULT-MIBS (config.h) included
HOST-RESOURCES-MIB and others...

Reproduce code:
---------------
snmprealwalk("127.0.0.1","public","");

snmpwalk or snmpwalkoid performs the same

Expected result:
----------------
host.hrSystem.hrSystemUptime.0  | Timeticks: (161078621) 18 days,
15:26:26.21 

Actual result:
--------------
25.1.1.0  | Timeticks: (161078621) 18 days, 15:26:26.21  



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=27967&edit=1

Reply via email to