[Nagiosplug-checkins] CVS: nagiosplug/plugins check_nt.c,1.18,1.19

Ton Voon tonvoon at users.sourceforge.net
Mon Sep 15 07:59:02 CEST 2003


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

Modified Files:
	check_nt.c 
Log Message:
Option to verify check_nt version (799098 - Steve Hanselman)


Index: check_nt.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_nt.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -r1.18 -r1.19
*** check_nt.c	22 Aug 2003 06:22:38 -0000	1.18
--- check_nt.c	15 Sep 2003 14:57:58 -0000	1.19
***************
*** 59,63 ****
  unsigned long warning_value=0L;
  unsigned long critical_value=0L;
- int check_value_list=FALSE;
  int check_warning_value=FALSE;
  int check_critical_value=FALSE;
--- 59,62 ----
***************
*** 116,121 ****
  		asprintf(&send_buffer, "%s&1", req_password);
  		fetch_data (server_address, server_port, send_buffer);
! 		output_message = strdup (recv_buffer);
! 		return_code=STATE_OK;
  		break;
  
--- 115,125 ----
  		asprintf(&send_buffer, "%s&1", req_password);
  		fetch_data (server_address, server_port, send_buffer);
! 		if (value_list != NULL && strcmp(recv_buffer, value_list) != 0) {
! 			asprintf (&output_message, _("Wrong client version - running: %s, required: %s"), recv_buffer, value_list);
! 			return_code = STATE_WARNING;
! 		} else {
! 			asprintf (&output_message, recv_buffer);
! 			return_code = STATE_OK;
! 		}
  		break;
  
***************
*** 537,541 ****
    Variable to check.  Valid variables are:\n"));
    printf (_("\
!    CLIENTVERSION = Get the NSClient version\n"));
    printf (_("\
     CPULOAD = Average CPU load on last x minutes.\n\
--- 541,546 ----
    Variable to check.  Valid variables are:\n"));
    printf (_("\
!    CLIENTVERSION = Get the NSClient version\n\
!      If -l <version> is specified, will return warning if versions differ.\n"));
    printf (_("\
     CPULOAD = Average CPU load on last x minutes.\n\





More information about the Commits mailing list