My post from snmp-users. Hopefully someone can explain how I should fix this...
Frans Grotepass wrote: > Hi, Firstus postus We use Net-SNMP for system health inspection. We noticed that our 64 bit apps did not report their pr_size variable from the psinfo struct correctly. Some info on the web shows that checking with a 32 bit application give incorrect values for 64 bit applications. What is the method to get correct values for these variables? OK, reading my previous post, I realise there is some missing info... This variable in psinfo translates to the hrSWRunPerfMem variable. This variable returns correct values for 32bit applications but goes to 0 for 64bit apps on Solaris 10. A 32bit compiled test C program using code similar to that in agent/mibgroup/host/hr_swrun.c also validates this behaviour. If this same application is compiled as 64bit, it gives correct return values of the 64 bit apps. I couldn't find any information on the net-snmp to explain this behaviour. Should I file a bug or must net-snmp be built as a 64 bit binary to solve this problem? We could build a work around using the pr_pctmem in the solaris psinfo struct, but I can not find a matching value in the mibs. It could be that it is not available via net_snmp This value translates to the used memory in a 15 bit fraction. Hope this clarifies my first message a little ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
