info only if no nagios command is defined

This commit is contained in:
Andreas Wrede
2026-04-10 08:14:31 -04:00
parent ba27d2e300
commit e9aa7a6f8b
+2 -2
View File
@@ -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)")