summaryrefslogtreecommitdiffstats
path: root/web/attachments/116765-nagiosplug-check_nt.diff
blob: 9aaef285ad80670d79b93c7c0e86594a10f7611b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
--- check_nt.c	2005-01-22 07:01:52.000000000 -0500
+++ check_nt.c.1.4snapshot	2005-01-22 03:26:29.000000000 -0500
@@ -49,8 +49,7 @@
 	CHECK_PROCSTATE,
 	CHECK_MEMUSE,
 	CHECK_COUNTER,
-	CHECK_FILEAGE,
-	CHECK_INSTANCES 
+	CHECK_FILEAGE
 };
 
 enum {
@@ -421,19 +420,6 @@
 		}
 		break;
 
-	case CHECK_INSTANCES:
-
-		if (value_list==NULL)
-			output_message = strdup (_("No Perfomance counter Category specified"));
-		else {
-			preparelist(value_list);		/* replace , between services with & to send the request */
-			asprintf(&send_buffer,"%s&10&%s", req_password,value_list);
-			fetch_data (server_address, server_port, send_buffer);
-			asprintf (&output_message, "%s", recv_buffer);
-			return_code = STATE_OK;
-		}
-		break;
-
 	case CHECK_NONE:
 	default:
 		usage4 (_("Please specify a variable to check"));
@@ -541,8 +527,6 @@
 					vars_to_check=CHECK_COUNTER;
 				else if(!strcmp(optarg,"FILEAGE"))
 					vars_to_check=CHECK_FILEAGE;
-				else if(!strcmp(optarg,"INSTANCES"))
-					vars_to_check=CHECK_INSTANCES;
 				else
 					return ERROR;
 				break;
@@ -695,14 +679,6 @@
      Some examples:\n\
        \"Paging file usage is %%.2f %%%%\"\n\
        \"%%.f %%%% paging file used.\"\n"));
-  printf (_("\
-   CHECK_INSTANCES = Check any performance counter Category for availible instances.\n\
-     Request a -l parameters with the following syntax:\n\
-	 -l <Perfomance Counter Category>,<Perfomance Counter Category>,...\n\
-     Does not use -w or -c, \n\
-     returns a list of Instances for each Category in the list of categories.\n\
-     example: \n\
-     -l \"Memory,Process,Print Queue\"\n"));
   printf (_("Notes:\n\
  - The NSClient service should be running on the server to get any information\n\
    (http://nsclient.ready2run.nl).\n\