info only if no nagios command is defined
This commit is contained in:
@@ -81,7 +81,7 @@ class NagiosRunnerPlugin(MonitorPlugin):
|
|||||||
|
|
||||||
# Validate commands
|
# Validate commands
|
||||||
if not self.commands:
|
if not self.commands:
|
||||||
self.logger.warning(
|
self.logger.info(
|
||||||
"No Nagios commands configured. Add 'nagios_runner.commands' to config."
|
"No Nagios commands configured. Add 'nagios_runner.commands' to config."
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -94,7 +94,7 @@ class NagiosRunnerPlugin(MonitorPlugin):
|
|||||||
self.logger.info(f"Initializing {self.name} plugin")
|
self.logger.info(f"Initializing {self.name} plugin")
|
||||||
|
|
||||||
if not self.commands:
|
if not self.commands:
|
||||||
self.logger.error("No Nagios commands configured")
|
self.logger.info("No Nagios commands configured")
|
||||||
return False
|
return False
|
||||||
|
|
||||||
self.logger.info(f"Configured to run {len(self.commands)} Nagios plugin(s)")
|
self.logger.info(f"Configured to run {len(self.commands)} Nagios plugin(s)")
|
||||||
|
|||||||
Reference in New Issue
Block a user