Пример #1
0
def main():
    """Parse args and check the netlinks."""
    args = parse_args()
    crit_thr = {
        "operstate": args.operstate.lower(),
        "mtu": args.mtu,
        "speed": args.speed,
    }
    try_check(check_iface, args.iface, args.skip_unfound_ifaces, crit_thr)
Пример #2
0
def main():
    nagios_plugin3.try_check(check_snaps_installed)
    nagios_plugin3.try_check(verify_remote_connection_to_apiserver)
    print("OK - API server is up and accessible")