summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorSubhendu Ghosh <sghosh@users.sourceforge.net>2003-04-11 16:27:51 +0000
committerSubhendu Ghosh <sghosh@users.sourceforge.net>2003-04-11 16:27:51 +0000
commitb096b73409fe63392c585426e9e641ee6c63612a (patch)
tree13b3d597bb8c2669074cb045c7dc03980726a91b /plugins
parenta4d8fd9bf597262e1e734c10b2f3222532704d85 (diff)
downloadmonitoring-plugins-b096b73409fe63392c585426e9e641ee6c63612a.tar.gz
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
Diffstat (limited to 'plugins')
-rw-r--r--plugins/check_hpjd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/check_hpjd.c b/plugins/check_hpjd.c
index 291a1f17..3a5a7ce7 100644
--- a/plugins/check_hpjd.c
+++ b/plugins/check_hpjd.c
@@ -139,8 +139,8 @@ main (int argc, char **argv)
139 HPJD_GD_DOOR_OPEN, HPJD_GD_PAPER_OUTPUT, HPJD_GD_STATUS_DISPLAY); 139 HPJD_GD_DOOR_OPEN, HPJD_GD_PAPER_OUTPUT, HPJD_GD_STATUS_DISPLAY);
140 140
141 /* get the command to run */ 141 /* get the command to run */
142 sprintf (command_line, "%s -m : -v 1 %s -c %s %s", PATH_TO_SNMPGET, address, 142 sprintf (command_line, "%s -m : -v 1 -c %s %s %s", PATH_TO_SNMPGET, community, address,
143 community, query_string); 143 query_string);
144 144
145 /* run the command */ 145 /* run the command */
146 child_process = spopen (command_line); 146 child_process = spopen (command_line);
@@ -526,10 +526,10 @@ print_usage (void)
526 } 526 }
527 527
528 /* get the IP address of the JetDirect device */ 528 /* get the IP address of the JetDirect device */
529 strcpy(address,argv[1]); 529/* strcpy(address,argv[1]); */
530 530
531 /* get the community name to use for SNMP communication */ 531 /* get the community name to use for SNMP communication */
532 if(argc>=3) 532/* if(argc>=3)
533 strcpy(community,argv[2]); 533 strcpy(community,argv[2]);
534 else 534 else
535 strcpy(community,"public"); 535 strcpy(community,"public");