Problem with snmp_alarm_register()

2011-10-12 Thread ESWAR RAO
Hi All, In my subagent code , I registered a call back function do_alarm() which handles the events using snmp_alarm_register() . As per my understanding from the snmp_alarm_register() code, the call back function once called should be called again only after 5 sec. But from the logs I could see t

snmpd stops responding after some time

2011-09-08 Thread ESWAR RAO
Hi All, I am using net-snmp version 5.4.3 and the openhpi subagent. At the beginning both snmpd and the subagent were running OK and I was able to query snmpget/walk on all mibs. But, after a while (maybe a few hours or few days), snmpd starts becoming not responsive from time to time. snmpget -

Reg. run_alarms() in agent_check_and_process()

2011-08-08 Thread ESWAR RAO
Hi , Please let me know why run_alarms(); is used in agent_check_and_process(); In our sub-agent code we have a scenario like: In the sub-agent code: .. snmp_alarm_register (5, SA_REPEAT, do_alarm, NULL); .. while (keep_running) { rc = agent_check_and_process (1); }

error on subcontainer '' insert (-1) with severity LOG_DEBUG in 5.6.1

2011-04-19 Thread ESWAR RAO
Hi, I am using Net snmp 5.4 version and the openhpi subagent. >From the logs I could see the error messages(error on subcontainer '' insert (-1)) while adding rows for only the event table (saHpiEventTable). >From the net-snmp code: int CONTAINER_INSERT(netsnmp_container *x, const void *k) { .

error on subcontainer '' insert (-1)

2011-04-18 Thread ESWAR RAO
Hi, I am using Net snmp 5.4 version and the openhpi subagent. >From the logs I could see the error messages(error on subcontainer '' insert (-1)) that are observed only while adding rows for one event table (saHpiEventTable). >From the net-snmp code: int CONTAINER_INSERT(netsnmp_container *x, c

Re: Reg. DEBUGMSGTL messages of the sub-agent

2011-03-07 Thread ESWAR RAO
Hi Alec, Thanks for the response. But the openhpi-subagent code doesn't accept the -DALL flag. It's restricted to accept only certain flags. As I mentioned, in the subagent code registration of debug token is done programatically as mentioned below (openhpi-subagent). . debug_

Reg. DEBUGMSGTL messages of the sub-agent

2011-03-07 Thread ESWAR RAO
Hi, My code is running as a subagent(openhpi-subagent). When I am running the subagent , I can see only the messages of snmp_log(...). Please let me know if there is any means so that I can observe the DEBUGMSGTL messages of the subagent code. In my subagent code registration of debug token is d

Reg. DEBUGMSGTL messages of the sub-agent

2011-01-17 Thread ESWAR RAO
Hi, My code is running as a subagent(openhpi-subagent). I have started the net-snmp master agent with debugging enabled. (/usr/sbin/snmpd -Lsd -Lf /var/log/snmp1.log -p /var/run/snmpd.pid -a -D ) When I am running the subagent with -d option (or in /var/log/messages), I can see only the messages