Q: Traps Problem

Frank Fock Frank.Fock____t-online.de
Sat Oct 14 11:02:50 CEST 2000


Hi Manjunath,

The correct snmpTrapOID is 1.3.6.1.6.3.1.1.4.1.0. I assume
that you are using an older version of SNMP++, as the current
version includes this fix already.

manjunath ramaiah wrote:

> first varbind is sysuptime and second is snmptrapid . In the above
> function
> the sysuptime is correct . But the OID of snmpTrap id is set as
> 1.3.6.1.6.3.1.1.5  which is wrong as the OID of snmpTrapid is
> 1.3.6.1.6.3.1.1.4.1.0.
>
> One more observation
> ---------------------
> If snmpv1 traps are sent then agent_address field is added to the
> pdu in the above function . To get the agent address first gethostname
> call is made and then gethostbyname call is made to resolve the
> name to ipaddress . If there is no entry in the /etc/hosts file
> for the hostname of the M/c sending the trap then gethostbyname()
> call is returning NULL . As a result the agent address field in the
> pdu is FF FF FF FF.
>
>

I will correct this for the next update.

Best regards,
Frank

--
Frank Fock - AGENT++
Email: frank____fock.de
Fax: +49 7195 177108





More information about the AGENTPP mailing list