On Mon, 2007-03-12 at 15:39 +0530, Ganesh HS wrote:
> Hi all, 
>          Thanks for your response jmf. 
>               I am using the example programs "notification.c and
> notification.h" provided in the tutorial to generate the  alarms, I am
> using them as a part of the subagent program " example-deamon.c" . i e
> i'm calling the function    
> init_notification() from example-deamon.c. How do I configure my
> snmptrapd to recive the alams generated by notification.c. 

Well, I guess you must:

a) make sure you are sending your notifications to the right host. If
you are using only one computer I guess you must send your
notification/traps to 'localhost' or '127.0.0.1'

b) there are (at least) 2 versions ("styles") of traps: v1 and v2c. v1
traps are 'traps'. V2 traps are 'notifications' (well... maybe this is
not 100% cientifically correct). You must take care about what kind of
traps you send to what kind of trap receivers.

Maybe you should configure snmptrapd to receive all kinds of
notifications/traps arriving from all possible hosts, on all possible
interfaces.... I don't know how this is done but the "snmpconf" program
should be an excelent start point. Also read the manuals... specifically
"man snmptrapd" and "man snmptrapd.conf"...

Cheers
joao
jmf



> 
> Regards,
> Ganesh 
> 
> On 3/12/07, Joao Miguel Ferreira <[EMAIL PROTECTED]>
> wrote:
>         On Mon, 2007-03-12 at 14:15 +0530, Ganesh HS wrote:
>         > Hi ,
>         >
>         >         I am new to netsnmp. When I run "snmptrapd" it gives
>         an error
>         > saying "Warning no access control information configured The
>         reciever 
>         > will *NOT* accept any incoming notifications".
>         
>         Yes there is.
>         
>         You can run the "snmpconf" program (without any command line
>         options)
>         and choose the option "3. snmptrapd.conf"... 
>         
>         In the end be sure to copy the generated file(s) to the right
>         place. In
>         my system it is /etc/snmp/.... yours could be diferent..
>         
>         At the end be sure to restart your daemon.
>         
>         
>         Regards
>         jmf
>         
>         
>         
>         >         Please help me on how configuring the
>         snmptrapd.conf. Is there
>         > any command to configure the snmptrapd like snmpconf in case
>         of snmpd?
>         >
>         > Regards,
>         > -Ganesh
>         >
>         
> ------------------------------------------------------------------------- 
>         > Take Surveys. Earn Cash. Influence the Future of IT
>         > Join SourceForge.net's Techsay panel and you'll get the
>         chance to share your
>         > opinions on IT & business topics through brief surveys-and
>         earn cash 
>         >
>         
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>         > _______________________________________________
>         Net-snmp-users mailing list
>         [email protected] Please see the following
>         page to unsubscribe or change other options:
>         https://lists.sourceforge.net/lists/listinfo/net-snmp-users
>         
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________ Net-snmp-users mailing list 
> [email protected] Please see the following page to 
> unsubscribe or change other options: 
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to