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/116760-nagiosplug-check_nt.diff | 76 +++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 web/attachments/116760-nagiosplug-check_nt.diff (limited to 'web/attachments/116760-nagiosplug-check_nt.diff') diff --git a/web/attachments/116760-nagiosplug-check_nt.diff b/web/attachments/116760-nagiosplug-check_nt.diff new file mode 100644 index 0000000..0d1a578 --- /dev/null +++ b/web/attachments/116760-nagiosplug-check_nt.diff @@ -0,0 +1,76 @@ +--- check_nt.c 2005-01-22 05:16:38.000000000 -0500 ++++ check_nt.c.1.4snapshot 2005-01-22 03:26:29.000000000 -0500 +@@ -32,7 +32,7 @@ + + const char *progname = "check_nt"; + const char *revision = "$Revision: 1.39 $"; +-const char *copyright = "2003-2005"; ++const char *copyright = "2003-2004"; + const char *email = "nagiosplug-devel@lists.sourceforge.net"; + + #include "common.h" +@@ -392,7 +392,7 @@ + case CHECK_FILEAGE: + + if (value_list==NULL) +- output_message = strdup (_("No file specified")); ++ output_message = strdup (_("No counter specified")); + else { + preparelist(value_list); /* replace , between services with & to send the request */ + asprintf(&send_buffer,"%s&9&%s", req_password,value_list); +@@ -573,7 +573,7 @@ + die (result, _("could not fetch information from server\n")); + + if (!strncmp(recv_buffer,"ERROR",5)) +- die (STATE_UNKNOWN, "Client - %s\n",recv_buffer); /*changed from NSClient to be inclsive of NC_Net*/ ++ die (STATE_UNKNOWN, "NSClient - %s\n",recv_buffer); + } + + int strtoularray(unsigned long *array, char *string, const char *delim) { +@@ -614,7 +614,7 @@ + printf ("Copyright (c) 2000 Yves Rubin (rubiyz@yahoo.com)\n"); + printf (COPYRIGHT, copyright, email); + +- printf (_("This plugin collects data from the NSClient or NC_Net service running on a\n\ ++ printf (_("This plugin collects data from the NSClient service running on a\n\ + Windows NT/2000/XP/2003 server.\n\n")); + + print_usage(); +@@ -665,32 +665,24 @@ + Request a -l parameters with the following syntax:\n\ + -l ,,,...\n\ + You can specify -d SHOWALL in case you want to see working services\n\ +- in the returned string.\n")); ++ in the returned string.\n")); + printf (_("\ + PROCSTATE = Check if one or several process are running.\n\ + Same syntax as SERVICESTATE.\n")); + printf (_("\ + COUNTER = Check any performance counter of Windows NT/2000.\n\ + Request a -l parameters with the following syntax:\n\ +- -l \"\\\\\\\\counter\",\"\n\ ++ -l \"\\\\\\\\counter\",\"\n\ + The parameter is optional and \n\ + is given to a printf output command which requires a float parameter.\n\ + If does not include \"%%\", it is used as a label.\n\ + Some examples:\n\ + \"Paging file usage is %%.2f %%%%\"\n\ + \"%%.f %%%% paging file used.\"\n")); +- printf (_("\ +- FILEAGE = Checks how old a file is .\n\ +- Request a -l parameters with the following syntax:\n\ +- -l \"\\\\\" +- Warning and critical thresholds can be specified with -w and -c.\n")); +- + printf (_("Notes:\n\ +- - The NSClient service should be running on the server to get any information\n\ +- (http://nsclient.ready2run.nl).\n\ +- or NC_Net should be running. DO not run both at the same time.\n\ +- (http://www.shatterit.com/NC_Net).\n\ +- - Critical thresholds should be lower than warning thresholds\n")); ++ - The NSClient service should be running on the server to get any information\n\ ++ (http://nsclient.ready2run.nl).\n\ ++ - Critical thresholds should be lower than warning thresholds\n")); + } + + -- cgit v1.2.3-74-g34f1