From b096b73409fe63392c585426e9e641ee6c63612a Mon Sep 17 00:00:00 2001 From: Subhendu Ghosh Date: Fri, 11 Apr 2003 16:27:51 +0000 Subject: patch 698384 - order of args to snmpget git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/branches/release-1.3.0@484 f882894a-f735-0410-b71e-b25c423dba1c diff --git a/plugins/check_hpjd.c b/plugins/check_hpjd.c index 291a1f1..3a5a7ce 100644 --- a/plugins/check_hpjd.c +++ b/plugins/check_hpjd.c @@ -139,8 +139,8 @@ main (int argc, char **argv) HPJD_GD_DOOR_OPEN, HPJD_GD_PAPER_OUTPUT, HPJD_GD_STATUS_DISPLAY); /* get the command to run */ - sprintf (command_line, "%s -m : -v 1 %s -c %s %s", PATH_TO_SNMPGET, address, - community, query_string); + sprintf (command_line, "%s -m : -v 1 -c %s %s %s", PATH_TO_SNMPGET, community, address, + query_string); /* run the command */ child_process = spopen (command_line); @@ -526,10 +526,10 @@ print_usage (void) } /* get the IP address of the JetDirect device */ - strcpy(address,argv[1]); +/* strcpy(address,argv[1]); */ /* get the community name to use for SNMP communication */ - if(argc>=3) +/* if(argc>=3) strcpy(community,argv[2]); else strcpy(community,"public"); -- cgit v0.10-9-g596f