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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
--- check_nt.c 2005-01-24 03:18:40.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_EVENTLOG
+ CHECK_FILEAGE
};
enum {
@@ -421,18 +420,6 @@
}
break;
- case CHECK_EVENTLOG:
- if (value_list==NULL)
- asprintf(&send_buffer,"%s&11", req_password);
- else {
- asprintf(&send_buffer,"%s&11&%s", req_password,value_list);
- }
- fetch_data (server_address, server_port, send_buffer);
- return_code=atoi(strtok(recv_buffer,"&"));
- temp_string=strtok(NULL,"&");
- output_message = strdup (temp_string);
- break;
-
case CHECK_NONE:
default:
usage4 (_("Please specify a variable to check"));
@@ -540,8 +527,6 @@
vars_to_check=CHECK_COUNTER;
else if(!strcmp(optarg,"FILEAGE"))
vars_to_check=CHECK_FILEAGE;
- else if(!strcmp(optarg,"EVENTLOG"))
- vars_to_check=CHECK_EVENTLOG;
else
return ERROR;
break;
@@ -694,42 +679,6 @@
Some examples:\n\
\"Paging file usage is %%.2f %%%%\"\n\
\"%%.f %%%% paging file used.\"\n"));
- printf (_("\
- EVENTLOG = Check any Event Log in Windows for any entry.\n\
- Request a -l parameters with the following syntax:\n\
- -l \"<Event Log>,<Event Type>,<minutes range>,\n\
- <Source Filter list>,<Message Filter List>,<Event ID Filter List>\"\n\
- <Event Log> - any, System, Application, Security \n\
- or any other non-standard Event Log. 'any' will check all logs.\n\
- <Event Type> - any, Information, Warning, Error,\n\
- or other non-standard Event Type. 'any' will check all Types.\n\
- <minutes range> - Maximum age in minutes of event entries to check.\n\
- Use 0 to check all event Entries in log.\n\
- <Source Filter List> Use 0 to diable the Source Filter.\n\
- Otherwise enter a comma seperated list \n\
- with the first element being the number of items in the list.\n\
- Use a negitive number to Exclude matching entries.\n\
- Use a positive number to Include only matching entries.\n\
- <Message Filter List> Use 0 to diable the Message Filter.\n\
- (Message Filter accepts Regular Expressions) \n\
- Otherwise enter a comma seperated list \n\
- with the first element being the number of items in the list.\n\
- Use a negitive number to Exclude matching entries.\n\
- Use a Positive number to Include only matching entries.\n\
- <Event ID Filter List> Use 0 to diable the Event ID Filter.\n\
- Otherwise enter a comma seperated list with the first element\n\
- being the number of items in the list.\n\
- Use a negitive sign to Exclude matching entries.\n\
- Use a positive number to Include only matching entries.\n\
- Examples:\n\
- The Following examples will list all events in the System Event Log\n\
- that have a source of eventlog and have the word start or stop\n\
- withing the event message.\n\
- -l \"System,any,0,1,eventlog,2,start,stop,0\"\n\
- -l \"System,any,0,1,eventlog,1,(start|stop),0\"\n\
- \n"));
-
-
printf (_("Notes:\n\
- The NSClient service should be running on the server to get any information\n\
(http://nsclient.ready2run.nl).\n\
|