Strange output?

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
User avatar
dangul
Posts: 8
Joined: Tue Nov 25, 2003 4:48 am

Strange output?

Post by dangul »

After upgraded to version 0.8.7c I´ve got a strange problem... When I shall create a new graph I got following output from graphs_new.php??

For example I´ve got "=" in Index:

Index
=1

it should be

Index
1


Any who knows to correct this??

Thanks
Daniel
Attachments
graphs_new.php?host_id=25
graphs_new.php?host_id=25
strange.jpg (197.37 KiB) Viewed 805 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Unfortunately a known, but not yet solved problem. There's a workaround:
change .lib/snmp.php line 342
" = " should read "=" then
Reinhard
anoack
Posts: 2
Joined: Thu Feb 05, 2009 2:30 pm
Location: Austin, TX
Contact:

same problem, fix doesn't work

Post by anoack »

I am having the same problem as well... Version 0.8.7c

I went to line 342 modified

Code: Select all

$string = trim(substr($string, strpos($string, " = ")));  
to

Code: Select all

$string = trim(substr($string, strpos($string, "=")));  
Still not working...
I even deleted the device and added it back in... same result.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.2.2.1.1'
+ Index found at OID: '.1.3.6.1.2.1.2.2.1.1.1' value: '= 1'
+ Index found at OID: '.1.3.6.1.2.1.2.2.1.1.2' value: '= 2'
+ Index found at OID: '.1.3.6.1.2.1.2.2.1.1.3' value: '= 3'
+ Index found at OID: '.1.3.6.1.2.1.2.2.1.1.4' value: '= 4'
+ Index found at OID: '.1.3.6.1.2.1.2.2.1.1.5' value: '= 5'
+ Index found at OID: '.1.3.6.1.2.1.2.2.1.1.6' value: '= 6'
+ Index found at OID: '.1.3.6.1.2.1.2.2.1.1.7' value: '= 7'
+ Index found at OID: '.1.3.6.1.2.1.2.2.1.1.8' value: '= 8'
+ Index found at OID: '.1.3.6.1.2.1.2.2.1.1.9' value: '= 9'
+ Index found at OID: '.1.3.6.1.2.1.2.2.1.1.10' value: '= 10'
+ Index found at OID: '.1.3.6.1.2.1.2.2.1.1.11' value: '= 11'
+ Index found at OID: '.1.3.6.1.2.1.2.2.1.1.12' value: '= 12'
+ Index found at OID: '.1.3.6.1.2.1.2.2.1.1.13' value: '= 13'
+ Index found at OID: '.1.3.6.1.2.1.2.2.1.1.14' value: '= 14'
+ Index found at OID: '.1.3.6.1.2.1.2.2.1.1.15' value: '= 15'
+ Index found at OID: '.1.3.6.1.2.1.2.2.1.1.16' value: '= 16'
Any other suggestions?
anoack
Posts: 2
Joined: Thu Feb 05, 2009 2:30 pm
Location: Austin, TX
Contact:

Post by anoack »

Okay it turns out you need to go to line 342 and find:

Code: Select all

$string = trim(substr($string, strpos($string, " = ")));  
change to

Code: Select all

$string = trim(ereg_replace(".*= ?", "", $string)); 
Now everything seems to be working right! :)
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.2.2.1.1'
+ Index found at OID: '.1.3.6.1.2.1.2.2.1.1.1' value: '1'
+ Index found at OID: '.1.3.6.1.2.1.2.2.1.1.2' value: '2'
+ Index found at OID: '.1.3.6.1.2.1.2.2.1.1.3' value: '3'
+ Index found at OID: '.1.3.6.1.2.1.2.2.1.1.4' value: '4'
+ Index found at OID: '.1.3.6.1.2.1.2.2.1.1.5' value: '5'
+ Index found at OID: '.1.3.6.1.2.1.2.2.1.1.6' value: '6'
+ Index found at OID: '.1.3.6.1.2.1.2.2.1.1.7' value: '7'
+ Index found at OID: '.1.3.6.1.2.1.2.2.1.1.8' value: '8'
+ Index found at OID: '.1.3.6.1.2.1.2.2.1.1.9' value: '9'
+ Index found at OID: '.1.3.6.1.2.1.2.2.1.1.10' value: '10'
+ Index found at OID: '.1.3.6.1.2.1.2.2.1.1.11' value: '11'
+ Index found at OID: '.1.3.6.1.2.1.2.2.1.1.12' value: '12'
+ Index found at OID: '.1.3.6.1.2.1.2.2.1.1.13' value: '13'
+ Index found at OID: '.1.3.6.1.2.1.2.2.1.1.14' value: '14'
+ Index found at OID: '.1.3.6.1.2.1.2.2.1.1.15' value: '15'
+ Index found at OID: '.1.3.6.1.2.1.2.2.1.1.16' value: '16'
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

We will post a patch soon. Please revert to your saved lib/rrd.php before applying the patch. It will be a unified patch treating more issues than only this one
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest