Jump to content

sensors + mrtg в debian


Recommended Posts

Подскажите как правильно снять температуру при помощи sensors? как правильно прописать в mrtg.cfg

Link to post
Share on other sites

прописал

 

Title[localhost.temp]: Temperature

PageTop[localhost.temp]: <H1>Temperature</H1>

Target[localhost.temp]: `/usr/bin/sensors|grep "Core0 Temp"|awk {'print $3'}|cut -c 2-3`

Options[localhost.temp]: gauge,growright,nopercent,unknaszero

MaxBytes[localhost.temp]: 80

YLegend[localhost.temp]: Temperature

ShortLegend[localhost.temp]: C

Legend1[localhost.temp]: Temperature in C

Legend2[localhost.temp]: Temperature in C

LegendI[localhost.temp]: CPU Temp

LegendO[localhost.temp]: CPU Temp

 

графики рисуют что проц 50-52 градусов, хотя реально 40-42, и в логах постоянно ошибка

 

 

2011-04-24 17:22:01: ERROR: Target[localhost.temp][_OUT_] ' $target->[7]{$mode}$

2011-04-24 17:23:01: WARNING: Problem with External get '/usr/bin/sensors|grep $

Expected a Number for 'out' but nothing'

 

/usr/bin/sensors|grep "Core0 Temp"|awk {'print $3'}|cut -c 2-3 в консоли говорит правду о температуре

 

max# /usr/bin/sensors|grep "Core0 Temp"|awk {'print $3'}|cut -c 2-3

42

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...