[Nagiosplug-checkins] nagiosplug/plugins check_ssh.c,1.30,1.31

Holger Weiss hweiss at users.sourceforge.net
Tue Jan 23 19:34:47 CET 2007


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

Modified Files:
	check_ssh.c 
Log Message:
Support `check_ssh --hostname=ADDRESS' (but keep `--host=ADDRESS' for backward
compatibility) (Ville Mattila - 1642780)


Index: check_ssh.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_ssh.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -d -r1.30 -r1.31
--- check_ssh.c	19 Oct 2006 23:53:28 -0000	1.30
+++ check_ssh.c	23 Jan 2007 18:34:45 -0000	1.31
@@ -102,7 +102,8 @@
 	static struct option longopts[] = {
 		{"help", no_argument, 0, 'h'},
 		{"version", no_argument, 0, 'V'},
-		{"host", required_argument, 0, 'H'},
+		{"host", required_argument, 0, 'H'},	/* backward compatibility */
+		{"hostname", required_argument, 0, 'H'},
 		{"port", required_argument, 0, 'p'},
 		{"use-ipv4", no_argument, 0, '4'},
 		{"use-ipv6", no_argument, 0, '6'},





More information about the Commits mailing list