Пример #1
0
void print_help (void) {
    print_revision();
    print_copyright();

    printf("\n");

    printf("Check description: %s", progdesc);

    printf("\n\n");

    print_usage();

    print_help_default();
    print_help_host();
#ifdef USE_IPV6
    print_help_46();
#endif //USE_IPV6

    printf(" -p, --packets=[NUM]\n");
    printf("      Number of packets to send. (Default to 5)\n");
    printf(" -q, --quick\n");
    printf("      Return as soon as OK is reached.\n");
    printf(" -i, --interval=[SEC]\n");
    printf("      Number of secounds to wait between packets. (Default to 1)\n");
    printf(" -I, --interfact=[DEV]\n");
    printf("      Set the outgoing network device to use.\n");
    printf(" -T, --ttl=[NUM]\n");
    printf("      Set TTL of packets to given value.\n");
    printf(" -w, --warning=<rta>,<pl>%%\n");
    printf("      Return warning if check exceeds TRA or Packet loss limit.\n");
    printf("            (Default to 90ms and 10%%)\n");
    printf(" -c, --critical=<rta>,<pl>%%\n");
    printf("      Return critical if check exceeds TRA or Packet loss limit\n");
    printf("            (Default to 100ms and 20%%)\n");
}
Пример #2
0
void print_help_snmp(void) {
    print_help_host();
    printf(" -C, --community=COMMUNITY\n");
    printf("      SNMP community (defaults to public, used with SNMP v1 and v2c)\n");
    printf(" -S, --snmp=VERSION\n");
    printf("      SNMP version to use. (default to v1)\n");
    printf("      1 for SNMP v1\n");
    printf("      2 for SNMP v2c (use get_bulk for less overhead)\n");
    printf("      3 for SNMP v3 (requires --secname option)\n");
    printf(" -L, --seclevel=SECLEVEL\n");
    printf("      Security Level to use. (noAuthNoPriv, authNoPriv , or authPriv)\n");
    printf(" -U, --secname=SECNAME\n");
    printf("      User name for SNMPv3 context.\n");
    printf(" -K, --context=CONTEXT\n");
    printf("      SNMPv3 context name (default is empty string)\n");
    printf(" -A, --authpass=PASSWORD\n");
    printf("      Authentication password. (Clear text ASCII or localized key in hex\n");
    printf("      with 0x prefix generated by using \"snmpkey\" utility.)\n");
    printf(" -a, --authproto=PROTOCOL\n");
    printf("      Authentication protocol (MD5 or SHA1)\n");
    printf(" -X, --privpass=PASSWORD\n");
    printf("      Privacy password. (Clear text ASCII or localized key in hex\n");
    printf("      with 0x prefix generated by using \"snmpkey\" utility.)\n");
    printf(" -T, --snmptimeout=TIMEOUT\n");
    printf("      SNMP request timeout.\n");
    printf(" -R, --snmpretries=RETRIES\n");
    printf("      SNMP request retries.\n");
}
void print_help (void) {
    print_revision();
    print_revision_ldns();
    print_copyright();

    printf("\n");

    printf("Check description: %s", progdesc);

    printf("\n\n");

    print_usage();

    print_help_default();
    print_help_host();
    printf(" -D, --domain=DOMAIN\n");
    printf("      The name of the domain to check.\n");
    printf("     --norecursion\n");
    printf("      Do not test for disabled recursion.\n");
    printf("     --notcp\n");
    printf("      Do not test TCP queries.\n");
    printf("     --noudp\n");
    printf("      Do not test UDP queries.\n");
    printf("     --noaxfrn\n");
    printf("      Do not test for disabled AXFR.\n");
}
void print_help (void) {
    print_revision();
    print_revision_ldns();
    print_copyright();

    printf("\n");

    printf("Check description: %s", progdesc);

    printf("\n\n");

    print_usage();

    print_help_default();
    print_help_host();
    print_help_ldns();
    printf(" -D, --domain=DOMAIN\n");
    printf("      The name of the domain to check.\n");
    printf(" -T, --trace-from=DOMAIN\n");
    printf("      The name of the domain to trace from. (default: .)\n");
    printf(" -k, --trusted-keys=FILE\n");
    printf("      File to read trust-anchors from.\n");
    printf(" -R, --resolver=HOST\n");
    printf("      Host name or IP Address of the resolver to use.\n");

    printf("\n");
    print_help_ldns_keyfile();
}
Пример #5
0
void print_help_mysql(void) {
    print_help_host();
    printf(" -u, --user=USER\n");
    printf("      The MySQL user name to use when connecting to the server.\n");
    printf(" -p, --password=PASSWORD\n");
    printf("      The password to use when connecting to the server.\n");
    printf(" -D, --database=DATABASE\n");
    printf("      The database to use.\n");
    printf(" -P, --port=PORT\n");
    printf("      The TCP/IP port number to use for the connection.\n");
    printf(" -S, --socket\n");
    printf("      For connections to localhost, the Unix socket file to use.\n");
}
Пример #6
0
void print_help (void) {
    print_revision();
    print_revision_curl();
    print_copyright();

    printf("\n");

    printf("Check description: %s", progdesc);

    printf("\n\n");

    print_usage();

    print_help_default();
    print_help_host();
    print_help_port("UNDEF");
    printf(" -F, --file=FILENAME\n");
    printf("      The name of the file to download.\n");
    print_help_warn_time("5 sec");
    print_help_crit_time("9 sec");
}
void print_help (void) {
    print_revision();
    print_revision_curl();
    print_copyright();

    printf("\n");

    printf("Check description: %s", progdesc);

    printf("\n\n");

    print_usage();

    print_help_default();
    print_help_host();
    print_help_port("80");
    printf(" -u, --url=URL\n");
    printf("      URL of mod_status.\n");
    print_help_warn("open slots", "none");
    print_help_crit("open slots", "none");
}