Example #1
0
 def run(self):
     from config import initialize_logging
     initialize_logging('jmxfetch')
     if self.is_enabled:
         log.debug("Windows Service - Starting JMXFetch")
         JMXFiles.clean_exit_file()
         self.jmx_daemon.run()
     else:
         log.info("Windows Service - Not starting JMXFetch: no valid configuration found")
Example #2
0
 def run(self):
     from config import initialize_logging
     initialize_logging('jmxfetch')
     if self.is_enabled:
         log.debug("Windows Service - Starting JMXFetch")
         JMXFiles.clean_exit_file()
         self.jmx_daemon.run()
     else:
         log.info(
             "Windows Service - Not starting JMXFetch: no valid configuration found"
         )
Example #3
0
    def start(self):
        if self.is_enabled():
            JMXFiles.clean_exit_file()

        super(JMXFetchProcess, self).start()
Example #4
0
 def run(self):
     if self.is_enabled:
         JMXFiles.clean_exit_file()
         self.jmx_daemon.run()
Example #5
0
    def start(self):
        if self.is_enabled():
            JMXFiles.clean_exit_file()

        super(JMXFetchProcess, self).start()
 def run(self):
     if self.is_enabled:
         JMXFiles.clean_exit_file()
         self.jmx_daemon.run()