Ik kwam op de volgende website een guide tegen om perslogs naar grafieken om te zetten met MRTG
http://members.westnet.com.au/psimmo/
Nu ziet mijn CSV bestand er zo uit.
ls output krijg ik
Ik snap niet wat er nu fout gaat. Hij maat wel grafieken aan maar deze lijken nergens op..
http://members.westnet.com.au/psimmo/
Nu ziet mijn CSV bestand er zo uit.
code:
1
2
3
4
5
| "(PDH-CSV 4.0) (West-Europa (standaardtijd))(-60)","\\SHAREPOINT2\Geheugen\Beschikbare megabytes (MB)","\\SHAREPOINT2\Geheugen\Paginafouten per seconde","\\SHAREPOINT2\Logische schijf(C:)\Percentage tijd niet-actief","\\SHAREPOINT2\Logische schijf(D:)\Percentage tijd niet-actief","\\SHAREPOINT2\Netwerkinterface(Broadcom NetXtreme Gigabit Ethernet _2)\Totaal aantal bytes per seconde","\\SHAREPOINT2\Processor(_Total)\Percentage processortijd","\\SHAREPOINT2\Systeem\Lengte van de processorwachtrij","\\SHAREPOINT2\Wisselbestand(\??\D:\pagefile.sys)\Percentage in gebruik" "02/06/2005 07:34:00.093","1498","5446.62548751757","0","0","0","0","0","0.53577423095703125" "02/06/2005 07:34:05.093","1498","17.830917300527702","99.802000000000007","99.802000000000007","0","0","0","0.53577423095703125" "02/06/2005 07:34:10.093","1498","17.400830718553429","99.85199999999999","99.956000000000003","0","0","0","0.53577423095703125" "02/06/2005 07:34:15.093","1498","17.000737250547722","99.989999999999995","99.969999999999999","0","0","0","0.53577423095703125" |
ls output krijg ik
code:
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
| C:\mrtg\bin>perl mrtg test.cfg
Cannot open c:\perflogs\Sharepoint1.csv for read :No such file or directory at g
etlog.pl line 11.
WARNING: Could not get any data from external command 'perl getlog.pl c:\perflog
s\Sharepoint1.csv "\\Sharepoint1\Memory\Available MBytes"'
Maybe the external command did not even start. (No such file or directory)
WARNING: Problem with External get 'perl getlog.pl c:\perflogs\Sharepoint1.csv "
\\Sharepoint1\Memory\Available MBytes"':
Expected a Number for 'in' but nothing'
WARNING: Problem with External get 'perl getlog.pl c:\perflogs\Sharepoint1.csv "
\\Sharepoint1\Memory\Available MBytes"':
Expected a Number for 'out' but nothing'
ERROR: Target[sharepoint1-1][_IN_] ' $target->[0]{$mode} ' did not eval into def
ined data
ERROR: Target[sharepoint1-1][_OUT_] ' $target->[0]{$mode} ' did not eval into de
fined data
Rateup WARNING: C:/mrtg/bin\rateup could not read the primary log file for share
point1-1
Rateup WARNING: C:/mrtg/bin\rateup The backup log file for sharepoint1-1 was inv
alid as well
Rateup WARNING: C:/mrtg/bin\rateup Can't remove sharepoint1-1.old updating log f
ile
Rateup WARNING: C:/mrtg/bin\rateup Can't rename sharepoint1-1.log to sharepoint1
-1.old updating log file
C:\mrtg\bin>perl mkcfg.pl c:\perflogs\test.csv >test.cfg
C:\mrtg\bin>perl mrtg test.cfg
ERROR: CFG Error in "workdir", line 3: Working directory \mrtg\logs\SHAREPOINT2
does not exist
C:\mrtg\bin>perl mrtg test.cfg
Cannot open c:\perflogs\SHAREPOINT2.csv for read :No such file or directory at g
etlog.pl line 11.
WARNING: Could not get any data from external command 'perl getlog.pl c:\perflog
s\SHAREPOINT2.csv "\\SHAREPOINT2\Geheugen\Beschikbare megabytes (MB)"'
Maybe the external command did not even start. (No such file or directory)
WARNING: Problem with External get 'perl getlog.pl c:\perflogs\SHAREPOINT2.csv "
\\SHAREPOINT2\Geheugen\Beschikbare megabytes (MB)"':
Expected a Number for 'in' but nothing'
WARNING: Problem with External get 'perl getlog.pl c:\perflogs\SHAREPOINT2.csv "
\\SHAREPOINT2\Geheugen\Beschikbare megabytes (MB)"':
Expected a Number for 'out' but nothing'
Cannot open c:\perflogs\SHAREPOINT2.csv for read :No such file or directory at g
etlog.pl line 11.
WARNING: Could not get any data from external command 'perl getlog.pl c:\perflog
s\SHAREPOINT2.csv "\\SHAREPOINT2\Geheugen\Paginafouten per seconde"'
Maybe the external command did not even start. (No such file or directory)
WARNING: Problem with External get 'perl getlog.pl c:\perflogs\SHAREPOINT2.csv "
\\SHAREPOINT2\Geheugen\Paginafouten per seconde"':
Expected a Number for 'in' but nothing'
WARNING: Problem with External get 'perl getlog.pl c:\perflogs\SHAREPOINT2.csv "
\\SHAREPOINT2\Geheugen\Paginafouten per seconde"':
Expected a Number for 'out' but nothing'
Cannot open c:\perflogs\SHAREPOINT2.csv for read :No such file or directory at g
etlog.pl line 11.
WARNING: Could not get any data from external command 'perl getlog.pl c:\perflog
s\SHAREPOINT2.csv "\\SHAREPOINT2\Logische schijf(C:)\Percentage tijd niet-actief
"'
Maybe the external command did not even start. (No such file or directory)
WARNING: Problem with External get 'perl getlog.pl c:\perflogs\SHAREPOINT2.csv "
\\SHAREPOINT2\Logische schijf(C:)\Percentage tijd niet-actief"':
Expected a Number for 'in' but nothing'
WARNING: Problem with External get 'perl getlog.pl c:\perflogs\SHAREPOINT2.csv "
\\SHAREPOINT2\Logische schijf(C:)\Percentage tijd niet-actief"':
Expected a Number for 'out' but nothing'
Cannot open c:\perflogs\SHAREPOINT2.csv for read :No such file or directory at g
etlog.pl line 11.
WARNING: Could not get any data from external command 'perl getlog.pl c:\perflog
s\SHAREPOINT2.csv "\\SHAREPOINT2\Logische schijf(D:)\Percentage tijd niet-actief
"'
Maybe the external command did not even start. (No such file or directory)
WARNING: Problem with External get 'perl getlog.pl c:\perflogs\SHAREPOINT2.csv "
\\SHAREPOINT2\Logische schijf(D:)\Percentage tijd niet-actief"':
Expected a Number for 'in' but nothing'
WARNING: Problem with External get 'perl getlog.pl c:\perflogs\SHAREPOINT2.csv "
\\SHAREPOINT2\Logische schijf(D:)\Percentage tijd niet-actief"':
Expected a Number for 'out' but nothing'
Cannot open c:\perflogs\SHAREPOINT2.csv for read :No such file or directory at g
etlog.pl line 11.
WARNING: Could not get any data from external command 'perl getlog.pl c:\perflog
s\SHAREPOINT2.csv "\\SHAREPOINT2\Netwerkinterface(Broadcom NetXtreme Gigabit Eth
ernet _2)\Totaal aantal bytes per seconde"'
Maybe the external command did not even start. (No such file or directory)
WARNING: Problem with External get 'perl getlog.pl c:\perflogs\SHAREPOINT2.csv "
\\SHAREPOINT2\Netwerkinterface(Broadcom NetXtreme Gigabit Ethernet _2)\Totaal aa
ntal bytes per seconde"':
Expected a Number for 'in' but nothing'
WARNING: Problem with External get 'perl getlog.pl c:\perflogs\SHAREPOINT2.csv "
\\SHAREPOINT2\Netwerkinterface(Broadcom NetXtreme Gigabit Ethernet _2)\Totaal aa
ntal bytes per seconde"':
Expected a Number for 'out' but nothing'
Cannot open c:\perflogs\SHAREPOINT2.csv for read :No such file or directory at g
etlog.pl line 11.
WARNING: Could not get any data from external command 'perl getlog.pl c:\perflog
s\SHAREPOINT2.csv "\\SHAREPOINT2\Processor(_Total)\Percentage processortijd"'
Maybe the external command did not even start. (No such file or directory)
WARNING: Problem with External get 'perl getlog.pl c:\perflogs\SHAREPOINT2.csv "
\\SHAREPOINT2\Processor(_Total)\Percentage processortijd"':
Expected a Number for 'in' but nothing'
WARNING: Problem with External get 'perl getlog.pl c:\perflogs\SHAREPOINT2.csv "
\\SHAREPOINT2\Processor(_Total)\Percentage processortijd"':
Expected a Number for 'out' but nothing'
Cannot open c:\perflogs\SHAREPOINT2.csv for read :No such file or directory at g
etlog.pl line 11.
WARNING: Could not get any data from external command 'perl getlog.pl c:\perflog
s\SHAREPOINT2.csv "\\SHAREPOINT2\Systeem\Lengte van de processorwachtrij"'
Maybe the external command did not even start. (No such file or directory)
WARNING: Problem with External get 'perl getlog.pl c:\perflogs\SHAREPOINT2.csv "
\\SHAREPOINT2\Systeem\Lengte van de processorwachtrij"':
Expected a Number for 'in' but nothing'
WARNING: Problem with External get 'perl getlog.pl c:\perflogs\SHAREPOINT2.csv "
\\SHAREPOINT2\Systeem\Lengte van de processorwachtrij"':
Expected a Number for 'out' but nothing'
Cannot open c:\perflogs\SHAREPOINT2.csv for read :No such file or directory at g
etlog.pl line 11.
WARNING: Could not get any data from external command 'perl getlog.pl c:\perflog
s\SHAREPOINT2.csv "\\SHAREPOINT2\Wisselbestand(\??\D:\pagefile.sys)\Percentage i
n gebruik"'
Maybe the external command did not even start. (No such file or directory)
WARNING: Problem with External get 'perl getlog.pl c:\perflogs\SHAREPOINT2.csv "
\\SHAREPOINT2\Wisselbestand(\??\D:\pagefile.sys)\Percentage in gebruik"':
Expected a Number for 'in' but nothing'
WARNING: Problem with External get 'perl getlog.pl c:\perflogs\SHAREPOINT2.csv "
\\SHAREPOINT2\Wisselbestand(\??\D:\pagefile.sys)\Percentage in gebruik"':
Expected a Number for 'out' but nothing'
ERROR: Target[sharepoint2-1][_IN_] ' $target->[0]{$mode} ' did not eval into def
ined data
ERROR: Target[sharepoint2-1][_OUT_] ' $target->[0]{$mode} ' did not eval into de
fined data
Rateup WARNING: C:/mrtg/bin\rateup could not read the primary log file for share
point2-1
Rateup WARNING: C:/mrtg/bin\rateup The backup log file for sharepoint2-1 was inv
alid as well
Rateup WARNING: C:/mrtg/bin\rateup Can't remove sharepoint2-1.old updating log f
ile
Rateup WARNING: C:/mrtg/bin\rateup Can't rename sharepoint2-1.log to sharepoint2
-1.old updating log file
ERROR: Target[sharepoint2-2][_IN_] ' $target->[1]{$mode} ' did not eval into def
ined data
ERROR: Target[sharepoint2-2][_OUT_] ' $target->[1]{$mode} ' did not eval into de
fined data
Rateup WARNING: C:/mrtg/bin\rateup could not read the primary log file for share
point2-2
Rateup WARNING: C:/mrtg/bin\rateup The backup log file for sharepoint2-2 was inv
alid as well
Rateup WARNING: C:/mrtg/bin\rateup Can't remove sharepoint2-2.old updating log f
ile
Rateup WARNING: C:/mrtg/bin\rateup Can't rename sharepoint2-2.log to sharepoint2
-2.old updating log file
ERROR: Target[sharepoint2-3][_IN_] ' $target->[2]{$mode} ' did not eval into def
ined data
ERROR: Target[sharepoint2-3][_OUT_] ' $target->[2]{$mode} ' did not eval into de
fined data
Rateup WARNING: C:/mrtg/bin\rateup could not read the primary log file for share
point2-3
Rateup WARNING: C:/mrtg/bin\rateup The backup log file for sharepoint2-3 was inv
alid as well
Rateup WARNING: C:/mrtg/bin\rateup Can't remove sharepoint2-3.old updating log f
ile
Rateup WARNING: C:/mrtg/bin\rateup Can't rename sharepoint2-3.log to sharepoint2
-3.old updating log file
ERROR: Target[sharepoint2-4][_IN_] ' $target->[3]{$mode} ' did not eval into def
ined data
ERROR: Target[sharepoint2-4][_OUT_] ' $target->[3]{$mode} ' did not eval into de
fined data
Rateup WARNING: C:/mrtg/bin\rateup could not read the primary log file for share
point2-4
Rateup WARNING: C:/mrtg/bin\rateup The backup log file for sharepoint2-4 was inv
alid as well
Rateup WARNING: C:/mrtg/bin\rateup Can't remove sharepoint2-4.old updating log f
ile
Rateup WARNING: C:/mrtg/bin\rateup Can't rename sharepoint2-4.log to sharepoint2
-4.old updating log file
ERROR: Target[sharepoint2-5][_IN_] ' $target->[4]{$mode} ' did not eval into def
ined data
ERROR: Target[sharepoint2-5][_OUT_] ' $target->[4]{$mode} ' did not eval into de
fined data
Rateup WARNING: C:/mrtg/bin\rateup could not read the primary log file for share
point2-5
Rateup WARNING: C:/mrtg/bin\rateup The backup log file for sharepoint2-5 was inv
alid as well
Rateup WARNING: C:/mrtg/bin\rateup Can't remove sharepoint2-5.old updating log f
ile
Rateup WARNING: C:/mrtg/bin\rateup Can't rename sharepoint2-5.log to sharepoint2
-5.old updating log file
ERROR: Target[sharepoint2-6][_IN_] ' $target->[5]{$mode} ' did not eval into def
ined data
ERROR: Target[sharepoint2-6][_OUT_] ' $target->[5]{$mode} ' did not eval into de
fined data
Rateup WARNING: C:/mrtg/bin\rateup could not read the primary log file for share
point2-6
Rateup WARNING: C:/mrtg/bin\rateup The backup log file for sharepoint2-6 was inv
alid as well
Rateup WARNING: C:/mrtg/bin\rateup Can't remove sharepoint2-6.old updating log f
ile
Rateup WARNING: C:/mrtg/bin\rateup Can't rename sharepoint2-6.log to sharepoint2
-6.old updating log file
ERROR: Target[sharepoint2-7][_IN_] ' $target->[6]{$mode} ' did not eval into def
ined data
ERROR: Target[sharepoint2-7][_OUT_] ' $target->[6]{$mode} ' did not eval into de
fined data
Rateup WARNING: C:/mrtg/bin\rateup could not read the primary log file for share
point2-7
Rateup WARNING: C:/mrtg/bin\rateup The backup log file for sharepoint2-7 was inv
alid as well
Rateup WARNING: C:/mrtg/bin\rateup Can't remove sharepoint2-7.old updating log f
ile
Rateup WARNING: C:/mrtg/bin\rateup Can't rename sharepoint2-7.log to sharepoint2
-7.old updating log file
ERROR: Target[sharepoint2-8][_IN_] ' $target->[7]{$mode} ' did not eval into def
ined data
ERROR: Target[sharepoint2-8][_OUT_] ' $target->[7]{$mode} ' did not eval into de
fined data
Rateup WARNING: C:/mrtg/bin\rateup could not read the primary log file for share
point2-8
Rateup WARNING: C:/mrtg/bin\rateup The backup log file for sharepoint2-8 was inv
alid as well
Rateup WARNING: C:/mrtg/bin\rateup Can't remove sharepoint2-8.old updating log f
ile
Rateup WARNING: C:/mrtg/bin\rateup Can't rename sharepoint2-8.log to sharepoint2
-8.old updating log file |
Ik snap niet wat er nu fout gaat. Hij maat wel grafieken aan maar deze lijken nergens op..
[ Voor 11% gewijzigd door ilovetechno op 13-03-2006 11:54 ]