Dear all,
When i run the INTERNAL SNMP, i encoutered this problem :
ERROR: expected 1 data source readings (got 0) from =:...
ERROR: expected 1 data source readings (got 0) from =:...
X-Powered-By: PHP/4.1.2
Content-type: text/html
Would U tell me which part(s) has problem ? And How to amend this ?
thx
Run INTERNAL SNMP failled
Moderators: Developers, Moderators
The problem caused by snmpget of snmp_functions.php.
$snmp_value = snmpget($hostname, $community, $oid);
The printed $snmp_value = 'enterprises.1456.1.3.2.1.0 = 24'
So we use some work around by make some change to force the $snmp_value to be the result only.
$snmp_value = snmpget($hostname, $community, $oid);
$snmp_array = split(' ',$snmp_value);
$snmp_value = $snmp_array[2];
However, case snmp_net still not work.
Please help!
$snmp_value = snmpget($hostname, $community, $oid);
The printed $snmp_value = 'enterprises.1456.1.3.2.1.0 = 24'
So we use some work around by make some change to force the $snmp_value to be the result only.
$snmp_value = snmpget($hostname, $community, $oid);
$snmp_array = split(' ',$snmp_value);
$snmp_value = $snmp_array[2];
However, case snmp_net still not work.
Please help!
Who is online
Users browsing this forum: No registered users and 3 guests