def main():
    argp = SNMPSkeletton.default_args('Check temperature on Dell.')
    args = argp.parse_args()
    check = nagiosplugin.Check(
        DellTemp(args.host, args.port, args.community, args.version),
        nagiosplugin.ScalarContext('alert_temp', args.warning, args.critical))
    check.main()
def main():
    argp = SNMPSkeletton.default_args('Check CPU on H3C.')
    args = argp.parse_args()
    check = nagiosplugin.Check(
        H3CCpu(args.host, args.port, args.community, args.version),
        nagiosplugin.ScalarContext('alert_cpu_percent', args.warning,
                                   args.critical))
    check.main()
def main():
    argp = SNMPSkeletton.default_args('Check sessions on Alteon.')
    args = argp.parse_args()
    check = nagiosplugin.Check(
        AlteonSession(args.host, args.port, args.community, args.version),
        nagiosplugin.ScalarContext('alert_session', args.warning,
                                   args.critical))
    check.main()
Example #4
0
def main():
    argp = SNMPSkeletton.default_args('Check memory on Alteon.')
    args = argp.parse_args()
    check = nagiosplugin.Check(
        AlteonMem(args.host, args.port, args.community, args.version),
        nagiosplugin.ScalarContext('alert_mem_percent', args.warning,
                                   args.critical))
    check.main()
def main():
    argp = SNMPSkeletton.default_args('Check temperature on Cisco ASR.')
    args = argp.parse_args()
    check = nagiosplugin.Check(
        CiscoAsrTemp(args.host, args.port, args.community, args.version),
        nagiosplugin.ScalarContext('alert_temp',
                                   args.warning,
                                   args.critical,
                                   fmt_metric='alert_temp is {value}'))
    check.main()
Example #6
0
def main():
    argp = SNMPSkeletton.default_args('Check memory on Cisco Nexus.')
    args = argp.parse_args()
    check = nagiosplugin.Check(
        CiscoNexusMem(args.host, args.port, args.community, args.version),
        nagiosplugin.ScalarContext('alert_mem_percent',
                                   args.warning,
                                   args.critical,
                                   fmt_metric='alert_mem_percent is {value}%'))
    check.main()
def main():
    argp = SNMPSkeletton.default_args('Check memory on Sun.')
    args = argp.parse_args()
    check = nagiosplugin.Check(
        SunMem(args.host, args.port, args.community, args.version),
        nagiosplugin.ScalarContext('alert_mem',
                                   args.warning,
                                   args.critical,
                                   fmt_metric='alert_mem is {value}%'),
        nagiosplugin.ScalarContext('graph_swap'))
    check.main()
Example #8
0
def main():
    argp = SNMPSkeletton.default_args('Check tunnel sessions on Fortinet.')
    argp.add_argument('--tunnel',
                      '-T',
                      type=int,
                      required=True,
                      help='Oid tunnel Indice')

    args = argp.parse_args()
    check = nagiosplugin.Check(
        FortinetTunnel(args.host, args.port, args.community, args.version,
                       args.tunnel), FortinetTunnelContext('state_tunnel'))
    check.main()
Example #9
0
def main():
    argp = SNMPSkeletton.default_args('Check storage on Windows file systems.')
    argp.add_argument('--filesystem', '-f',
                      help='ID Filesystem'),
    args = argp.parse_args()
    check = nagiosplugin.Check(
        WinStorage(args.host, args.port, args.community,
                   args.version, args.filesystem),
        nagiosplugin.ScalarContext('alert_fs_percent',
                                   args.warning, args.critical),
        nagiosplugin.ScalarContext('fs_used'),
        nagiosplugin.ScalarContext('fs_total'))
    check.main()
def main():
    argp = SNMPSkeletton.default_args('Check CPU on Cisco ASA.')
    args = argp.parse_args()
    check = nagiosplugin.Check(CiscoAsaSession(args.host,
                                               args.port,
                                               args.community,
                                               args.version),
                               nagiosplugin.ScalarContext('ras',
                                                          args.warning,
                                                          args.critical),
                               nagiosplugin.ScalarContext('ipsec',
                                                          args.warning,
                                                          args.critical),
                               nagiosplugin.ScalarContext('ssl',
                                                          args.warning,
                                                          args.critical))
    check.main()