[Nagiosplug-checkins] nagiosplug/plugins check_cluster.c,1.7,1.8

Matthias Eble psychotrahe at users.sourceforge.net
Wed Jun 20 11:01:11 CEST 2007


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

Modified Files:
	check_cluster.c 
Log Message:
added -V/--version to check_cluster


Index: check_cluster.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_cluster.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- check_cluster.c	12 May 2007 07:45:36 -0000	1.7
+++ check_cluster.c	20 Jun 2007 09:01:07 -0000	1.8
@@ -151,6 +151,7 @@
 		{"host",     no_argument,      0,'h'},
 		{"service",  no_argument,      0,'s'},
 		{"verbose",  no_argument,      0,'v'},
+		{"version",  no_argument,      0,'V'},
 		{"help",     no_argument,      0,'H'},
 		{0,0,0,0}
 	};
@@ -161,7 +162,7 @@
 
 	while(1){
 
-		c=getopt_long(argc,argv,"hHsvw:c:d:l:",longopts,&option);
+		c=getopt_long(argc,argv,"hHsvVw:c:d:l:",longopts,&option);
 
 		if(c==-1 || c==EOF || c==1)
 			break;
@@ -200,6 +201,11 @@
 			verbose++;
 			break;
 
+		case 'V': /* version */
+			print_revision (progname, revision);
+			exit (STATE_OK);
+			break;
+
 		case 'H': /* help */
 			print_help();
 			exit(STATE_UNKNOWN);





More information about the Commits mailing list