Loading mnpw/__init__.py +3 −3 Original line number Diff line number Diff line Loading @@ -112,15 +112,15 @@ def main(): # noqa: MC0001 elif check.ExitCode == nagios.NagiosCode.WARNING: logging.info("Check status is WARNING.") if args.warn and not args.dry_run: notify(f"{check.Output} on {HOSTNAME}.") notify(f"({HOSTNAME} {check.Output}") elif check.ExitCode == nagios.NagiosCode.CRITICAL: logging.info("Check status is CRITICAL.") if not args.dry_run: notify(f"{check.Output} on {HOSTNAME}.") notify(f"({HOSTNAME} {check.Output}") elif check.ExitCode == nagios.NagiosCode.UNKNOWN: logging.info("Check status is UNKNOWN.") if args.unknown and not args.dry_run: notify(f"{check.Output} on {HOSTNAME}.") notify(f"({HOSTNAME} {check.Output}") else: logging.info( f"Check status is invalid for a Nagios plugin ({check.ExitCode})." Loading Loading
mnpw/__init__.py +3 −3 Original line number Diff line number Diff line Loading @@ -112,15 +112,15 @@ def main(): # noqa: MC0001 elif check.ExitCode == nagios.NagiosCode.WARNING: logging.info("Check status is WARNING.") if args.warn and not args.dry_run: notify(f"{check.Output} on {HOSTNAME}.") notify(f"({HOSTNAME} {check.Output}") elif check.ExitCode == nagios.NagiosCode.CRITICAL: logging.info("Check status is CRITICAL.") if not args.dry_run: notify(f"{check.Output} on {HOSTNAME}.") notify(f"({HOSTNAME} {check.Output}") elif check.ExitCode == nagios.NagiosCode.UNKNOWN: logging.info("Check status is UNKNOWN.") if args.unknown and not args.dry_run: notify(f"{check.Output} on {HOSTNAME}.") notify(f"({HOSTNAME} {check.Output}") else: logging.info( f"Check status is invalid for a Nagios plugin ({check.ExitCode})." Loading