summaryrefslogtreecommitdiff
path: root/net-mgmt/nagios-plugins/files/patch-check_snmp.c
blob: 8d0df7dc0a1648728f9f1d3e7e281cd2eb8b76b0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- plugins/check_snmp.c.orig	Thu Feb 28 07:42:59 2002
+++ plugins/check_snmp.c	Sun Jul 14 17:21:03 2002
@@ -145,8 +145,8 @@
 	/* create the command line to execute */
 	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 */
 	child_process = spopen (command_line);