hi,
same on here - installation no problem. but blank page.
same on here - installation no problem. but blank page.
// idx is number or string thank danrog
if (preg_match('/^[0-9]+$/', $idx)) {
$cmd = "snmpget -Os -v 2c -c $community -M ".MIBS_ALL_PATH." -m ALL $server_ip $oid.$idx";
} else {
$cmd = "snmpget -Os -v 2c -c $community -M ".MIBS_ALL_PATH." -m ALL $server_ip $oid.\"".$idx."\"";
}
$MIB = $_REQUEST["mib"];
//exampe: IP-MIB::ipOutRequests.0 = Counter32: 12303729
if (preg_match('/^(\S+) = (\S+): (.+)$/i', $results, $matches)) // full information
{
//$row = array($matches[1], $matches[2], $matches[3]);
// change to:
$row = array("$MIB::$oid.$idx", $matches[2], $matches[3]);
}
else if (preg_match('/^(\S+) = (\S+):$/i', $results, $matches)) //no value
{
//$row = array($matches[1], $matches[2],'');
// change to:
$row = array("$MIB::$oid.$idx", $matches[2],'');
}
else if (preg_match('/^(\S+) = (.+)$/i', $results, $matches)) //no type
{
//$row = array($matches[1], '',$matches[2]);
// change to:
$row = array("$MIB::$oid.$idx", '',$matches[2]);
}
Can not find module (SNMPv2-SMI): At line 21 in / usr / share / snmp / mibs / txt-MIB READYNAS Can not find module (SNMPv2-SMI): At line 21 in / usr / share / snmp / mibs / READYNAS -MIB.txt
In order to make “Save” in “Item List” work

Comment