Am Mittwoch, 28. November 2012, 15:19:46 schrieb Stefan Billeb: > Hi Everyone, > > I would like to write a second traphandler for using with my Centreon > Monitoring Setup. > What I need is to save a trap in a separate database. > But I can not see any documentation about arguments I can give my script > in the snmptrapd.conf? > > I see that I can configure additional handlers in snmptrapd.conf like this: > > traphandle "oid" /home/stefan/traps/write_to_db.pl "args" > > Is there any documentation on how I can pass arguments like "host" to > the perl script? > > I guess there must be anything or is everything just passed as 1 > argument always to the scripts and I have to parse it myself? > > I just don't get it from the wiki page and example :-( > > Regards, > Stefan
Hi, traps are basically a list of OIDs and values. Your can parse it in your script. Please see traptomail.pl as an example. Greetings, -- Dr. Michael Schwartzkopff Guardinistr. 63 81375 München Tel: (0163) 172 50 98 Fax: (089) 620 304 13 ------------------------------------------------------------------------------ Keep yourself connected to Go Parallel: TUNE You got it built. Now make it sing. Tune shows you how. http://goparallel.sourceforge.net _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users