[Nagiosplug-checkins] nagiosplug/plugins check_icmp.c,1.4,1.5

Stanley Hopcroft stanleyhopcroft at users.sourceforge.net
Mon Jan 31 23:35:41 CET 2005


Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14202

Modified Files:
	check_icmp.c 
Log Message:
Revised check_icmp (1.0) from A Ericsson.

Index: check_icmp.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_icmp.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- check_icmp.c	25 Dec 2004 23:17:44 -0000	1.4
+++ check_icmp.c	1 Feb 2005 07:33:13 -0000	1.5
@@ -1,1416 +1,1199 @@
 /*
  * $Id$
  *
- * This is a hack of fping2 made to work with nagios.
- * It's fast and removes the necessity of parsing another programs output.
+ * Author: Andreas Ericsson <ae at op5.se>
  *
- * VIEWING NOTES:
- * This file was formatted with tab indents at a tab stop of 4.
+ * License: GNU GPL 2.0 or any later version.
  *
[...2346 lines suppressed...]
-                  [-w <warning threshold>] [-c <critical threshold>]\n\
-                  [-D <debug>] \n", progname);
+	puts("\nThe -H switch is optional. Naming a host (or several) to check is not.\n\n"
+		 "Threshold format for -w and -c is 200.25,60% for 200.25 msec RTA and 60%\n"
+		 "packet loss.  The default values should work well for most users.\n"
+		 "You can specify different RTA factors using the standardized abbreviations\n"
+		 "us (microseconds), ms (milliseconds, default) or just plain s for seconds.\n\n"
+		 "Threshold format for -d is warn,crit.  12,14 means WARNING if >= 12 hops\n"
+		 "are spent and CRITICAL if >= 14 hops are spent.\n"
+		 "NOTE: Some systems decrease TTL when forming ICMP_ECHOREPLY, others do not.\n\n"
+		 "The -v switch can be specified several times for increased verbosity.\n\n"
+		 "Long options are currently unsupported.\n\n"
+		 "Options marked with * require an argument\n");
+
+	puts("The latest version of this plugin can be found at http://oss.op5.se/nagios\n"
+		 "or https://devel.op5.se/oss until the day it is included in the official\n"
+		 "plugin distribution.\n");
+
+	exit(3);
 }





More information about the Commits mailing list