示例#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")
示例#2
0
文件: agent.py 项目: wk8/dd-agent
 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"
         )
示例#3
0
    def start(self):
        if self.is_enabled():
            JMXFiles.clean_exit_file()

        super(JMXFetchProcess, self).start()
示例#4
0
 def run(self):
     if self.is_enabled:
         JMXFiles.clean_exit_file()
         self.jmx_daemon.run()
示例#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()