Run INTERNAL SNMP failled

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
kmlau

Run INTERNAL SNMP failled

Post by kmlau »

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
Neo
Posts: 1
Joined: Wed Aug 21, 2002 8:28 pm
Contact:

Post by Neo »

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!
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests