I found a little bug in the function format_snmp_string in lib/snmp.php.
Code: Select all
$string = trim(ereg_replace(".*= ?", "", $string));
On some equipements, the SNMP ifAlias value contains the '=' character.
Code: Select all
Example :
.1.3.6.1.2.1.31.1.1.1.18.109 = STRING: === SOME TEXT ===
Code: Select all
$string = trim(ereg_replace("^[^ ]* ?= ?", "", $string));
If you have a better regex, tell me.
Maybe you could change it in future versions.
cheers