File: howto-iog.html

package info (click to toggle)
iog 1.03-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 364 kB
  • sloc: perl: 2,393; sh: 51; php: 24; makefile: 2
file content (342 lines) | stat: -rw-r--r-- 20,058 bytes parent folder | download | duplicates (6)
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
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
	<META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=windows-1252">
	<TITLE></TITLE>
	<META NAME="GENERATOR" CONTENT="OpenOffice.org 1.0.1  (Win32)">
	<META NAME="CREATED" CONTENT="20030415;22430206">
	<META NAME="CHANGEDBY" CONTENT="Sean Kelly">
	<META NAME="CHANGED" CONTENT="20030416;17580442">
	<STYLE>
	<!--
		TD P { color: #000000 }
		P { color: #000000 }
		A:link { color: #000099; font-family: "Verdana", "Arial", "Helvetica", sans-serif; text-decoration: none }
		A:visited { color: #000099 }
	-->
	</STYLE>
</HEAD>
<BODY LANG="en-US" TEXT="#000000" LINK="#000099" VLINK="#000099" BGCOLOR="#ffffff">
<TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0 STYLE="page-break-before: always">
	<TR>
		<TD VALIGN=TOP BGCOLOR="#ffffff">
			<P ALIGN=LEFT><B><FONT SIZE=4><FONT FACE="Verdana">IOG HowTo</FONT></FONT></B>
						</P>
			<P ALIGN=LEFT><FONT FACE="Verdana"><FONT SIZE=2><B>Author:&nbsp;
			</B>Sean Kelly
			&lt;sean@inabiaf.com&gt;<B><BR>Contributor:</B>&nbsp;&nbsp;sme-iog-howto<BR><B>Release
			supported:</B> SME 5.x<BR><B>License:</B> <B><FONT COLOR="#ff0000">GPL</FONT></B><BR><B>Last
			updated:<!--webbot bot="Timestamp"
        S-Type="EDITED" S-Format="%A, %B %d, %Y %I:%M %p" startspan --></B>
			Wednesday, April 16, 2003 5:57 PM<!--webbot bot="Timestamp" i-CheckSum="10307" endspan -->
			</FONT></FONT>
			</P>
		</TD>
		<TD BGCOLOR="#ffffff">
			<P ALIGN=CENTER><IMG SRC="howto-IOG_htm_m3c94e753.gif" NAME="Graphic1" ALIGN=LEFT WIDTH=242 HEIGHT=65 BORDER=0><BR CLEAR=LEFT><BR>
			</P>
		</TD>
	</TR>
	<TR>
		<TD COLSPAN=2 VALIGN=TOP>
			<HR SIZE=1 COLOR="#0000ff" NOSHADE>
		</TD>
	</TR>
	<TR>
		<TD COLSPAN=2 VALIGN=TOP>
			<P><FONT FACE="Verdana"><FONT SIZE=2><B>Problem:</B>&nbsp; You
			want to install IOG on SME 5.x to monitor the bandwidth consumed
			by your SME server.<B><BR>Solution:</B>&nbsp; Follow this HowTo</FONT></FONT></P>
		</TD>
	</TR>
	<TR>
		<TD COLSPAN=2 VALIGN=TOP>
			<HR SIZE=1 COLOR="#0000ff" NOSHADE>
		</TD>
	</TR>
</TABLE>
<P><BR><BR>
</P>
<P><FONT FACE="Verdana"><FONT SIZE=2><B>STEP 1:&nbsp;Download IOG</B></FONT></FONT></P>
<P><FONT SIZE=2><FONT FACE="Verdana">Go to <A HREF="http://www.dynw.com/iog">http://www.dynw.com/iog</A>
and download iog-1.01.tgz . Copy it up to your SME server by whatever
means you are comfortable.</FONT></FONT></P>
<P STYLE="margin-bottom: 0cm; border-top: none; border-bottom: 1.00pt solid #0000ff; border-left: none; border-right: none; padding-top: 0cm; padding-bottom: 0.05cm; padding-left: 0cm; padding-right: 0cm">
<BR>
</P>
<P><BR><BR>
</P>
<P><FONT FACE="Verdana"><FONT SIZE=2><B>STEP 2:&nbsp;Download and
install net-snmp and net-snmp-utils</B></FONT></FONT></P>
<P><FONT SIZE=2><FONT FACE="Verdana">SME does not come with SNMPd
installed out of the box. You will need snmp-tools as well,
especially if you want to get the metrics from other SME servers (and
do other things, more on that later). <BR><BR>For SME 5.x, grab the
appropriate version of ucd-snmp and ucd-snmp-utils from Sassous Efoe
Boris's howto on installing Cacti on SME
(<A HREF="http://www.speedfactor.ath.cx/howto/">http://www.speedfactor.ath.cx/howto/</A>)
and follow that portion of his howto to install them (as plagiarised
below ;-)<BR></FONT></FONT><BR><BR>
</P>
<P><FONT FACE="Verdana"><FONT SIZE=2><B>Fetch them:</B></FONT></FONT></P>
<TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=2>
	<TR>
		<TD WIDTH=100% BGCOLOR="#ffcc99">
			<P><!--StartFragment--><TT><FONT SIZE=2><FONT FACE="Verdana, sans-serif"><I>For
			E-SMITH/SME 5.x</I><BR>shell&gt;</FONT></FONT></TT><FONT SIZE=2><FONT FACE="Verdana, sans-serif">
			<B>wget
			ftp://speedfactor.ath.cx/cacti/RPMS/ucd-snmp-4.2.3-1.7.0.4.i386.rpm</B><BR></FONT></FONT><TT><FONT SIZE=2><FONT FACE="Verdana, sans-serif">shell&gt;</FONT></FONT></TT><FONT SIZE=2><FONT FACE="Verdana, sans-serif">
			<B>wget
			ftp://speedfactor.ath.cx/cacti/RPMS/ucd-snmp-utils-4.2.3-1.7.0.4.i386.rpm</B>
			</FONT></FONT>
			</P>
			<P><TT><FONT SIZE=2><FONT FACE="Verdana, sans-serif"><I>Only For
			SME 5.6</I><BR>shell&gt;</FONT></FONT></TT><FONT SIZE=2><FONT FACE="Verdana, sans-serif">
			<B>wget
			ftp://speedfactor.ath.cx/cacti/RPMS/ucd-snmp-4.2.1-7.i386.rpm</B><BR></FONT></FONT><TT><FONT SIZE=2><FONT FACE="Verdana, sans-serif">shell&gt;</FONT></FONT></TT><FONT SIZE=2><FONT FACE="Verdana, sans-serif">
			wget<B>
			ftp://speedfactor.ath.cx/cacti/RPMS/ucd-snmp-utils-4.2.1-7.i386.rpm</B></FONT></FONT></P>
			<P><FONT SIZE=2><FONT FACE="Verdana, sans-serif"><I>Or if the
			first site is unavalaible try this:</I><BR></FONT></FONT><TT><FONT SIZE=2><FONT FACE="Verdana, sans-serif">shell&gt;</FONT></FONT></TT><FONT SIZE=2><FONT FACE="Verdana, sans-serif">
			<B>wget
			ftp://ftp.e-smith.org/pub/e-smith/contrib/SassouEfoeBoris/RPMS/i386/ucd-snmp-4.2.3-1.7.0.4.i386.rpm</B><BR></FONT></FONT><TT><FONT SIZE=2><FONT FACE="Verdana, sans-serif">shell&gt;</FONT></FONT></TT><FONT SIZE=2><FONT FACE="Verdana, sans-serif">
			<B>wget
			ftp://ftp.e-smith.org/pub/e-smith/contrib/SassouEfoeBoris/RPMS/i386/ucd-snmp-utils-4.2.3-1.7.0.4.i386.rpm</B></FONT></FONT></P>
		</TD>
	</TR>
</TABLE>
<P><BR><BR>
</P>
<P><FONT FACE="Verdana, sans-serif"><FONT SIZE=2><B>Now install them:</B></FONT></FONT></P>
<TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=2>
	<TR>
		<TD WIDTH=100% BGCOLOR="#ffcc99">
			<P><FONT SIZE=2><TT><TT><I><FONT FACE="Verdana, sans-serif">For
			E-SMITH/SME 5.X</FONT></I><FONT FACE="Verdana"><BR><TT><FONT SIZE=2><FONT FACE="Verdana, sans-serif">shell&gt;</FONT></FONT></TT></FONT></TT></TT><FONT FACE="Verdana">
			<B>rpm -ivh --nodeps ucd-snmp-4.2.3-1.7.0.4.i386.rpm<BR></B><TT><FONT SIZE=2><FONT FACE="Verdana, sans-serif">shell&gt;</FONT></FONT></TT>
			<B>rpm -ivh --nodeps ucd-snmp-utils-4.2.3-1.7.0.4.i386.rpm</B>
			<BR><BR><TT><TT><I><FONT FACE="Verdana, sans-serif">Only for SME
			5.6</FONT></I><BR><TT><FONT SIZE=2><FONT FACE="Verdana, sans-serif">shell&gt;</FONT></FONT></TT></TT></TT>
			<B>rpm -ivh --nodeps --force ucd-snmp-4.2.1-7.i386.rpm<BR></B><TT><FONT SIZE=2><FONT FACE="Verdana, sans-serif">shell&gt;</FONT></FONT></TT>
			<B>rpm -ivh --nodeps --force
			ucd-snmp-utils-4.2.1-7.i386.rpm<BR><BR></B><FONT FACE="verdana"><I>Configure
			Ucd-snmp for e-smith </I><B><BR><BR></B></FONT><TT><TT><FONT SIZE=2><FONT FACE="Verdana, sans-serif">shell&gt;</FONT></FONT></TT></TT>
			<B>mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.old<BR></B><TT><TT><FONT SIZE=2><FONT FACE="Verdana, sans-serif">shell&gt;</FONT></FONT></TT></TT>
			<B>echo &gt; /etc/snmp/snmpd.conf<BR></B><TT><TT><FONT SIZE=2><FONT FACE="Verdana, sans-serif">shell&gt;</FONT></FONT></TT></TT>
			<B>ln -s /lib/libcrypto.so.0.9.6b /lib/libcrypto.so.1<BR></B><TT><TT><FONT SIZE=2><FONT FACE="Verdana, sans-serif">shell&gt;</FONT></FONT></TT></TT>
			<B>service snmpd restart<BR></B><TT><TT><FONT SIZE=2><FONT FACE="Verdana, sans-serif">shell&gt;</FONT></FONT></TT></TT>
			<B>ln -s /etc/init.d/snmpd /etc/rc7.d/S92snmpd<BR></B><TT><TT><FONT SIZE=2><FONT FACE="Verdana, sans-serif">shell&gt;</FONT></FONT></TT></TT>
			<B>ln -s /etc/init.d/snmpd /etc/rc0.d/K92snmpd<BR></B><TT><TT><FONT SIZE=2><FONT FACE="Verdana, sans-serif">shell&gt;</FONT></FONT></TT></TT>
			<B>ln -s /etc/init.d/snmpd /etc/rc6.d/K92snmpd</B> </FONT></FONT>
			</P>
		</TD>
	</TR>
</TABLE>
<P STYLE="border-top: none; border-bottom: 1.00pt solid #0000ff; border-left: none; border-right: none; padding-top: 0cm; padding-bottom: 0.05cm; padding-left: 0cm; padding-right: 0cm; font-weight: medium">
<FONT FACE="Verdana"><FONT SIZE=2><B><BR>WARNING: </B>The &quot;mv
/etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.old&quot; command is to
force net-snmp to start in such a way that it only listens to
requests from 127.0.0.1, or localhost. SNMP has known security holes,
so it is important that this command is run - your machine may be
left vulnerable if you don't do this. <BR></FONT></FONT><BR><BR>
</P>
<P><FONT FACE="Verdana"><FONT SIZE=2><B>STEP 3:&nbsp;Untar IOG to a
safe place</B></FONT></FONT></P>
<TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=2>
	<TR>
		<TD WIDTH=100% BGCOLOR="#ffcc99">
			<P><TT><TT><FONT SIZE=2><FONT FACE="Verdana, sans-serif"><TT><TT>shell&gt;</TT></TT>
			</FONT><FONT FACE="Verdana"><B>mkdir /opt/iog<BR></B><TT><TT><FONT SIZE=2><FONT FACE="Verdana, sans-serif">shell&gt;</FONT></FONT></TT></TT><FONT SIZE=2><FONT FACE="Verdana, sans-serif">
			</FONT></FONT><B>cp ./iog-1.01.tgz /opt/iog<BR></B><TT><TT><FONT SIZE=2><FONT FACE="Verdana, sans-serif">shell&gt;</FONT></FONT></TT></TT><FONT SIZE=2><FONT FACE="Verdana, sans-serif">
			</FONT></FONT><B>cd /opt/iog</B><BR><TT><TT><FONT SIZE=2><FONT FACE="Verdana, sans-serif">shell&gt;</FONT></FONT></TT></TT><FONT SIZE=2><FONT FACE="Verdana, sans-serif">
			</FONT></FONT><B>tar -xvzf iog-1.01.tgz</B><BR></FONT></FONT></TT></TT><FONT SIZE=2><FONT FACE="Verdana, sans-serif">shell&gt;<B>
			cp iog-1.01/* .</B></FONT></FONT></P>
		</TD>
	</TR>
</TABLE>
<P STYLE="border-top: none; border-bottom: 1.00pt solid #0000ff; border-left: none; border-right: none; padding-top: 0cm; padding-bottom: 0.05cm; padding-left: 0cm; padding-right: 0cm; font-weight: medium">
<FONT FACE="Verdana"><FONT SIZE=2><BR></FONT></FONT><BR><BR>
</P>
<P><FONT FACE="Verdana"><FONT SIZE=2><B>STEP 4:&nbsp;&nbsp;Create an
ibay for IOG to live in</B></FONT></FONT></P>
<P STYLE="border: none; padding: 0cm; font-weight: medium"><FONT FACE="Verdana"><FONT SIZE=2>Create
an ibay (called &quot;iog&quot; or whatever) for the web page and the
iog data to live in. No special CGI or other permissions are required
for this ibay. </FONT></FONT>
</P>
<P STYLE="border: none; padding: 0cm; font-weight: medium"><FONT FACE="Verdana"><FONT SIZE=2>Copy
the .gif files from your /opt/iog directory into your ibay/html
directory (nominally /home/e-smith/files/ibays/iog/html).</FONT></FONT></P>
<P STYLE="margin-bottom: 0cm"><BR>
</P>
<TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=0>
	<COL WIDTH=256*>
	<TR>
		<TD WIDTH=100% BGCOLOR="#ffcc99">
			<P><TT><FONT SIZE=2><TT><FONT FACE="Verdana, sans-serif">shell&gt;</FONT></TT><FONT FACE="Verdana">
			<B>cp ./iog-1.01/*.gif /home/e-smith/files/ibays/iog/html</B></FONT></FONT></TT></P>
		</TD>
	</TR>
</TABLE>
<P STYLE="border: none; padding: 0cm"><BR><BR>
</P>
<P STYLE="border-top: none; border-bottom: 1.00pt solid #0000ff; border-left: none; border-right: none; padding-top: 0cm; padding-bottom: 0.05cm; padding-left: 0cm; padding-right: 0cm">
<BR><BR>
</P>
<P STYLE="border: none; padding: 0cm"><FONT FACE="Verdana"><FONT SIZE=2><B>STEP
5: Edit iog.cfg to reflect your system</B></FONT></FONT></P>
<P STYLE="border: none; padding: 0cm; font-weight: medium"><FONT FACE="Verdana"><FONT SIZE=2><!--StartFragment-->First
off, let's look at the guts of iog.cfg:</FONT></FONT></P>
<TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=0>
	<COL WIDTH=256*>
	<TR>
		<TD WIDTH=100% BGCOLOR="#ffcc99">
			<P STYLE="border: none; padding: 0cm"><A NAME="DDE_LINK2"></A><TT><B><FONT SIZE=2><FONT FACE="System">#
			ex.:<BR># [switch1:192.168.0.10:public:sysUpTime.0:/www/snmp]<BR>#
			sw1-port1:192.168.0.10:public:ifInOctets.1:ifOutOctets.1:/www/snmp/<BR>#
			sw1-port2:192.168.0.10:public:ifInOctets.2:ifOutOctets.2:/www/snmp/<BR>#<BR>#
			[switch2:192.168.0.11:public:sysUpTime:/www/snmp]<BR>#
			sw2-port20:192.168.0.11:public:ifHCInOctets.20:ifHCOutOctets.20:/www/snmp/<BR>#</FONT></FONT></B></TT></P>
		</TD>
	</TR>
</TABLE>
<P STYLE="border: none; padding: 0cm"><FONT FACE="Verdana"><FONT SIZE=2><B><BR></B>If
for example we wanted to monitor the internal and external ports of
our gateway we would make an entry like:</FONT></FONT></P>
<TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=0>
	<COL WIDTH=256*>
	<TR>
		<TD WIDTH=100% BGCOLOR="#ffcc99">
			<P STYLE="border: none; padding: 0cm"><A NAME="DDE_LINK21"></A><TT><B><FONT SIZE=2><FONT FACE="Verdana">my_gateway_name:127.0.0.1:public:sysUpTime.0:/home/e-smith/files/ibays/iog/html]<BR>Gateway-external-ethernet:127.0.0.1:public:ifInOctets.1:ifOutOctets.1:/home/e-smith/files/ibays/iog/html<BR>Gateway-internal-ethernet:127.0.0.1:public:ifInOctets.2:ifOutOctets.2:/home/e-smith/files/ibays/iog/html
			</FONT></FONT></B></TT>
			</P>
		</TD>
	</TR>
</TABLE>
<P STYLE="border: none; padding: 0cm; font-weight: medium"><FONT FACE="Verdana"><FONT SIZE=2><BR>Here
is where the snmp-utils comes in. The ifInOctets.1 part in the above
entries is the OID (Object Identifier) in the MIB (Management
Information Base) for the counter (in octets or bytes) of the first
interface reported by your machine's SNMPd. The only way to be sure
of what the actual interface index <U>is</U> is to use SNMPWALK to
walk the OIDs on your machine and view the results.<BR><BR>For
example:</FONT></FONT></P>
<TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=0>
	<COL WIDTH=256*>
	<TR>
		<TD WIDTH=100% BGCOLOR="#ffcc99">
			<P STYLE="border: none; padding: 0cm"><A NAME="DDE_LINK211"></A><TT><FONT SIZE=2><FONT FACE="Verdana"><TT><FONT SIZE=2><FONT FACE="Verdana">shell&gt;</FONT></FONT></TT><B><FONT SIZE=2><FONT FACE="Verdana">
			snmpwalk 127.0.0.1 public | grep
			ifDescr<BR>interfaces.ifTable.ifEntry.ifDescr.1 =
			lo<BR>interfaces.ifTable.ifEntry.ifDescr.2 =
			eth0<BR>interfaces.ifTable.ifEntry.ifDescr.3 =
			eth1<BR>host.hrSWRun.hrSWRunTable.hrSWRunEntry.hrSWRunParameters.6658
			= &quot;ifDescr&quot;</FONT></FONT></B></FONT></FONT></TT></P>
		</TD>
	</TR>
</TABLE>
<P STYLE="border: none; padding: 0cm; font-weight: medium"><FONT FACE="Verdana"><FONT SIZE=2><BR>I
know (or I <U>should</U> know;-) which interface is inside (eth0,)
and which interface is outside (eth1). As the ifDescr values
correspond to ifInOctets and ifOutOctets values, I would change the
lines in iog.cfg to read:</FONT></FONT></P>
<TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=0>
	<COL WIDTH=256*>
	<TR>
		<TD WIDTH=100% BGCOLOR="#ffcc99">
			<P STYLE="border: none; padding: 0cm"><A NAME="DDE_LINK212"></A><TT><B><FONT SIZE=2><FONT FACE="Verdana">[my_gateway_name:127.0.0.1:public:sysUpTime.0:/home/e-smith/files/ibays/iog/html]<BR>Gateway-external-ethernet:127.0.0.1:public:ifInOctets.3:ifOutOctets.3:/home/e-smith/files/ibays/iog/html<BR>Gateway-internal-ethernet:127.0.0.1:public:ifInOctets.2:ifOutOctets.2:/home/e-smith/files/ibays/iog/html</FONT></FONT></B></TT></P>
		</TD>
	</TR>
</TABLE>
<P STYLE="border: none; padding: 0cm; font-weight: medium"><FONT FACE="Verdana"><FONT SIZE=2><BR>...
as ifInOctets.3 corresponds to ifDescr.3, which is the interface
number for eth1, which is my server's external interface.</FONT></FONT></P>
<P STYLE="margin-bottom: 0cm; border: none; padding: 0cm"><!--StartFragment--><FONT SIZE=2><FONT FACE="Verdana"><FONT FACE="Verdana, sans-serif">If
your entry is
</FONT><STRONG><FONT FACE="Verdana, sans-serif">index:127.0.0.1:public:ifInOctets.3:ifOutOctets.3:/home/e-smith/files/ibays/iog/html</FONT></STRONG><FONT FACE="Verdana, sans-serif">
then this will create index.html, replacing the default &quot;Under
Construction&quot; page in the ibay. This is useful if you only want
to monitor one interface, like your server's external ethernet.<!--EndFragment--></FONT></FONT></FONT></P>
<P STYLE="margin-bottom: 0cm; border: none; padding: 0cm"><BR>
</P>
<P STYLE="margin-bottom: 0cm; border: none; padding: 0cm; font-weight: medium">
<FONT FACE="Verdana"><FONT SIZE=2>Now, while you have the chance, you
can remove snmp-utils as the snmp_session.PM file in iog looks after
that stuff for you. To do this, run...</FONT></FONT></P>
<P STYLE="margin-bottom: 0cm; border: none; padding: 0cm"><BR>
</P>
<TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=0>
	<COL WIDTH=256*>
	<TR>
		<TD WIDTH=100% BGCOLOR="#ffcc99">
			<P STYLE="border: none; padding: 0cm"><A NAME="DDE_LINK2121"></A><TT><FONT SIZE=2><FONT FACE="Verdana"><TT><FONT SIZE=2><FONT FACE="Verdana">shell&gt;</FONT></FONT></TT><B><FONT SIZE=2><FONT FACE="Verdana">
			rpm -e ucd-snmp-utils</FONT></FONT></B></FONT></FONT></TT></P>
		</TD>
	</TR>
</TABLE>
<P STYLE="border: none; padding: 0cm"><BR><BR>
</P>
<P STYLE="border-top: none; border-bottom: 1.00pt solid #0000ff; border-left: none; border-right: none; padding-top: 0cm; padding-bottom: 0.05cm; padding-left: 0cm; padding-right: 0cm">
<BR><BR>
</P>
<P STYLE="border: none; padding: 0cm"><FONT FACE="Verdana"><FONT SIZE=2><B>&nbsp;STEP
6:&nbsp;&nbsp;Create the crontab entries to run IOG</B></FONT></FONT></P>
<P STYLE="font-weight: medium"><FONT FACE="Verdana"><FONT SIZE=2>You
now need to run iog every hour. Assuming you put the iog files in
/opt/iog, do this:</FONT></FONT></P>
<TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=0>
	<COL WIDTH=256*>
	<TR>
		<TD WIDTH=100% BGCOLOR="#ffcc99">
			<P STYLE="border: none; padding: 0cm"><A NAME="DDE_LINK2122"></A><TT><FONT SIZE=2><FONT FACE="Verdana"><TT><FONT SIZE=2><FONT FACE="Verdana">shell&gt;</FONT></FONT></TT><B><FONT SIZE=2><FONT FACE="Verdana">
			mkdir -p /etc/e-smith/templates-custom/etc/crontab/ <BR></FONT></FONT></B><TT><FONT SIZE=2><FONT FACE="Verdana">shell&gt;</FONT></FONT></TT><FONT SIZE=2><FONT FACE="Verdana"><B>
			echo &quot;0 * * * * root /opt/iog/iog&quot; &gt;
			/etc/e-smith/templates-custom/etc/crontab/iog<BR></B><TT><FONT SIZE=2><FONT FACE="Verdana">shell&gt;</FONT></FONT></TT><B>
			/sbin/e-smith/expand-template /etc/crontab</B></FONT></FONT></FONT></FONT></TT></P>
		</TD>
	</TR>
</TABLE>
<P STYLE="line-height: 100%"><BR><BR>
</P>
<P STYLE="font-weight: medium; line-height: 100%"><FONT FACE="Verdana"><FONT SIZE=2>Do
not run iog every five minutes (as per mrtg and cacti etc) as this
will give you very weird statistics for your traffic!</FONT></FONT></P>
<P STYLE="border-top: none; border-bottom: 1.00pt solid #0000ff; border-left: none; border-right: none; padding-top: 0cm; padding-bottom: 0.05cm; padding-left: 0cm; padding-right: 0cm">
<BR><BR>
</P>
<P STYLE="border: none; padding: 0cm"><FONT FACE="Verdana"><FONT SIZE=2><B>STEP
7: Wait for a few hours...</B></FONT></FONT></P>
<P STYLE="border: none; padding: 0cm"><FONT SIZE=2><FONT FACE="Verdana">You
should, after a few hours, be able to go to
<A HREF="http://mysmeserver/iog/Gateway-external-ethernet.html">http://mysmeserver/iog/Gateway-external-ethernet.html</A>
and <A HREF="http://mysmeserver/iog/Gateway-external-ethernet.html"><FONT SIZE=2><FONT FACE="Verdana">http://mysmeserver/iog/Gateway-internal-ethernet.html
to </FONT></FONT></A>see the results. There should be nice graphs
there, with drill-down levels as time goes on.</FONT></FONT></P>
<P STYLE="margin-bottom: 0cm; border: none; padding: 0cm"><!--StartFragment--><FONT SIZE=2><FONT FACE="Verdana, sans-serif">Each
interface line you created in your iog.cfg will create an html page
with the title being the part before the first colon, eg
Gateway-internal-ethernet.html, Gateway-external-ethernet.html, etc.
If you are monitoring a whole bunch of interfaces you may want to
modify the default index.html to point to these individual files.<!--EndFragment--></FONT></FONT>
</P>
<P STYLE="margin-bottom: 0cm; border: none; padding: 0cm"><BR>
</P>
<P STYLE="margin-bottom: 0cm; border-top: none; border-bottom: 1.00pt solid #0000ff; border-left: none; border-right: none; padding-top: 0cm; padding-bottom: 0.05cm; padding-left: 0cm; padding-right: 0cm">
<BR>
</P>
<P STYLE="border: none; padding: 0cm"><BR><BR>
</P>
<P STYLE="border: none; padding: 0cm"><FONT FACE="Verdana"><FONT SIZE=2><B>Other
possibilities:</B></FONT></FONT></P>
<P STYLE="border: none; padding: 0cm; font-weight: medium"><FONT FACE="Verdana"><FONT SIZE=2>Given
that IOG uses SNMP to gather the statistics, it should be possible to
gather stats from <U>any</U><SPAN STYLE="text-decoration: none">
snmp-enabled device as long as you know what the appropriate ifDescr
indices are. You could use it to track the i/o on any server in your
network if you wished, or on the kid's PC in their room (if you
enabled snmp on it).</SPAN></FONT></FONT></P>
<P STYLE="border: none; padding: 0cm"><BR><BR>
</P>
<P>&nbsp;</P>
</BODY>
</HTML>