I am also trying to do this. i can check any known MIB, but if I want to check any private MIBs, it won't take them.
I've installed SNMI4W2K on my Windows 2000 Server, and put the mibs in the USR/MIBS directory on my Windows 200 Pro box. The file does get indexed properly, but PHP won't use the new entries.
I can do this in perl:
my $sysCPUUsage = '1.3.6.1.4.1.311.1.1.3.1.1.2.1.6.0';
my $sysCPUResult = $SNMPSession->get_request(
-varbindlist => [$sysCPUUsage]
);
in PHP, however, if I try to use
$sysCPUUsage = snmpget($host, $community, "1.3.6.1.4.1.311.1.1.3.1.1.2.1.6.0");
it says unknown. So I drilled down through the perfmon.mib and found that the equivelent would be:
$sysCPUUsage = snmpget($host, $community, "performance.cpuInterruptsPerSec.0");
PHP won't hear of it.
So, how do I extend the MIBs that PHP will accept?
Glenn