diff options
Diffstat (limited to 'web/attachments/116909-nagiosplug-check_nt.diff')
-rw-r--r-- | web/attachments/116909-nagiosplug-check_nt.diff | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/web/attachments/116909-nagiosplug-check_nt.diff b/web/attachments/116909-nagiosplug-check_nt.diff new file mode 100644 index 0000000..c9426b8 --- /dev/null +++ b/web/attachments/116909-nagiosplug-check_nt.diff | |||
@@ -0,0 +1,83 @@ | |||
1 | --- check_nt.c 2005-01-24 03:18:40.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_EVENTLOG | ||
9 | + CHECK_FILEAGE | ||
10 | }; | ||
11 | |||
12 | enum { | ||
13 | @@ -421,18 +420,6 @@ | ||
14 | } | ||
15 | break; | ||
16 | |||
17 | - case CHECK_EVENTLOG: | ||
18 | - if (value_list==NULL) | ||
19 | - asprintf(&send_buffer,"%s&11", req_password); | ||
20 | - else { | ||
21 | - asprintf(&send_buffer,"%s&11&%s", req_password,value_list); | ||
22 | - } | ||
23 | - fetch_data (server_address, server_port, send_buffer); | ||
24 | - return_code=atoi(strtok(recv_buffer,"&")); | ||
25 | - temp_string=strtok(NULL,"&"); | ||
26 | - output_message = strdup (temp_string); | ||
27 | - break; | ||
28 | - | ||
29 | case CHECK_NONE: | ||
30 | default: | ||
31 | usage4 (_("Please specify a variable to check")); | ||
32 | @@ -540,8 +527,6 @@ | ||
33 | vars_to_check=CHECK_COUNTER; | ||
34 | else if(!strcmp(optarg,"FILEAGE")) | ||
35 | vars_to_check=CHECK_FILEAGE; | ||
36 | - else if(!strcmp(optarg,"EVENTLOG")) | ||
37 | - vars_to_check=CHECK_EVENTLOG; | ||
38 | else | ||
39 | return ERROR; | ||
40 | break; | ||
41 | @@ -694,42 +679,6 @@ | ||
42 | Some examples:\n\ | ||
43 | \"Paging file usage is %%.2f %%%%\"\n\ | ||
44 | \"%%.f %%%% paging file used.\"\n")); | ||
45 | - printf (_("\ | ||
46 | - EVENTLOG = Check any Event Log in Windows for any entry.\n\ | ||
47 | - Request a -l parameters with the following syntax:\n\ | ||
48 | - -l \"<Event Log>,<Event Type>,<minutes range>,\n\ | ||
49 | - <Source Filter list>,<Message Filter List>,<Event ID Filter List>\"\n\ | ||
50 | - <Event Log> - any, System, Application, Security \n\ | ||
51 | - or any other non-standard Event Log. 'any' will check all logs.\n\ | ||
52 | - <Event Type> - any, Information, Warning, Error,\n\ | ||
53 | - or other non-standard Event Type. 'any' will check all Types.\n\ | ||
54 | - <minutes range> - Maximum age in minutes of event entries to check.\n\ | ||
55 | - Use 0 to check all event Entries in log.\n\ | ||
56 | - <Source Filter List> Use 0 to diable the Source Filter.\n\ | ||
57 | - Otherwise enter a comma seperated list \n\ | ||
58 | - with the first element being the number of items in the list.\n\ | ||
59 | - Use a negitive number to Exclude matching entries.\n\ | ||
60 | - Use a positive number to Include only matching entries.\n\ | ||
61 | - <Message Filter List> Use 0 to diable the Message Filter.\n\ | ||
62 | - (Message Filter accepts Regular Expressions) \n\ | ||
63 | - Otherwise enter a comma seperated list \n\ | ||
64 | - with the first element being the number of items in the list.\n\ | ||
65 | - Use a negitive number to Exclude matching entries.\n\ | ||
66 | - Use a Positive number to Include only matching entries.\n\ | ||
67 | - <Event ID Filter List> Use 0 to diable the Event ID Filter.\n\ | ||
68 | - Otherwise enter a comma seperated list with the first element\n\ | ||
69 | - being the number of items in the list.\n\ | ||
70 | - Use a negitive sign to Exclude matching entries.\n\ | ||
71 | - Use a positive number to Include only matching entries.\n\ | ||
72 | - Examples:\n\ | ||
73 | - The Following examples will list all events in the System Event Log\n\ | ||
74 | - that have a source of eventlog and have the word start or stop\n\ | ||
75 | - withing the event message.\n\ | ||
76 | - -l \"System,any,0,1,eventlog,2,start,stop,0\"\n\ | ||
77 | - -l \"System,any,0,1,eventlog,1,(start|stop),0\"\n\ | ||
78 | - \n")); | ||
79 | - | ||
80 | - | ||
81 | printf (_("Notes:\n\ | ||
82 | - The NSClient service should be running on the server to get any information\n\ | ||
83 | (http://nsclient.ready2run.nl).\n\ | ||