1. Ben Hartshorne
  2. ganglia-logtailer


gr...@eniac43.lindenlab.com  committed a1a2195

adding a comment placeholder for where the lockfile logic should go. removed extraneous whitespace.

  • Participants
  • Parent commits 7be66f1
  • Branches default

Comments (0)

Files changed (1)

File src/ganglia-logtailer

View file
     # import and instantiate the class from the module passed in.  Files and Class names must be the same.
-        sys.path.append("/usr/local/share/ganglia-logtailer")       
+        sys.path.append("/usr/local/share/ganglia-logtailer")
         module = __import__(class_name)
         parser = getattr(module, class_name)()
     except Exception, e:
         print "Failed to instantiate parser (line %s): %s" % (lineno(), e)
+    # check for lock file so we don't run multiple copies of the same parser simultaneuosly
+    # this will happen if the log parsing takes more time than the cron period
+    # which is likely on first run when the logfile is huge
+    # FIXME I need to actually add this.
     # get input to parse
     if ( mode == 'daemon' ):
         # open the log file for tailing