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"); }
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_46(); printf(" -T, --tcp=PORT\n"); printf(" Count TCP sockets on port PORT. Port 0 for all sockets.\n"); printf(" -U, --udp=PORT\n"); printf(" Count UDP sockets on port PORT. Port 0 for all sockets.\n"); printf(" -R, --raw=PORT\n"); printf(" Count RAW sockets on port PORT. Port 0 for all sockets.\n"); print_help_warn("socket count", "1000"); print_help_crit("socket count", "1024"); }