|
|
Choosing A Webhost: |
RE: Barnyard MySQL DB Reconnection Problem: msg#00006security.ids.snort.barnyard.user
I have been using barnyard (0.2.0 b32) on many sensors back to a mysql (4.1.7) central db for years and have never had the problem you describe. Sometimes we could have zero activity for days at a remote location over the weekend, or there could be network outages etc., but barnyard always works. I don't use OpenSSL, instead my connections are through ipsec tunnels. I know it seems like a barnyard problem according to your description and the logs, but I am not so sure. Test it without the ssl maybe? Or maybe it's even something with your MySQL? Randy. -----Original Message----- From: barnyard-users-admin@xxxxxxxxxxxxxxxxxxxxx [mailto:barnyard-users-admin@xxxxxxxxxxxxxxxxxxxxx]On Behalf Of Steven Adair Sent: May 11, 2006 9:57 AM To: barnyard-users@xxxxxxxxxxxxxxxxxxxxx Subject: [Barnyard-users] Barnyard MySQL DB Reconnection Problem Howdy, Maybe someone can help me out with this problem as I am sure it must be a pretty common one (or so I would think). Quick info before I start: Senor: Version 2.4.3 (Build 26) Sensor: Barnyard Version 0.2.0 (Build 32) DB Server: MySQL: 5.0.21 with OpenSSL enabled. I use snort + barnyard to write to my remote MySQL db (remote being on the same subnet but another machine). Alerting, logging, and inserting into the database works fine. However, after period of inactivity, or if the database is restarted -- we lose connection at some point. The next time a snort alert is triggered and barynard attempts to write to the database I get this problem: myhost1 barnyard[71485]: Lost connection to MySQL server. Reconnecting It doesn't appear to actually ever try and reconnect or anything. Short of restarting barnyard I can't see a way to fix this. This doesn't seem like it should be normal behavior. Is there a way to have barnyard /actually/ reconnect to the database? Why must it be restarted in order to truly reconnect. Is there a work around or fix for this? I've found limited responses on the web, but I would have to think everyone using a remote db + barnyard has to have this problem. Besides restarting barnyard every so often or monitoring /var/log/messages for "Lost connection to MySQL server." and restarting the process -- is there another way to correct this issue? Thanks ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Barnyard-users mailing list Barnyard-users@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/barnyard-users ########################################### This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange. For more information, connect to http://www.F-Secure.com/ ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Barnyard MySQL DB Reconnection Problem, Steven Adair |
|---|---|
| Next by Date: | RE: Barnyard MySQL DB Reconnection Problem, Steven Adair |
| Previous by Thread: | Barnyard MySQL DB Reconnection Problem, Steven Adair |
| Next by Thread: | RE: Barnyard MySQL DB Reconnection Problem, Steven Adair |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |