summaryrefslogtreecommitdiff
path: root/net/nagios-plugins/files/patch-check_by_ssh.c
diff options
context:
space:
mode:
authorJun Kuriyama <kuriyama@FreeBSD.org>2002-07-22 01:03:42 +0000
committerJun Kuriyama <kuriyama@FreeBSD.org>2002-07-22 01:03:42 +0000
commit4bd953d9e9f77c9e1688cc3fec99356749069fce (patch)
tree1b034c239e697c7fa03f7560ca57dd01ba334b56 /net/nagios-plugins/files/patch-check_by_ssh.c
parentUpdate to 1.6 release (diff)
Add nagios-plugins after repocopy from netsaint-plugins.
Submitted by: Blaz Zupan <blaz@si.FreeBSD.org> Repocopied by: joe
Notes
Notes: svn path=/head/; revision=63351
Diffstat (limited to 'net/nagios-plugins/files/patch-check_by_ssh.c')
-rw-r--r--net/nagios-plugins/files/patch-check_by_ssh.c39
1 files changed, 15 insertions, 24 deletions
diff --git a/net/nagios-plugins/files/patch-check_by_ssh.c b/net/nagios-plugins/files/patch-check_by_ssh.c
index f89ad7d49ffa..37a02d24d206 100644
--- a/net/nagios-plugins/files/patch-check_by_ssh.c
+++ b/net/nagios-plugins/files/patch-check_by_ssh.c
@@ -1,29 +1,20 @@
---- plugins/check_by_ssh.c.orig Fri Jun 21 11:19:56 2002
-+++ plugins/check_by_ssh.c Fri Jun 21 11:54:25 2002
-@@ -191,7 +191,7 @@
- if (commands>1)
- remotecmd=strscat(remotecmd,";echo STATUS CODE: $?;");
-
-- if (strlen (remotecmd) <= 1)
-+ if (remotecmd==NULL)
- usage ("No remotecmd\n");
-
- comm = ssprintf(comm,"%s %s '%s'",comm,hostname,remotecmd);
-@@ -369,6 +369,8 @@
- " list of netsaint service names, separated by ':' [optional]\n"
+--- plugins/check_by_ssh.c.orig Thu Feb 28 07:42:57 2002
++++ plugins/check_by_ssh.c Sun Jul 14 09:50:43 2002
+@@ -382,6 +382,8 @@
+ " list of nagios service names, separated by ':' [optional]\n"
"-n, --name=NAME\n"
- " short name of host in netsaint configuration [optional]\n"
+ " short name of host in nagios configuration [optional]\n"
+ "-v, --verbose\n"
-+ " short name of host in netsaint configuration [optional]\n"
++ " display command being executed\n"
"\n"
"The most common mode of use is to refer to a local identity file with\n"
"the '-i' option. In this mode, the identity pair should have a null\n"
-@@ -388,7 +390,7 @@
-
-
- #define OPTIONS "\
---H <host> [-P port] [-f] [-y] [-t timeout] [-i identity]\n
-+-H <host> -C <command> [-fyv] [-P port] [-t timeout] [-i identity]\n
- [-l user] [-n name] [-s servicelist] [-O outputfile]"
-
- void print_usage(void)
+@@ -405,7 +407,7 @@
+ {
+ printf
+ ("Usage:\n"
+- "check_by_ssh [-f] [-t timeout] [-i identity] [-l user] -H <host> <command>\n"
++ "check_by_ssh [-fv] [-t timeout] [-i identity] [-l user] -H <host> <command>\n"
+ " [-n name] [-s servicelist] [-O outputfile] [-P port]\n"
+ "check_by_ssh -V prints version info\n"
+ "check_by_ssh -h prints more detailed help\n");