Ocena wątku:
  • 0 głosów - średnia: 0
  • 1
  • 2
  • 3
  • 4
  • 5
MRTG collect and graph datas
#6
Hello,

UPDATE for newer versions:

1, use
Kod:
iso.3.6.1.4.1.17095.5.1.0&iso.3.6.1.4.1.17095.5.1.0:public@X.X.X.X:::::2
instead of enterprise.3.6.1.4.1.17095.5.1.0&enterprises.3.6.1.4.1.17095.5.1.0:public@X.X.X.X:::::2
2. because the temperature is expressed as 320 for 32.0 'C you must divide it by a factor of 10
Kod:
Factor[temp_1]: 0.1
Xsize[temp_1]: 600
Ysize[temp_1]: 200
Ytics[temp_1]: 5
YTicsFactor[temp_1]: 0.1

BUT my second grapth seems not to read the sensor:
Kod:
# /opt/bin/cfgmaker --global "WorkDir: /opt/var/www/html" --output /etc/mymrtg.cfg public@10.10.10.210
#ConversionCode: /opt/bin/conv.pl

### 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
Language: english
EnableIPv6: no
WorkDir: /var/www/html/mrtg
RunAsDaemon:Yes
#Interval:5
LoadMIBs: mchip.mib
#nobanner
######################################################################
# System:
# Description: 3.22
# Contact: LAN_SWITCH-HOME
# Location:
######################################################################
Target[temp_1]: iso.3.6.1.4.1.17095.5.3.0&iso.3.6.1.4.1.17095.5.3.0:public@10.0.0.163:::::2
MaxBytes[temp_1]: 50
Unscaled[temp_1]: dwmy
YLegend[temp_1]: Temperatura(oC)
ShortLegend[temp_1]: oC
Factor[temp_1]: 0.1
Xsize[temp_1]: 600
Ysize[temp_1]: 200
Ytics[temp_1]: 5
YTicsFactor[temp_1]: 0.1
LegendI[temp_1]: Temperatura DS18B20 
LegendO[temp_1]: Temperatura DS18B20 
Legend1[temp_1]: oC
Legend2[temp_1]: oC
Options[temp_1]: gauge,nopercent,growright
Title[temp_1]: Temperatura DS18B20
PageTop[temp_1]:  Temperatura DS18B20
Suppress[temp_1]: y

Target[temp_2]: iso.3.6.1.4.1.17095.5.4.0&iso.3.6.1.4.1.17095.5.4.0:public@10.0.0.163:::::2
MaxBytes[temp_2]: 50
Unscaled[temp_2]: dwmy
YLegend[temp_2]: Temperatura(oC)
ShortLegend[temp_2]: oC
Factor[temp_2]: 0.1
Xsize[temp_2]: 600
Ysize[temp_2]: 200
Ytics[temp_2]: 5
YTicsFactor[temp_2]: 0.1
LegendI[temp_2]: Temperatura DS18B20 
LegendO[temp_2]: Temperatura DS18B20 
Legend1[temp_2]: oC
Legend2[temp_2]: oC
Options[temp_2]: gauge,nopercent,growright
Title[temp_2]: Temperatura
PageTop[temp_2]:  Temperatura DS18B20
Suppress[temp_2]: y
<t></t>
Odpowiedz


Wiadomości w tym wątku

Skocz do:


Użytkownicy przeglądający ten wątek: 3 gości