diff options
author | Jun Kuriyama <kuriyama@FreeBSD.org> | 2002-06-24 01:59:54 +0000 |
---|---|---|
committer | Jun Kuriyama <kuriyama@FreeBSD.org> | 2002-06-24 01:59:54 +0000 |
commit | dc1f97b45e0a7749028447447d2e39ccad23f1d7 (patch) | |
tree | c4962a5b19de352b7a4f660f409cc5be4474fff6 /net/nagios-plugins/files/patch-check_by_ssh.c | |
parent | Bump PORTREVISION. (diff) |
Bump PORTREVISION.
check_snmp calls snmpget without '-c' parameter, which is mandatory
with NetSNMP 5.x. Add '-c' to the command line to make it work with
both NetSNMP 4.x and 5.x.
check_by_ssh dumps core with called without -C, also usage help output
does not document -C and -v.
check_ssh plugin incorrectly parses the SSH banner.
check_ntp does not work with NTP v2. Add -n option to be able to
select NTP version.
Submitted by: David Douthitt <n9ubh@callsign.net>,
Jens Trzaska <jt@barfoos.de> (check_snmp) via maintainer
Notes
Notes:
svn path=/head/; revision=61853
Diffstat (limited to 'net/nagios-plugins/files/patch-check_by_ssh.c')
-rw-r--r-- | net/nagios-plugins/files/patch-check_by_ssh.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/net/nagios-plugins/files/patch-check_by_ssh.c b/net/nagios-plugins/files/patch-check_by_ssh.c new file mode 100644 index 000000000000..f89ad7d49ffa --- /dev/null +++ b/net/nagios-plugins/files/patch-check_by_ssh.c @@ -0,0 +1,29 @@ +--- 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" + "-n, --name=NAME\n" + " short name of host in netsaint configuration [optional]\n" ++ "-v, --verbose\n" ++ " short name of host in netsaint configuration [optional]\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) |