net-snmp installation

2008-07-07 Thread deka aditia
OK, i don't know where i should start this topic .. here is the story: I need to enhance an agent with some tutorial in http://.net-snmp.org >From what i got in that tutorial, i've to compile my development file (*.c and *.h) with net-snmp source to provide new agent that i want but my OS is al

Re: Agent development

2008-07-07 Thread deka aditia
On 7/7/08, Dave Shield <[EMAIL PROTECTED]> wrote: > > 2008/7/7 deka aditia <[EMAIL PROTECTED]>: > > > if it is, then what should i do when i have some scallar object (up to 1) > > > > should i make an exutable for each of them and link to main agent ?? > > > See http://www.net-snmp.org/wiki/index

[patch] logmatch.c enhancement

2008-07-07 Thread Otmar Lendl
Hi, playing around with Cacti and the logmatch feature of net-snmp (see http://lendl.priv.at/blog/2008/06/24/watching-logfiles-with-cacti/ ) I found the logmatch feature of snmpd to be simple and powerful. One thing was missing, though: It was easy to e.g. count the number of mails received, but

Re: configure manager's ip, trap receiver's ip and community at runtime via external application

2008-07-07 Thread Tewen Hsieh
Hi all, Hi Dave, Thanks for reply. Is there any example code that can parse snmpd.conf? It should find "com2sec", and keep processing following ip and community. Also it should find "trap2sink" and keep processing following ip, community and port. I find an example code as following: void do_n

Re: Agent development

2008-07-07 Thread Dave Shield
2008/7/7 deka aditia <[EMAIL PROTECTED]>: > if it is, then what should i do when i have some scallar object (up to 1) > > should i make an exutable for each of them and link to main agent ?? See http://www.net-snmp.org/wiki/index.php/FAQ:Coding_11 > is there any way that more comfortable which

Re: configure manager's ip, trap receiver's ip and community at runtime via external application

2008-07-07 Thread Dave Shield
2008/7/7 Tewen Hsieh <[EMAIL PROTECTED]>: > Question 1: > All these three tables are used to store *trap* destination and > configuration information, Yes - that is what you asked about. > which table is used to store *manager's* ip and > configuration information (manager means the NMS >

Re: configure manager's ip, trap receiver's ip and community at runtime via external application

2008-07-07 Thread Tewen Hsieh
Hi all, Hi Dave, Thanks for your reply. I have checked the source code (mibgroup/target/snmpTargetAddrEntry.c, snmpTargetParamEntry.c and snmpNotifyTable.c). Now I know them more clearly, but I still have many questions. Question 1: All these three tables are used to store *trap* destination an

Re: Agent development

2008-07-07 Thread deka aditia
This is the valid link > > > - Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source

Re: Agent development

2008-07-07 Thread deka aditia
{ I'm sorry, i've made this mistake again } On 7/7/08, Dave Shield <[EMAIL PROTECTED]> wrote: > > 2008/7/7 deka aditia <[EMAIL PROTECTED]>: > > > Anyone know how to write mib module for a scalar object ? > > just by using mib2c -c mib2c.scalar.conf $name just producing 2 file .. > > (object.c an

Re: Agent development

2008-07-07 Thread Dave Shield
2008/7/7 deka aditia <[EMAIL PROTECTED]>: > Anyone know how to write mib module for a scalar object ? > just by using mib2c -c mib2c.scalar.conf $name just producing 2 file .. > (object.c and object.h) That's a good start, yes. > i dont know what should i do ..., it's completely different when

Re: Agent development

2008-07-07 Thread deka aditia
On 7/2/08, Dave Shield <[EMAIL PROTECTED]> wrote: > > 2008/7/2 deka aditia <[EMAIL PROTECTED]>: >> I would suggest that you concentrate on developing a MIB > >> module for your particular needs, and use this within the > >> existing Net-SNMP agent framework. > > > > Now i got what you want, > >

about link up/down trap

2008-07-07 Thread Tewen Hsieh
Hi, I implemented link up/down trap by myself. I downloaded the example code "notification.c" from http://www.net-snmp.org/dev/agent/notification_8c-example.html, and modified it. Every short duration (maybe 10 secs) my callback function checks the operation status to decide whether to send a l