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

I would like to graph datas like VCC, temperature INP3 voltage, INP5 current. Maybe someone already has working mrtg.cfg file to share ?

Also Tomek, i read you are preparing additional board for current till 12A, when can it be ready ? Im quite interested in such stuff, cause i wanna use lan controller within my solar power system to check values (voltage and current) from solar panels.

Thanks for response,
Andy

PS: I understand and speak polish without problem, so you can answer me in polish. Just I cant write. Sorry...
<t></t>
Odpowiedz
#2
MRTG nie testowałem, może ktoś inny sie podzieli plikiem konfiguracyjym.
Możesz spróbowac Lstat http://tinycontrol.ats.pl/forum/viewtopi...f=5&t=2592

Co do pomiaru prądu do 12.5A, to mam już w testach taką standardową płytkę z acs711, więc myślę, że tak za około tydzień lub dwa powinien byc soft do jego obsługi. Napisz jeszcze jakie masz maksymlane napięcia na tym solarze?
pozdrawiam
tomek
Odpowiedz
#3
Hi
The simplest way to graph data provided by Lan Kontroler is to use SNMP. MRTG is able to utilize SNMP to get data and graph them. This is easy.
Eg. here you can find how to use MRTG to graph SNMP data, base on OID: http://www.enterastream.com/whitepapers/...-cap9.html
Lan Kntroler OID's MIB is located in last pages of manual.
<t></t>
Odpowiedz
#4
Thanks, I will try. If someone has working mrtg.cfg, it can save me a lot of time.

Voltage 0V - 36V (max i measured).
<t></t>
Odpowiedz
#5
Working for my:


[root@wola root]$ cat /opt/etc/mymrtg.cfg
# Created by
# /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: polish
EnableIPv6: no
WorkDir: /opt/smb/html
#RunAsDaemon:Yes
Interval:5
LoadMIBs: mchip.mib
#nobanner
######################################################################
# System:
# Description: 3.22
# Contact: LAN_SWITCH-HOME
# Location:
######################################################################
Target[temp_1]: enterprises.17095.5.1.0&enterprises.17095.5.1.0:public@10.10.10.210:::::2
MaxBytes[temp_1]: 50
Unscaled[temp_1]: dwmy
YLegend[temp_1]: Temperatura(oC)
ShortLegend[temp_1]: oC
Factor[temp_1]: 1
Xsize[temp_1]: 600
Ysize[temp_1]: 200
Ytics[temp_1]: 5
YTicsFactor[temp_1]: 1
LegendI[temp_1]: Okno Temperatura DS18B20&nbsp;
LegendO[temp_1]: Okno Temperatura DS18B20&nbsp;
Legend1[temp_1]: oC
Legend2[temp_1]: oC
Options[temp_1]: gauge,nopercent,growright
Title[temp_1]: Okno Temperatura DS18B20
PageTop[temp_1]: Temperatura DS18B20
Suppress[temp_1]: y

Target[temp_2]: enterprises.17095.6.1.0&enterprises.17095.6.1.0:public@10.10.10.210:::::2
MaxBytes[temp_2]: 50
Unscaled[temp_2]: dwmy
YLegend[temp_2]: Temperatura DTH22(oC)
ShortLegend[temp_2]: oC
Factor[temp_2]: 1
Xsize[temp_2]: 600
Ysize[temp_2]: 200
Ytics[temp_2]: 5
YTicsFactor[temp_2]: 1
LegendI[temp_2]: Okno Temperatura DTH22&nbsp;
LegendO[temp_2]: Okno Temperatura DTH22&nbsp;
Legend1[temp_2]: oC
Legend2[temp_2]: oC
Options[temp_2]: gauge,nopercent,growright
Title[temp_2]: Okno Temperatura DTH22
PageTop[temp_2]: Temperatura DTH22
Suppress[temp_2]: y

Target[extsens_2]: enterprises.17095.6.2.0&enterprises.17095.6.2.0:public@10.10.10.210:::::2
MaxBytes[extsens_2]: 100
Unscaled[extsens_2]: dwmy
YLegend[extsens_2]: RH(%)
ShortLegend[extsens_2]: %
Factor[extsens_2]: 1
Xsize[extsens_2]: 600
Ysize[extsens_2]: 200
Ytics[extsens_2]: 10
YTicsFactor[extsens_2]: 1
LegendI[extsens_2]: Humidity &nbsp;
LegendO[extsens_2]: Humidity &nbsp;
Legend1[extsens_2]: %
Legend2[extsens_2]: %
Options[extsens_2]: gauge,nopercent,growright
Title[extsens_2]: Humidity
PageTop[extsens_2]: Humidity
Suppress[extsens_2]: y
<t></t>
Odpowiedz
#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&nbsp;
LegendO[temp_1]: Temperatura DS18B20&nbsp;
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&nbsp;
LegendO[temp_2]: Temperatura DS18B20&nbsp;
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


Skocz do:


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