[Nagiosplug-checkins] CVS: nagiosplug/plugins check_hpjd.c,1.8.2.1,1.8.2.2

Subhendu Ghosh sghosh at users.sourceforge.net
Fri Apr 11 09:28:32 CEST 2003


Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs1:/tmp/cvs-serv28443/plugins

Modified Files:
      Tag: r1_3_0
	check_hpjd.c 
Log Message:
patch 698384 - order of args to snmpget

Index: check_hpjd.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_hpjd.c,v
retrieving revision 1.8.2.1
retrieving revision 1.8.2.2
diff -C2 -r1.8.2.1 -r1.8.2.2
*** check_hpjd.c	8 Apr 2003 20:49:03 -0000	1.8.2.1
--- check_hpjd.c	11 Apr 2003 16:27:51 -0000	1.8.2.2
***************
*** 140,145 ****
  
  	/* get the command to run */
! 	sprintf (command_line, "%s -m : -v 1 %s -c %s %s", PATH_TO_SNMPGET, address,
! 					 community, query_string);
  
  	/* run the command */
--- 140,145 ----
  
  	/* get the command to run */
! 	sprintf (command_line, "%s -m : -v 1 -c %s  %s %s", PATH_TO_SNMPGET, community, address,
! 					  query_string);
  
  	/* run the command */
***************
*** 527,534 ****
  
  	/* get the IP address of the JetDirect device */
! 	strcpy(address,argv[1]);
  	
  	/* get the community name to use for SNMP communication */
! 	if(argc>=3)
  	strcpy(community,argv[2]);
  	else
--- 527,534 ----
  
  	/* get the IP address of the JetDirect device */
! /*	strcpy(address,argv[1]); */
  	
  	/* get the community name to use for SNMP communication */
! /*	if(argc>=3)
  	strcpy(community,argv[2]);
  	else





More information about the Commits mailing list