CFV: dskAvail and negative values (FreeBSD ufs) (bug 3487953)

2012-09-03 Thread Niels Baggesen
The attached patch is a simple fix for this bug, just zeroing the avail field when it would go negative. A better fix, after 5.7.2, would be to allow the negative value to pass through by changing the avail field from unsigned to signed. The MIB declares the object as signed already. /Niels --

Re: 5.7.1 AIX agent link fails on Undefined sysmbols

2012-09-03 Thread Niels Baggesen
On Mon, Sep 03, 2012 at 08:20:02PM -0400, Nathan, Mukund wrote: > CMSG_SPACE and CMSG_LEN are macro defined in an include file > > ~/net-snmp-5.7.1/include/net-snmp/library/snmp_transport.h > > CMSG_SPACE is defined for solaris platform and sys/socket.h is expected for > non solaris. Are the two

5.7.1 AIX agent link fails on Undefined sysmbols

2012-09-03 Thread Nathan, Mukund
Hi Snmp coders: I updated my net-snmp from 5.4.1 to 5.7.1. The library build worked fine on Linux ( Ubuntu 10.4). On AIX there is some difficulty when it comes to the ~/net-snmp-5.7.1/agent , linking snmpd. The build does not go past this point. I see the following error libtool: link: gcc

function calling error outside INIT

2012-09-03 Thread Jatin Bodarya
In below code I m using net-snmp subagent method to start the process. But when I am trying to call any other function inside send_highCpuUsage_trap() it is returning me garbage value !!! can Yyou tell me what is the reason behind it ? and how can i call another function inside this function ??