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
|
--- 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 <service1>,<service2>,<service3>,...\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 \"\\\\<performance object>\\\\counter\",\"<description>\n\
+ -l \"\\\\<performance object>\\\\counter\",\"<description>\n\
The <description> parameter is optional and \n\
is given to a printf output command which requires a float parameter.\n\
If <description> 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 \"<File path>\\\\<File Name>\"
- 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"));
}
|