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