From 0b6423f9c99d9edf8c96fefd0f6c453859395aa1 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Mon, 30 Sep 2013 00:03:24 +0200 Subject: Import Nagios Plugins site Import the Nagios Plugins web site, Cronjobs, infrastructure scripts, and configuration files. --- web/attachments/116765-nagiosplug-check_nt.diff | 56 +++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 web/attachments/116765-nagiosplug-check_nt.diff (limited to 'web/attachments/116765-nagiosplug-check_nt.diff') 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 @@ +--- 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 ,,...\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\ -- cgit v1.2.3-74-g34f1