mrtg-nt-guide.1
上传用户:shbosideng
上传日期:2013-05-04
资源大小:1555k
文件大小:19k
源码类别:

SNMP编程

开发平台:

C/C++

  1. ." Automatically generated by Pod::Man v1.37, Pod::Parser v1.14
  2. ."
  3. ." Standard preamble:
  4. ." ========================================================================
  5. .de Sh " Subsection heading
  6. .br
  7. .if t .Sp
  8. .ne 5
  9. .PP
  10. fB\$1fR
  11. .PP
  12. ..
  13. .de Sp " Vertical space (when we can't use .PP)
  14. .if t .sp .5v
  15. .if n .sp
  16. ..
  17. .de Vb " Begin verbatim text
  18. .ft CW
  19. .nf
  20. .ne \$1
  21. ..
  22. .de Ve " End verbatim text
  23. .ft R
  24. .fi
  25. ..
  26. ." Set up some character translations and predefined strings.  *(-- will
  27. ." give an unbreakable dash, *(PI will give pi, *(L" will give a left
  28. ." double quote, and *(R" will give a right double quote.  | will give a
  29. ." real vertical bar.  *(C+ will give a nicer C++.  Capital omega is used to
  30. ." do unbreakable dashes and therefore won't be available.  *(C` and *(C'
  31. ." expand to `' in nroff, nothing in troff, for use with C<>.
  32. .tr (*W-|(bv*(Tr
  33. .ds C+ Cv'-.1v'h'-1p's-2+h'-1p'+s0v'.1v'h'-1p'
  34. .ie n {
  35. .    ds -- (*W-
  36. .    ds PI pi
  37. .    if (n(.H=4u)&(1m=24u) .ds -- (*Wh'-12u'(*Wh'-12u'-" diablo 10 pitch
  38. .    if (n(.H=4u)&(1m=20u) .ds -- (*Wh'-12u'(*Wh'-8u'-"  diablo 12 pitch
  39. .    ds L" ""
  40. .    ds R" ""
  41. .    ds C` ""
  42. .    ds C' ""
  43. 'br}
  44. .el{
  45. .    ds -- |(em|
  46. .    ds PI (*p
  47. .    ds L" ``
  48. .    ds R" ''
  49. 'br}
  50. ."
  51. ." If the F register is turned on, we'll generate index entries on stderr for
  52. ." titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index
  53. ." entries marked with X<> in POD.  Of course, you'll have to process the
  54. ." output yourself in some meaningful fashion.
  55. .if nF {
  56. .    de IX
  57. .    tm Index:\$1t\n%t"\$2"
  58. ..
  59. .    nr % 0
  60. .    rr F
  61. .}
  62. ."
  63. ." For nroff, turn off justification.  Always turn off hyphenation; it makes
  64. ." way too many mistakes in technical documents.
  65. .hy 0
  66. .if n .na
  67. ."
  68. ." Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
  69. ." Fear.  Run.  Save yourself.  No user-serviceable parts.
  70. .    " fudge factors for nroff and troff
  71. .if n {
  72. .    ds #H 0
  73. .    ds #V .8m
  74. .    ds #F .3m
  75. .    ds #[ f1
  76. .    ds #] fP
  77. .}
  78. .if t {
  79. .    ds #H ((1u-(\\n(.fu%2u))*.13m)
  80. .    ds #V .6m
  81. .    ds #F 0
  82. .    ds #[ &
  83. .    ds #] &
  84. .}
  85. .    " simple accents for nroff and troff
  86. .if n {
  87. .    ds ' &
  88. .    ds ` &
  89. .    ds ^ &
  90. .    ds , &
  91. .    ds ~ ~
  92. .    ds /
  93. .}
  94. .if t {
  95. .    ds ' \k:h'-(\n(.wu*8/10-*(#H)''h"|\n:u"
  96. .    ds ` \k:h'-(\n(.wu*8/10-*(#H)'`h'|\n:u'
  97. .    ds ^ \k:h'-(\n(.wu*10/11-*(#H)'^h'|\n:u'
  98. .    ds , \k:h'-(\n(.wu*8/10)',h'|\n:u'
  99. .    ds ~ \k:h'-(\n(.wu-*(#H-.1m)'~h'|\n:u'
  100. .    ds / \k:h'-(\n(.wu*8/10-*(#H)'z(slh'|\n:u'
  101. .}
  102. .    " troff and (daisy-wheel) nroff accents
  103. .ds : \k:h'-(\n(.wu*8/10-*(#H+.1m+*(#F)'v'-*(#V'z.h'.2m+*(#F'.h'|\n:u'v'*(#V'
  104. .ds 8 h'*(#H'(*bh'-*(#H'
  105. .ds o \k:h'-(\n(.wu+w'(de'u-*(#H)/2u'v'-.3n'*(#[z(dev'.3n'h'|\n:u'*(#]
  106. .ds d- h'*(#H'(pdh'-w'~'u'v'-.25m'f2(hyfPv'.25m'h'-*(#H'
  107. .ds D- D\k:h'-w'D'u'v'-.11m'z(hyv'.11m'h'|\n:u'
  108. .ds th *(#[v'.3m's+1Is-1v'-.3m'h'-(w'I'u*2/3)'s-1os+1*(#]
  109. .ds Th *(#[s+2Is-2h'-w'I'u*3/5'v'-.3m'ov'.3m'*(#]
  110. .ds ae ah'-(w'a'u*4/10)'e
  111. .ds Ae Ah'-(w'A'u*4/10)'E
  112. .    " corrections for vroff
  113. .if v .ds ~ \k:h'-(\n(.wu*9/10-*(#H)'s-2u~ds+2h'|\n:u'
  114. .if v .ds ^ \k:h'-(\n(.wu*10/11-*(#H)'v'-.4m'^v'.4m'h'|\n:u'
  115. .    " for low resolution devices (crt and lpr)
  116. .if n(.H>23 .if n(.V>19 
  117. {
  118. .    ds : e
  119. .    ds 8 ss
  120. .    ds o a
  121. .    ds d- dh'-1'(ga
  122. .    ds D- Dh'-1'(hy
  123. .    ds th o'bp'
  124. .    ds Th o'LP'
  125. .    ds ae ae
  126. .    ds Ae AE
  127. .}
  128. .rm #[ #] #H #V #F C
  129. ." ========================================================================
  130. ."
  131. .IX Title "MRTG-NT-GUIDE 1"
  132. .TH MRTG-NT-GUIDE 1 "2006-02-03" "2.13.2" "mrtg"
  133. .SH "NAME"
  134. mrtg-nt-guide - The Windows Guide to MRTG 2.13.2
  135. .SH "SYNOPSIS"
  136. .IX Header "SYNOPSIS"
  137. Installing s-1MRTGs0 on a Windows box is not quite as *(L"click and point*(R" as some
  138. might want it to be. But then again, it is not all that difficult if you
  139. follow the instructions below.
  140. .SH "PREREQUISITES"
  141. .IX Header "PREREQUISITES"
  142. To get s-1MRTGs0 to work on Windows you need the following:
  143. .IP "(bu" 4
  144. A current copy of Perl.
  145. For Example ActivePerl from 
  146. http://www.activestate.com/Products/Download/Download.plex?id=ActivePerl
  147. .IP "(bu" 4
  148. The latest version of s-1MRTGs0 from
  149. http://people.ee.ethz.ch/~oetiker/webtools/mrtg/pub Look for mrtg-2.13.2.zip
  150. or better. The archive also contains a precompiled copy of rateup.exe for
  151. Win32.
  152. .SH "INSTALLING"
  153. .IX Header "INSTALLING"
  154. I suggest you do the following from the machine that will be running s-1MRTGs0,
  155. which, in this case, is also a web server. All examples are for doing things
  156. to a s-1LOCALs0 machine.
  157. .IP "First" 4
  158. .IX Item "First"
  159. Unzip s-1MRTGs0 to C:emrtg-2.13.2 on the Windows machine of your choice.
  160. .IP "Next" 4
  161. .IX Item "Next"
  162. Install Perl on the same Windows machine. You might want to make sure
  163. that the Perl binary directory is listed in your system path.
  164. .Sp
  165. .Vb 1
  166. & C:ePerlebin;%SystemRoot%esystem32;%SystemRoot%;...
  167. .Ve
  168. .Sp
  169. You can manually check this by going to [Control Panel]->[System]->[Environment]
  170. .PP
  171. To see if everything is installed properly you can open a Command Shell
  172. and go into fIc:emrtg-2.13.2ebinfR. Type:
  173. .PP
  174. .Vb 1
  175. & perl mrtg
  176. .Ve
  177. .PP
  178. This should give you a friendly error message complaining about the missing s-1MRTGs0
  179. configuration file. Now, you have successfully installed s-1MRTGs0 and Perl.
  180. .SH "CONFIGURING MRTG"
  181. .IX Header "CONFIGURING MRTG"
  182. Now it is time to create a configuration for s-1MRTGs0. But before we begin you need to know a few things. Take an
  183. opportunity to gather the following information:
  184. .IP "(bu" 4
  185. The s-1IPs0 address or hostname and the s-1SNMPs0 port number, (if non standard), of the device you want to monitor.
  186. .IP "(bu" 4
  187. If you want to monitor something other than bytes in and out, you must also know the s-1SNMPOIDs0 of what you
  188. want to monitor.
  189. .IP "(bu" 4
  190. Finally you need to know the read-only s-1SNMPs0 community string
  191. for your device. If you don't know it, try fBpublicfR, that is the default.
  192. .PP
  193. For the rest of this document we will be using device fB10.10.10.1fR ( a s-1CISCOs0
  194. Catalyst 5000) with Community string fBpublicfR. We are interested in monitoring
  195. traffic, and the s-1CPUs0 load. Let's begin.
  196. .PP
  197. The first thing we do in setting up s-1MRTGs0 is making a default config file.
  198. Get to a cmd prompt and change to the fIc:emrtg-2.13.2ebinfR directory. Type the
  199. following command:
  200. .PP
  201. .Vb 1
  202. & perl cfgmaker public@10.10.10.1 --global "WorkDir: c:ewwwemrtg" --output mrtg.cfg
  203. .Ve
  204. .PP
  205. This creates an initial s-1MRTGs0 config file for you. Note that in this file all interfaces
  206. of your router will be stored by number. Unfortunately, these numbers are likely to change whenever you
  207. reconfigure your router. In order to work around this you can get fIcfgmakerfR to produce a configuration
  208. which is based on Ip numbers, or even Interface Descriptions. Check cfgmaker
  209. .PP
  210. If you get an error message complaining about fBno such namefR or fBno
  211. responsefR, your community name is probably wrong.
  212. .PP
  213. Now, let's take a look at the mrtg.cfg file that was created.
  214. .PP
  215. In Perl, a f(CW*(C`#*(C'fR is a comment, synonymous with f(CW*(C`REM*(C'fR in s-1DOSs0.
  216. .PP
  217. Add the following to the top of the mrtg.cfg file:
  218. .PP
  219. .Vb 1
  220. & WorkDir: D:eInetPubewwwrooteMRTG
  221. .Ve
  222. .PP
  223. This is where the web pages are created, usually a web root.
  224. .PP
  225. .Vb 6
  226. & ######################################################################
  227. & # Description: LCP SUWGB
  228. & # Contact: Administrator
  229. & # System Name: LC-Bridge
  230. & # Location: Here
  231. & #.....................................................................
  232. .Ve
  233. .PP
  234. TargetDevice's s-1IPs0 Address:Interface Number:Community:IP Address
  235. .PP
  236. .Vb 1
  237. & Target[10.10.10.1.1]: 1:public@10.10.10.1
  238. .Ve
  239. .PP
  240. This is the interface speed (Default is 10 megabits; for 100Mbit devices use 12500000 and so on...)
  241. .PP
  242. .Vb 1
  243. & MaxBytes[10.10.10.1.1]: 1250000
  244. .Ve
  245. .PP
  246. .Vb 1
  247. & Title[10.10.10.1.1]: LC-Bridge (sample.device): ether0
  248. .Ve
  249. .PP
  250. This section determines how the web page headers will look
  251. .PP
  252. .Vb 9
  253. & PageTop[10.10.10.1.1]: <H1>Traffic Analysis for ether0</H1>
  254. &  <TABLE>
  255. &  <TR><TD>System:</TD><TD>LC-Bridge inAndover</TD></TR>
  256. &  <TR><TD>Maintainer:</TD><TD>Administrator</TD></TR>
  257. &  <TR><TD>Interface:</TD><TD>ether0(1)</TD></TR>
  258. &  <TR><TD>IP:</TD><TD>sample.device(10.10.10.1)</TD></TR>
  259. &  <TR><TD>Max Speed:</TD>
  260. &  <TD>1250.0 kBytes/s (ethernetCsmacd)</TD></TR>
  261. &  </TABLE>
  262. .Ve
  263. .PP
  264. .Vb 12
  265. &  Target[10.10.10.1.2]: 2:public@10.10.10.1
  266. &  MaxBytes[10.10.10.1.2]: 1250000
  267. &  Title[10.10.10.1.2]: LC-Bridge (): ulink0
  268. &  PageTop[10.10.10.1.2]: <H1>Traffic Analysis for ulink0</H1>
  269. &   <TABLE>
  270. &   <TR><TD>System:</TD><TD>LC-Bridge inAndover</TD></TR>
  271. &   <TR><TD>Maintainer:</TD><TD>Administrator</TD></TR>
  272. &   <TR><TD>Interface:</TD><TD>ulink0(2)</TD></TR>
  273. &   <TR><TD>IP:</TD><TD>()</TD></TR>
  274. &   <TR><TD>Max Speed:</TD>
  275. &   <TD>1250.0 kBytes/s (ethernetCsmacd)</TD></TR>
  276. &   </TABLE>
  277. .Ve
  278. .PP
  279. .Vb 1
  280. &  #---------------------------------------------------------------
  281. .Ve
  282. .PP
  283. And that's a very basic s-1MRTGs0 config file. You can run this and see your
  284. results by going into the fIc:emrtg-2.13.2ebinfR directory and typing:
  285. .PP
  286. .Vb 1
  287. & perl mrtg mrtg.cfg
  288. .Ve
  289. .PP
  290. It is normal to get errors for the first two times you run this command. The
  291. errors will alert you about the fact that there have not been any log files
  292. in existence before.
  293. .PP
  294. If you take a look at those web pages they are not very exciting (yet). You need
  295. to have the s-1MRTGs0 files run every five minutes to produce the desired results.
  296. Just run it again after a few minutes. You should now be able to see the first
  297. lines in your graphs.
  298. .SH "MAKE MRTG RUN ALL THE TIME"
  299. .IX Header "MAKE MRTG RUN ALL THE TIME"
  300. Starting s-1MRTGs0 by hand every time you want to run it is not going to make you
  301. happy I guess.
  302. .PP
  303. There is a special option you can set in the s-1MRTGs0 configuration file so
  304. so that s-1MRTGs0 will not terminate after it was started. Instead it
  305. will wait for 5 minutes and then run again.
  306. .PP
  307. Add the option
  308. .PP
  309. .Vb 1
  310. & RunAsDaemon: yes
  311. .Ve
  312. .PP
  313. to your mrtg.cfg file and start it with:
  314. .PP
  315. .Vb 1
  316. & start /Dc:emrtg-2.13.2ebin wperl mrtg --logging=eventlog mrtg.cfg
  317. .Ve
  318. .PP
  319. If you use fBwperlfR instead of fBperlfR, no console window will show. s-1MRTGs0 is now
  320. running in the background. If it runs into problems it will tell you so
  321. over the EventLog. To stop s-1MRTGs0, open the Task Manager and terminate the
  322. &fBwperl.exefR process. If mrtg has anything to tell you these messages
  323. can be found in the event log.
  324. .PP
  325. If you put a shortcut with
  326. .PP
  327. .Vb 2
  328. & Target:    wperl mrtg --logging=eventlog mrtg.cfg
  329. & Start in:  c:emrtg-2.13.2ebin
  330. .Ve
  331. .PP
  332. into your start-up folder, s-1MRTGs0 will now start whenever you login to your s-1NTs0
  333. box.
  334. .PP
  335. If you do not want to log into your box just to start s-1MRTGs0. Have a look
  336. at http://www.firedaemon.com/mrtg-howto.html which describes a free tool to
  337. start any program as a Service. The pages gives specific instructions for
  338. &s-1MRTGs0 users.
  339. .SH "HOW TO SETUP MRTG AS A WINDOWS SERVICE"
  340. .IX Header "HOW TO SETUP MRTG AS A WINDOWS SERVICE"
  341. .Sh "Additional Prerequisites"
  342. .IX Subsection "Additional Prerequisites"
  343. .IP "(bu" 4
  344. &s-1MRTGs0 must be installed and fully configured on the target system.  In the
  345. following exercise the assumption is that s-1MRTGs0 is installed under c:emrtge
  346. and all the sample files use this location.
  347. .IP "(bu" 4
  348. Microsoft Tools fBs-1SRVANYs0.exefR (Applications as Services Utility) and
  349. &fBs-1INSTSRVs0.exefR (Service Installer) - Those files can be downloaded from
  350. Microsoft as a part of Windows 2000 Resource Kit at
  351. <http://www.microsoft.com/windows2000/techinfo/reskit/tools/default.asp>. 
  352. They are also available from other locations such as
  353. <http://www.electrasoft.com/srvany/srvany.htm>,
  354. <http://www.iopus.com/guides/srvany.htm>, etc.  Detailed instructions on how
  355. to use this package are available at
  356. <http://support.microsoft.com/kb/q137890/>.  In order to follow the steps in
  357. this HOW-TO you fBs-1MUSTs0fR obtain both executables.
  358. .IP "(bu" 4
  359. You must have administrative rights on the target system.
  360. .Sh "Preparation"
  361. .IX Subsection "Preparation"
  362. Please complete the following steps before starting the installation:
  363. .IP "(bu" 4
  364. Copy fBsrvany.exefR and fBinstsrv.exefR to c:emrtgebine (your s-1MRTGs0 bin directory).
  365. .IP "(bu" 4
  366. Create a file called fBmrtg.regfR anywhere on your system and paste the
  367. following content into it:
  368. .Sp
  369. .Vb 1
  370. & Windows Registry Editor Version 5.00
  371. .Ve
  372. .Sp
  373. .Vb 4
  374. & [HKEY_LOCAL_MACHINEeSYSTEMeCurrentControlSeteServiceseMRTGeParameters]
  375. & "Application"="c:eeperleebineewperl.exe"
  376. & "AppParameters"="c:eemrtgeebineemrtg --logging=eventlog c:eemrtgeebineemrtg.cfg"
  377. & "AppDirectory"="c:eemrtgeebinee"
  378. .Ve
  379. .Sh "Service Installation"
  380. .IX Subsection "Service Installation"
  381. Once again, assuming that s-1MRTGs0 is already fully installed and configured on
  382. the target system under c:emrtge the following steps are necessary to setup
  383. &s-1MRTGs0 as a service.
  384. .PP
  385. Using the command prompt go into the temporary directory where you unzipped
  386. the package.  When there type the following command to create a service
  387. named *(L"s-1MRTGs0*(R" in the Windows Services management console:
  388. .PP
  389. .Vb 1
  390. & instsrv MRTG c:emrtgebinesrvany.exe
  391. .Ve
  392. .PP
  393. Now you need to create the fBApp*fR entries required for the new service.  You
  394. can do this by either right-clicking on the mrtg.reg file and selecting
  395. &'merge' or by running the following command:
  396. .PP
  397. .Vb 1
  398. & regedit /s mrtg.reg
  399. .Ve
  400. .PP
  401. After setting up the registry entry it is time to point it to your s-1MRTGs0
  402. installation.  If you have installed s-1MRTGs0 under fIc:emrtgefR, you can skip this
  403. step.  Open your registry editor (Start -> Run -> regedt32), and locate the
  404. &fB[HKEY_LOCAL_MACHINEeSYSTEMeCurrentControlSeteServiceseMRTG]fR key.  Make
  405. sure that the fBImagePathfR variable is correctly pointing to fBsrvany.exefR
  406. located in your s-1MRTGs0 bin directory (for example c:emrtgebinesrvany.exe). 
  407. Next you have to expand the s-1MRTGs0 tree, and go to the
  408. &fB[HKEY_LOCAL_MACHINEeSYSTEMeCurrentControlSeteServiceseMRTGeParameters]fR
  409. key.  Under Parameters make sure that all the  fBApplicationfR variables are
  410. setup properly.
  411. .PP
  412. At this point you are ready to run the service.  The only thing left to do
  413. is to start the s-1MRTGs0 service in the Services management console.  After you
  414. do this, you should see two new processes running on your system: srvany.exe
  415. and wperl.exe.  Make sure to stop any previously running s-1MRTGs0 processes to
  416. avoid conflict.
  417. .PP
  418. Note that it is imperative to set the fBRunAsDaemon: yesfR option or the
  419. service will stop after just one single run!
  420. .SH "EXAMPLE"
  421. .IX Header "EXAMPLE"
  422. Now lets look at a config file to monitor what we wanted to on our mythical
  423. Cisco Cat 5000 *(-- utilization on ports 3, 5, 10, and 24, and the s-1CPUs0 Load,
  424. which will show us nonstandard mrtg configurations as well as more options..
  425. .PP
  426. .Vb 2
  427. & WorkDir: D:eInetPubewwwrooteMRTG
  428. & RunAsDaemon: yes
  429. .Ve
  430. .PP
  431. .Vb 6
  432. & ######################################################################
  433. & # Description: LCP SUWGB
  434. & # Contact: Administrator
  435. & # System Name: LC-Bridge
  436. & # Location: Here
  437. & #.....................................................................
  438. .Ve
  439. .PP
  440. .Vb 12
  441. & Target[10.10.10.1.1]: 3:public@10.10.10.1
  442. & MaxBytes[10.10.10.1.1]: 1250000
  443. & Title[10.10.10.1.1]: LC-Bridge (sample-device): ether0
  444. & PageTop[10.10.10.1.1]: <H1>Traffic Analysis for ether0</H1>
  445. &  <TABLE>
  446. & <TR><TD>System:</TD><TD>LC-Bridge inAndover</TD></TR>
  447. & <TR><TD>Maintainer:</TD><TD>Administrator</TD></TR>
  448. & <TR><TD>Interface:</TD><TD>ether0(3)</TD></TR>
  449. & <TR><TD>IP:</TD><TD>sample-device(10.10.10.1)</TD></TR>
  450. & <TR><TD>Max Speed:</TD>
  451. & <TD>1250.0 kBytes/s (ethernetCsmacd)</TD></TR>
  452. & </TABLE>
  453. .Ve
  454. .PP
  455. .Vb 1
  456. & #---------------------------------------------------------------
  457. .Ve
  458. .PP
  459. .Vb 12
  460. & Target[10.10.10.1.2]: 5:public@10.10.10.1
  461. & MaxBytes[10.10.10.1.2]: 1250000
  462. & Title[10.10.10.1.2]: LC-Bridge (): ulink0
  463. & PageTop[10.10.10.1.2]: <H1>Traffic Analysis for ulink0</H1>
  464. &  <TABLE>
  465. &  <TR><TD>System:</TD><TD>LC-Bridge inAndover</TD></TR>
  466. &  <TR><TD>Maintainer:</TD><TD>Administrator</TD></TR>
  467. &  <TR><TD>Interface:</TD><TD>ulink0(5)</TD></TR>
  468. &  <TR><TD>IP:</TD><TD>()</TD></TR>
  469. &  <TR><TD>Max Speed:</TD>
  470. &  <TD>1250.0 kBytes/s (ethernetCsmacd)</TD></TR>
  471. &  </TABLE>
  472. .Ve
  473. .PP
  474. .Vb 1
  475. & #---------------------------------------------------------------
  476. .Ve
  477. .PP
  478. .Vb 12
  479. & Target[10.10.10.1.1]: 10:public@10.10.10.1
  480. & MaxBytes[10.10.10.1.1]: 1250000
  481. & Title[10.10.10.1.1]: LC-Bridge (sample-device): ether0
  482. & PageTop[10.10.10.1.1]: <H1>Traffic Analysis for ether0</H1>
  483. &  <TABLE>
  484. &  <TR><TD>System:</TD><TD>LC-Bridge inAndover</TD></TR>
  485. &  <TR><TD>Maintainer:</TD><TD>Administrator</TD></TR>
  486. &  <TR><TD>Interface:</TD><TD>ether0(10)</TD></TR>
  487. &  <TR><TD>IP:</TD><TD>sample-device(10.10.10.1)</TD></TR>
  488. &  <TR><TD>Max Speed:</TD>
  489. &  <TD>1250.0 kBytes/s (ethernetCsmacd)</TD></TR>
  490. &  </TABLE>
  491. .Ve
  492. .PP
  493. .Vb 1
  494. & #---------------------------------------------------------------
  495. .Ve
  496. .PP
  497. .Vb 12
  498. & Target[10.10.10.1.2]: 24:public@10.10.10.1
  499. & MaxBytes[10.10.10.1.2]: 1250000
  500. & Title[10.10.10.1.2]: LC-Bridge (): ulink0
  501. & PageTop[10.10.10.1.2]: <H1>Traffic Analysis for ulink0</H1>
  502. &  <TABLE>
  503. &  <TR><TD>System:</TD><TD>LC-Bridge inAndover</TD></TR>
  504. &  <TR><TD>Maintainer:</TD><TD>Administrator</TD></TR>
  505. &  <TR><TD>Interface:</TD><TD>ulink0(24)</TD></TR>
  506. &  <TR><TD>IP:</TD><TD>()</TD></TR>
  507. &  <TR><TD>Max Speed:</TD>
  508. &  <TD>1250.0 kBytes/s (ethernetCsmacd)</TD></TR>
  509. &  </TABLE>
  510. .Ve
  511. .PP
  512. .Vb 1
  513. & #---------------------------------------------------------------
  514. .Ve
  515. .PP
  516. .Vb 18
  517. & # Router CPU load %
  518. & Target[cpu.1]:1.3.6.1.4.1.9.2.1.58.0&1.3.6.1.4.1.9.2.1.58.0:public@10.10.10.1
  519. & RouterUptime[cpu.1]: public@10.10.10.1
  520. & MaxBytes[cpu.1]: 100
  521. & Title[cpu.1]: CPU LOAD
  522. & PageTop[cpu.1]: <H1>CPU Load %</H1>
  523. & Unscaled[cpu.1]: ymwd
  524. & ShortLegend[cpu.1]: %
  525. & XSize[cpu.1]: 380
  526. & YSize[cpu.1]: 100
  527. & YLegend[cpu.1]: CPU Utilization
  528. & Legend1[cpu.1]: CPU Utilization in % (Load)
  529. & Legend2[cpu.1]: CPU Utilization in % (Load)
  530. & Legend3[cpu.1]:
  531. & Legend4[cpu.1]:
  532. & LegendI[cpu.1]:
  533. & LegendO[cpu.1]: &nbsp;Usage
  534. & Options[cpu.1]: gauge
  535. .Ve
  536. .PP
  537. This is a nice example of how to monitor any s-1SNMPs0 device if you know what s-1OIDs0
  538. you want to use. Once again, for an explanation of the more advance features of
  539. mrtg, please see the rest of the documentation.
  540. .SH "AUTHORS"
  541. .IX Header "AUTHORS"
  542. Tobi Oetiker <oetiker@ee.ethz.ch>,
  543. David S. Divins <ddivins@moon.jic.com>,
  544. Steve Pierce <MRTG@HDL.com>,
  545. Artyom Adjemov <one.bofh@gmail.com>,
  546. Ilja Ivanov <ivanov@bseu.by>
  547. Karel Fajkus <karel@fajkus.cz>