summaryrefslogtreecommitdiffstats
path: root/plugins/t
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/t')
0 files changed, 0 insertions, 0 deletions
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)
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");