Created
June 5, 2012 18:53
-
-
Save alq666/2876935 to your computer and use it in GitHub Desktop.
Nagios perf data debug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/checks/datadog.py b/checks/datadog.py | |
index 39e4435..2870b93 100644 | |
--- a/checks/datadog.py | |
+++ b/checks/datadog.py | |
@@ -305,7 +305,9 @@ class NagiosPerfData(object): | |
nagios_perf_config = config.get('nagiosPerfCfg', None) | |
parsers = [] | |
if nagios_perf_config: | |
+ logger.debug("Nagios: perf_data_config=%s" % nagios_perf_config) | |
nagios_config = cls.parse_nagios_config(nagios_perf_config) | |
+ logger.debug("Nagios: perf_data_parsed=%s" % nagios_config) | |
host_parser = NagiosHostPerfData.init(logger, nagios_config) | |
if host_parser: | |
@@ -314,7 +316,10 @@ class NagiosPerfData(object): | |
service_parser = NagiosServicePerfData.init(logger, nagios_config) | |
if service_parser: | |
parsers.append(service_parser) | |
- | |
+ logger.debug("Nagios: parsers=%s" % parsers) | |
+ else: | |
+ logger.info("Nagios: no perfdata configured") | |
+ | |
return parsers | |
@staticmethod |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment