summaryrefslogtreecommitdiff
path: root/net-mgmt/netsaint-plugins/files/patch-check_snmp.c
diff options
context:
space:
mode:
authorJun Kuriyama <kuriyama@FreeBSD.org>2002-06-24 01:59:54 +0000
committerJun Kuriyama <kuriyama@FreeBSD.org>2002-06-24 01:59:54 +0000
commitdc1f97b45e0a7749028447447d2e39ccad23f1d7 (patch)
treec4962a5b19de352b7a4f660f409cc5be4474fff6 /net-mgmt/netsaint-plugins/files/patch-check_snmp.c
parentBump 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-mgmt/netsaint-plugins/files/patch-check_snmp.c')
-rw-r--r--net-mgmt/netsaint-plugins/files/patch-check_snmp.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/net-mgmt/netsaint-plugins/files/patch-check_snmp.c b/net-mgmt/netsaint-plugins/files/patch-check_snmp.c
new file mode 100644
index 000000000000..9f7a6dbd5e75
--- /dev/null
+++ b/net-mgmt/netsaint-plugins/files/patch-check_snmp.c
@@ -0,0 +1,20 @@
+--- plugins/check_snmp.c.orig Fri Jun 21 14:34:23 2002
++++ plugins/check_snmp.c Fri Jun 21 14:33:45 2002
+@@ -146,13 +146,13 @@
+ /* create the command line to execute */
+ if (getnext==TRUE) {
+ command_line = ssprintf (command_line,
+- "%s -m ALL -v 1 %s %s %s",
+- PATH_TO_SNMPGETNEXT, server_address, community, oid);
++ "%s -m ALL -v 1 -c %s %s %s",
++ PATH_TO_SNMPGETNEXT, community, server_address, oid);
+ }
+ else {
+ command_line = ssprintf (command_line,
+- "%s -m ALL -v 1 %s %s %s",
+- PATH_TO_SNMPGET, server_address, community, oid);
++ "%s -m ALL -v 1 -c %s %s %s",
++ PATH_TO_SNMPGET, community, server_address, oid);
+ }
+
+ /* run the command */