Temat: pomocy z MRTG
Witam, prosiłbym o pomoc w mrtg. Chciałbym żeby mrtg pobierał dane z pliku i je wyświetlał
plik:
>cat thermal.log
0
3.50
21:47:02
Thermal Statejak widać plik ma cztery linie, oczywiście uprawnienia 777
mrtg.conf
# cat /etc/mrtg.cfg
######################################################################
# Multi Router Traffic Grapher -- Sample Configuration File
######################################################################
# This file is for use with mrtg-2.5.4c
# Global configuration
WorkDir: /var/www/mrtg
WriteExpires: Yes
Title[^]: Traffic Analysis for
# 128K leased line
# ----------------
#Title[leased]: a 128K leased line
#PageTop[leased]: <H1>Our 128K link to the outside world</H1>
#Target[leased]: 1:public@router.localnet
#MaxBytes[leased]: 16000
Target[thermal]: `/bin/cat /usr/local/etc/mrtg/thermal.log`
Pagetop[thermal]: <h1>Thermal State in My Town</h1>
Title[thermal]: Thermal State
PNGTitle[thermal]: Thermal State in Server Room
MaxBytes[thermal]: 50
AbsMax[thermal]: 50
LegendI[thermal]: Outer
LegendO[thermal]: Inner
kMG[thermal]: C
Options[thermal]: nopercent,gauge,noinfo
YLegend[thermal]: Temp, C
ShortLegend[thermal]:
Legend1[thermal]: external
Legend2[thermal]: internalniestety, mrtg ciągle zero, natomiast log wywala
2013-04-08 21:45:02: ERROR: Target[thermal][_OUT_] ' $target->[0]{$mode} ' did not eval into defined data
2013-04-08 21:50:02: WARNING: Problem with External get '/bin/cat /usr/local/etc/mrtg/thermal.log':
Expected a Number for 'out' but nothing'pomysły?