Re: how to use net-snmp for monitoring java processes in linux

2012-02-14 Thread Dave Shield
On 13 February 2012 00:58, Zain Mirza zain.mi...@hughes.com wrote:   a) i have to write add extra layer in my java processes that interacts with snmpd agent. If so how ? code examples? c) I have to write sub agents? Do I also have to use AgentPro necessarily to generate java stubs for my mib

Re: init_agent() crashing

2012-02-14 Thread rosy
Hi Anand, Thanks for your reply. Actually by debugging the code what I am finding is that..its crashing inside the name_hash(..) func..while executing line hash += tolower((unsigned char)(*cp)); I was assuming, there is some problem with my cross compiler..but when I just wrote a simple program

RE: how to use net-snmp for monitoring java processes in linux

2012-02-14 Thread Zain Mirza
Thanks a lot waqas for your prompt reply. Is there a way i could do the same in java? I am sorry i was not very clear about our limitation to only use java. Keeping this in mind, what will be my way to go? Sent from my HTC Touch Pro2 on the Now Network from Sprint®.

Re: init_agent() crashing

2012-02-14 Thread Bart Van Assche
On Tue, Feb 14, 2012 at 10:08 AM, rosy rosypa...@gmail.com wrote: Thanks for your reply. It did work. But i would like to appreciate if you would let me know why it works.. 0xff in binary is .. and by doing tolower((*cp) 0xff)..it will set the corresponding bits which are 1 in

Re: mib2c.table_data.conf, cache timeout period does'nt seems to change.

2012-02-14 Thread Francois Bouchard
I'm sorry - I don't have the time to try and re-create the rest of the code that's missing here. If you want assistance with tracking down the problem, can you please post the *complete* code files, so that we can try compiling them into a working module. Here is the code for a cached snmp

Re: mib2c.table_data.conf, cache timeout period does'nt seems to change.

2012-02-14 Thread Francois Bouchard
According to the documentation ( http://www.net-snmp.org/dev/agent/group__cache__handler.html), a changing the flags will change the behavior of the cache system. After some testing of my module, it is possible to state that the agent's data change almost instantly (when the external data