--- 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 \",,,\n\ - ,,\"\n\ - - any, System, Application, Security \n\ - or any other non-standard Event Log. 'any' will check all logs.\n\ - - any, Information, Warning, Error,\n\ - or other non-standard Event Type. 'any' will check all Types.\n\ - - Maximum age in minutes of event entries to check.\n\ - Use 0 to check all event Entries in log.\n\ - 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\ - 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\ - 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\