[mrtg] Re: quwstion
Cook, Garry
GWCOOK at mactec.com
Wed Oct 29 17:54:41 MET 2003
Yeah, what Pete said.
However, since this sounds urgent, here is the config that I use.
Please note:
1) If either of our email clients break lines, you may need to repair
them before it will work for you.
2) You'll need to replace the <ip_address> and <community_ro> variables
throughout the script.
3) Some of these targets call a script, which I can send to you later if
you find that you want to use them as well. Although if you search the
archives you'll probably find a link to where I originally gathered this
information, which may even provide updated scripts/configs/etc.
4) If you use routers2.cgi as your front-end, I created a bunch of
(IMHO) cool icons for these targets, although you'll have to assign them
manually in routers2.conf or tweak the cgi script to associate them with
the targets.
#### Begin Config ####
### Global Config Options
# for UNIX
# WorkDir: /home/http/mrtg
# or for NT
# WorkDir: c:\mrtgdata
### Global Defaults
# to get bits instead of bytes and graphs growing to the right
# Options[_]: growright, bits
Timezone[_]: MST7MDT
Unscaled[$]: ym
LibAdd: /usr/local/rrdtool/lib/perl/
#---------------------------------------------------------------
Target[<ip_address>_linevolt]:1.3.6.1.4.1.318.1.1.1.3.2.1.0&1.3.6.1.4.1.
318.1.1.1.4.2.1.0:<community_ro>@<ip_address>
MaxBytes[<ip_address>_linevolt]: 250
Title[<ip_address>_linevolt]: Current AC Line Voltage
PageTop[<ip_address>_linevolt]: <H1>Current Line Voltage</H1>
WithPeak[<ip_address>_linevolt]: wmy
Options[<ip_address>_linevolt]:absolute, gauge, nopercent
Ylegend[<ip_address>_linevolt]:Voltage
ShortLegend[<ip_address>_linevolt]: Volts
LegendI[<ip_address>_linevolt]: Input Voltage
LegendO[<ip_address>_linevolt]: Output Voltage
Legend1[<ip_address>_linevolt]: Input Voltage
Legend2[<ip_address>_linevolt]: Output Voltage
Legend3[<ip_address>_linevolt]: Max Input Voltage
Legend4[<ip_address>_linevolt]: Max Output Voltage
#---------------------------------------------------------------
Target[<ip_address>_mmlinevolt]:
1.3.6.1.4.1.318.1.1.1.3.2.3.0&1.3.6.1.4.1.318.1.1.1.3.2.2.0:<community_r
o>@<ip_address>
MaxBytes[<ip_address>_mmlinevolt]: 250
Title[<ip_address>_mmlinevolt]: Min\Max AC Line Voltage
PageTop[<ip_address>_mmlinevolt]: <H1>Min\Max Line Voltage</H1>
WithPeak[<ip_address>_mmlinevolt]: wmy
Options[<ip_address>_mmlinevolt]:absolute, gauge, nopercent
Ylegend[<ip_address>_mmlinevolt]:Voltage
ShortLegend[<ip_address>_mmlinevolt]: Volts
LegendI[<ip_address>_mmlinevolt]: Min Voltage
LegendO[<ip_address>_mmlinevolt]: Max Voltage
Legend1[<ip_address>_mmlinevolt]: Min Voltage
Legend2[<ip_address>_mmlinevolt]: Max Voltage
Legend3[<ip_address>_mmlinevolt]: Max Min Voltage
Legend4[<ip_address>_mmlinevolt]: Max Max Voltage
#---------------------------------------------------------------
Target[<ip_address>_reason]:
1.3.6.1.4.1.318.1.1.1.3.2.5.0&1.3.6.1.4.1.318.1.1.1.3.2.5.0:<community_r
o>@<ip_address>
MaxBytes[<ip_address>_reason]: 10
AbsMax[<ip_address>_reason]: 10
Unscaled[<ip_address>_reason]: dmwy
Title[<ip_address>_reason]: Last Reason On-Battery
PageTop[<ip_address>_reason]: <H1>Last Reason On-Battery</H1>
See the <a href="reasons.txt">reasons</a> for on-battery.
Options[<ip_address>_reason]:absolute,gauge,noi
Ylegend[<ip_address>_reason]: Cause Code
ShortLegend[<ip_address>_reason]:
#LegendI[<ip_address>_reason]: Cause
LegendO[<ip_address>_reason]: Cause
#Legend1[<ip_address>_reason]: Cause
Legend2[<ip_address>_reason]: Cause
#---------------------------------------------------------------
Target[<ip_address>_batcap]:
1.3.6.1.4.1.318.1.1.1.2.2.1.0&1.3.6.1.4.1.318.1.1.1.2.2.1.0:<community_r
o>@<ip_address>
MaxBytes[<ip_address>_batcap]: 100
Title[<ip_address>_batcap]: Battery Capacity
PageTop[<ip_address>_batcap]: <H1>Battery Capacity</H1>
WithPeak[<ip_address>_batcap]: wmy
Options[<ip_address>_batcap]:absolute,gauge,noo
Ylegend[<ip_address>_batcap]:Capacity
ShortLegend[<ip_address>_batcap]:%
LegendI[<ip_address>_batcap]: Capacity
#LegendO[<ip_address>_batcap]: Capacity
Legend1[<ip_address>_batcap]: Capacity, Percent
#Legend2[<ip_address>_batcap]: Capacity, Percent
Legend3[<ip_address>_batcap]: Max Capacity, Percent
#Legend4[<ip_address>_batcap]: Max Capacity, Percent
#---------------------------------------------------------------
Target[<ip_address>_battemp]:
1.3.6.1.4.1.318.1.1.1.2.2.2.0&1.3.6.1.4.1.318.1.1.1.2.2.2.0:<community_r
o>@<ip_address> * 1.8 + 32
MaxBytes[<ip_address>_battemp]: 100
Title[<ip_address>_battemp]: Battery Temperature
PageTop[<ip_address>_battemp]: <H1>Battery Temperature</H1>
WithPeak[<ip_address>_battemp]: wmy
Options[<ip_address>_battemp]:absolute,gauge,noi
Ylegend[<ip_address>_battemp]:Temperature
#LegendI[<ip_address>_battemp]: Temperature
LegendO[<ip_address>_battemp]: Temperature
ShortLegend[<ip_address>_battemp]: Degress
#Legend1[<ip_address>_battemp]: Degrees Fahrenheit
Legend2[<ip_address>_battemp]: Degrees Fahrenheit
#Legend3[<ip_address>_battemp]: Max Degrees
Legend4[<ip_address>_battemp]: Max Degrees
#---------------------------------------------------------------
Target[<ip_address>_acfreq]:
1.3.6.1.4.1.318.1.1.1.3.2.4.0&1.3.6.1.4.1.318.1.1.1.4.2.2.0:<community_r
o>@<ip_address>
MaxBytes[<ip_address>_acfreq]: 250
Title[<ip_address>_acfreq]: AC Frequency
PageTop[<ip_address>_acfreq]: <H1>In and Out Frequency</H1>
WithPeak[<ip_address>_acfreq]: wmy
Options[<ip_address>_acfreq]:absolute, gauge, nopercent
Ylegend[<ip_address>_acfreq]:Frequency
ShortLegend[<ip_address>_acfreq]: Hertz
LegendI[<ip_address>_acfreq]: Input Frequency
LegendO[<ip_address>_acfreq]: Output Frequency
Legend1[<ip_address>_acfreq]:Input Frequency, Hertz
Legend2[<ip_address>_acfreq]:Output Frequency, Hertz
Legend3[<ip_address>_acfreq]:Max Input Frequency, Hertz
Legend4[<ip_address>_acfreq]:Max Output Frequency, Hertz
#---------------------------------------------------------------
Target[<ip_address>_outcur]:
1.3.6.1.4.1.318.1.1.1.4.2.4.0&1.3.6.1.4.1.318.1.1.1.4.2.4.0:<community_r
o>@<ip_address>
MaxBytes[<ip_address>_outcur]: 250
Title[<ip_address>_outcur]: Output Current
PageTop[<ip_address>_outcur]: <H1>Output Current</H1>
WithPeak[<ip_address>_outcur]: wmy
Options[<ip_address>_outcur]:absolute,gauge,nopercent,noi
Ylegend[<ip_address>_outcur]:Current
ShortLegend[<ip_address>_outcur]: Amps
#LegendI[<ip_address>_outcur]: Current
LegendO[<ip_address>_outcur]: Current
#Legend1[<ip_address>_outcur]:Current, Amps
Legend2[<ip_address>_outcur]:Current, Amps
#Legend3[<ip_address>_outcur]:Max Current, Amps
Legend4[<ip_address>_outcur]:Max Current, Amps
#---------------------------------------------------------------
Target[<ip_address>_load]:
1.3.6.1.4.1.318.1.1.1.4.2.3.0&1.3.6.1.4.1.318.1.1.1.4.2.3.0:<community_r
o>@<ip_address>
MaxBytes[<ip_address>_load]: 10000
Title[<ip_address>_load]: Load
PageTop[<ip_address>_load]: <H1>Load</H1>
WithPeak[<ip_address>_load]: wmy
Options[<ip_address>_load]:gauge,nopercent,noi
ShortLegend[<ip_address>_load]: Percent
Ylegend[<ip_address>_load]:Load
#LegendI[<ip_address>_load]: Load
LegendO[<ip_address>_load]: Load
#Legend1[<ip_address>_load]:Load, Percent
Legend2[<ip_address>_load]:Load, Percent
#Legend3[<ip_address>_load]:Max Load, Percent
Legend4[<ip_address>_load]:Max Load, Percent
#---------------------------------------------------------------
Target[<ip_address>_runtime]: `perl /usr/local/mrtg/bin/getruntime
<ip_address> <community_ro> enterprises.318.1.1.1.2.2.3.0`
MaxBytes[<ip_address>_runtime]: 10000
Title[<ip_address>_runtime]: Runtime Available
PageTop[<ip_address>_runtime]: <H1>Runtime Available</H1>
WithPeak[<ip_address>_runtime]: wmy
Options[<ip_address>_runtime]:gauge,nopercent,noo
Ylegend[<ip_address>_runtime]:Runtime
ShortLegend[<ip_address>_runtime]: Minutes
LegendI[<ip_address>_runtime]: Runtime
#LegendO[<ip_address>_runtime]: Runtime
Legend1[<ip_address>_runtime]:Runtime, Minutes
#Legend2[<ip_address>_runtime]:Runtime, Minutes
Legend3[<ip_address>_runtime]:Max Runtime, Minutes
#Legend4[<ip_address>_runtime]:Max Runtime, Minutes
#---------------------------------------------------------------
Target[<ip_address>_battime]: `/usr/local/mrtg/bin/getruntime
<ip_address> <community_ro> enterprises.318.1.1.1.2.1.2.0`
MaxBytes[<ip_address>_battime]: 10000
Title[<ip_address>_battime]: Time on Battery
PageTop[<ip_address>_battime]: <H1>Time on Battery</H1>
<H2>The script used to obtain these values can be found <A
HREF="getruntime">here</A>.</H2><P>
WithPeak[<ip_address>_battime]: wmy
Options[<ip_address>_battime]:gauge,nopercent,noo
Ylegend[<ip_address>_battime]:Time
ShortLegend[<ip_address>_battime]: Minutes
LegendI[<ip_address>_battime]: On-Battery Time
#LegendO[<ip_address>_battime]: On-Battery Time
Legend1[<ip_address>_battime]: On-Battery Time
#Legend2[<ip_address>_battime]: On-Battery Time
Legend3[<ip_address>_battime]: Max On-Battery Time
#Legend4[<ip_address>_battime]: Max On-Battery Time
#---------------------------------------------------------------
#### End Config ####
Garry W. Cook, CCNA
Network Infrastructure Manager
MACTEC, Inc. - http://www.mactec.com/
303.308.6228 (Office) - 720.220.1862 (Mobile)
> 1) Search the archives.
> 2) Search the MIB.
> 3) Check http://noc.urdirect.net/mrtg/ups.
>
> Pete Templin
> -----Original Message-----
>
> Hello,
> i've got question when it comes to ups apc monitoring.
> I would like to monitor temperature and load using mrtg.
> Please send me information (maybe some perl script) how to do
> it, because i don't know. It's important, so please answer as
> quick as it's possible. Give me information on priv.
>
> Thank you.
>
> Marcin.
--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive http://www.ee.ethz.ch/~slist/mrtg
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the mrtg
mailing list