summaryrefslogtreecommitdiffstats
path: root/web/attachments/116760-nagiosplug-check_nt.diff
diff options
context:
space:
mode:
Diffstat (limited to 'web/attachments/116760-nagiosplug-check_nt.diff')
-rw-r--r--web/attachments/116760-nagiosplug-check_nt.diff76
1 files changed, 76 insertions, 0 deletions
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 @@
1--- check_nt.c 2005-01-22 05:16:38.000000000 -0500
2+++ check_nt.c.1.4snapshot 2005-01-22 03:26:29.000000000 -0500
3@@ -32,7 +32,7 @@
4
5 const char *progname = "check_nt";
6 const char *revision = "$Revision: 1.39 $";
7-const char *copyright = "2003-2005";
8+const char *copyright = "2003-2004";
9 const char *email = "nagiosplug-devel@lists.sourceforge.net";
10
11 #include "common.h"
12@@ -392,7 +392,7 @@
13 case CHECK_FILEAGE:
14
15 if (value_list==NULL)
16- output_message = strdup (_("No file specified"));
17+ output_message = strdup (_("No counter specified"));
18 else {
19 preparelist(value_list); /* replace , between services with & to send the request */
20 asprintf(&send_buffer,"%s&9&%s", req_password,value_list);
21@@ -573,7 +573,7 @@
22 die (result, _("could not fetch information from server\n"));
23
24 if (!strncmp(recv_buffer,"ERROR",5))
25- die (STATE_UNKNOWN, "Client - %s\n",recv_buffer); /*changed from NSClient to be inclsive of NC_Net*/
26+ die (STATE_UNKNOWN, "NSClient - %s\n",recv_buffer);
27 }
28
29 int strtoularray(unsigned long *array, char *string, const char *delim) {
30@@ -614,7 +614,7 @@
31 printf ("Copyright (c) 2000 Yves Rubin (rubiyz@yahoo.com)\n");
32 printf (COPYRIGHT, copyright, email);
33
34- printf (_("This plugin collects data from the NSClient or NC_Net service running on a\n\
35+ printf (_("This plugin collects data from the NSClient service running on a\n\
36 Windows NT/2000/XP/2003 server.\n\n"));
37
38 print_usage();
39@@ -665,32 +665,24 @@
40 Request a -l parameters with the following syntax:\n\
41 -l <service1>,<service2>,<service3>,...\n\
42 You can specify -d SHOWALL in case you want to see working services\n\
43- in the returned string.\n"));
44+ in the returned string.\n"));
45 printf (_("\
46 PROCSTATE = Check if one or several process are running.\n\
47 Same syntax as SERVICESTATE.\n"));
48 printf (_("\
49 COUNTER = Check any performance counter of Windows NT/2000.\n\
50 Request a -l parameters with the following syntax:\n\
51- -l \"\\\\<performance object>\\\\counter\",\"<description>\n\
52+ -l \"\\\\<performance object>\\\\counter\",\"<description>\n\
53 The <description> parameter is optional and \n\
54 is given to a printf output command which requires a float parameter.\n\
55 If <description> does not include \"%%\", it is used as a label.\n\
56 Some examples:\n\
57 \"Paging file usage is %%.2f %%%%\"\n\
58 \"%%.f %%%% paging file used.\"\n"));
59- printf (_("\
60- FILEAGE = Checks how old a file is .\n\
61- Request a -l parameters with the following syntax:\n\
62- -l \"<File path>\\\\<File Name>\"
63- Warning and critical thresholds can be specified with -w and -c.\n"));
64-
65 printf (_("Notes:\n\
66- - The NSClient service should be running on the server to get any information\n\
67- (http://nsclient.ready2run.nl).\n\
68- or NC_Net should be running. DO not run both at the same time.\n\
69- (http://www.shatterit.com/NC_Net).\n\
70- - Critical thresholds should be lower than warning thresholds\n"));
71+ - The NSClient service should be running on the server to get any information\n\
72+ (http://nsclient.ready2run.nl).\n\
73+ - Critical thresholds should be lower than warning thresholds\n"));
74 }
75
76