[OpenSIPS-Devel] [ opensips-Bugs-3584278 ] regression in snmpstats module
SourceForge.net
noreply at sourceforge.net
Mon Nov 5 19:23:13 CET 2012
Bugs item #3584278, was opened at 2012-11-05 10:07
Message generated for change (Settings changed) made by bogdan_iancu
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=3584278&group_id=232389
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: 1.8.x
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: ledda (ledda)
>Assigned to: Bogdan-Andrei Iancu (bogdan_iancu)
Summary: regression in snmpstats module
Initial Comment:
Unable to browse SNMP information.
snmpwalk -v 1 -c public 127.0.0.1 OPENSER-REG-MIB::openser
OPENSER-SIP-COMMON-MIB::openserSIPProtocolVersion.0 = STRING: SIP/2.0
Error in packet.
Reason: (genError) A general failure occured
Failed object: OPENSER-SIP-COMMON-MIB::openserSIPProtocolVersion.0
When the code changed back to the way how it was in v1.6.4 it works fine.
opensips-1.6.4-2-tls/modules/snmpstats/openserSIPCommonObjects.c
fgets(buffer, SNMPGET_MAX_BUFFER, theFile);
opensips-1.8.2-tls/modules/snmpstats/openserSIPCommonObjects.c
if (fgets(buffer, SNMPGET_MAX_BUFFER, theFile)==NULL)
return SNMP_ERR_GENERR;
----------------------------------------------------------------------
>Comment By: Bogdan-Andrei Iancu (bogdan_iancu)
Date: 2012-11-05 10:23
Message:
Hi Ledda,
According to man::
gets() and fgets() return s on success, and NULL on error or when
end
of file occurs while no characters have been read.
So, the test added on fgets seems to be valid to me. Now, the question is
if you have the file it tries to read from:
/tmp/openSER_SNMPAgent.txt
Is there any valid data in there ?
Regards,
Bogdan
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=3584278&group_id=232389
More information about the Devel
mailing list