RE: General log to trap utility?
"Sorrell, Al" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <3899F44EE8372C44926752C5C84C13D3016D91EC97@OMTCP36040.corp.troweprice.net> |
>I have several dozen applications, mix of programming language, that i >want to trigger traps on certain events. Each of these apps can write >to syslog. I was thinking of writing a tool that tailed the >/var/log/messages file and grepped for pattern and on matching, called >snmptrap. I might start w/a bash script, but rewrite it in c with >pcre and net-snmp libs because it should be fairly efficient. Has >anyone considered this before, is there already a tool for this, or >maybe there is a better way? Thanks. Why not take a look at SEC (Simple Event Correlator http://simple-evcorr.sourceforge.net/ ). While this doesn't directly send traps (use your favorite trap sender from net-snmp or elsewhere), it does handle file-reading, event correlation, regex, etc. Al T. Rowe Price (including T. Rowe Price Group, Inc. and its affiliates) and its associates do not provide legal or tax advice. Any tax-related discussion contained in this e-mail, including any attachments, is not intended or written to be used, and cannot be used, for the purpose of (i) avoiding any tax penalties or (ii) promoting, marketing, or recommending to any other party any transaction or matter addressed herein. Please consult your independent legal counsel and/or professional tax advisor regarding any legal or tax issues raised in this e-mail. The contents of this e-mail and any attachments are intended solely for the use of the named addressee(s) and may contain confidential and/or privileged information. Any unauthorized use, copying, disclosure, or distribution of the contents of this e-mail is strictly prohibited by the sender and may be unlawful. If you are not the intended recipient, please notify the sender immediately and delete this e-mail. ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ 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