Hi Mike
Mike Ayers wrote: >> From: Traiano Welcome [mailto:[email protected]] >> Sent: Wednesday, September 02, 2009 1:40 AM >> > > > >> Are there any widely used scripts for extracting performance statistics >> from snmptrapd and it's logs? We would like to monitor the trap >> collector and get stats like the following: >> >> 1. What hosts are sending traps to the collector, and what is the >> "highest sending" host by volume for a given day >> 2. Which host is sending traps at the highest rate? >> 3. What is the most frequently sent trap in any given time interval (15 >> mins - 60 mins) >> > > Intermediary logic ("glue logic") like this is rarely prepackaged, > because it is specific to the data generator, the target presentation system, > and the data you wish to display. You may want to review the available free > NMS packages to see what they may provide "out of the box". > > Note that community based (v1/v2c) traps do not contain source > identifiers. > > It looks like best option would be to script something to parse snmptrapd logs and draw these stats periodically. Looking at my snmptrapd.log, I see traps come through with what seems to identify the sending host: " [UDP: [196.21.61.1]:64714]": --- 2009-09-03 11:33:45 <UNKNOWN> [UDP: [196.21.61.1]:64714]: .1.3.6.1.2.1.1.3.0 = Timeticks: (325635303) 37 days, 16:32:33.03 .1.3.6.1.6.3.1.1.4.1.0 = OID: .1.3.6.1.6.3.1.1.5.5 .1.3.6.1.4.1.9.2.1.5.0 = IpAddress: 196.26.130.34 .1.3.6.1.4.1.9.9.412.1.1.1.0 = INTEGER: ipv4(1) .1.3.6.1.4.1.9.9.412.1.1.2.0 = STRING: --- Although the host specified above might be proxy for other hosts, I'd be able to differentiate knowing the location of the agents, and still draw some kind of rough statistics on the 'highest sending proxy'. Does this sound reasonable? >> Also, are there any tools available to monitor the resource utilisation >> of snmptrapd, i.e cpu, memory? >> > > Use whatever you use to monitor any other process on your system. > There's nothing special about snmptrapd that way. > > I was hoping for builtin features :-) Anyhow, I think the best option here would be to use a generic munin plugin to monitor snmptrapd. > HTH, > > Mike > > Many Thanks, T.G.W ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ 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
