Cheshire Cat Computing

Software support and information
It is currently Wed Jun 19, 2013 10:24 am

All times are UTC + 12 hours [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Thu Feb 16, 2012 5:02 am 
Offline
Silver User

Joined: Wed Jan 26, 2005 11:10 pm
Posts: 17
Have been made the MRTG config file for get data from HWG-STE Themperature and Humidity server

Code:
# MRTG config file for server HWg-STE
# HWg-STE
# HWg-STE
#

LogFormat: rrdtool
WorkDir: /usr/local/www/routers2/workdir
PathAdd: /usr/local/bin/
routers.cgi*Icon: server-sm.gif
routers.cgi*ShortDesc: HWg-STE
routers.cgi*Description: HWg-STE Humidity Sensor
Options[$]: growright, gauge
routers.cgi*Options[$]: available

Target[therm]: enterprises.21796.4.1.3.1.4.1&enterprises.21796.4.1.3.1.4.1:public@[domain or ip]
RouterName[therm]: .1.3.6.1.4.1.21796.4.1.3.1.2.1:public@[domain or ip]
RouterUptime[therm]: .1.3.6.1.2.1.1.3.0:public@[domain or ip]
Title[therm]: Temperature sensor
Options[therm]: gauge, absolute, noi, logscale
PageTop[therm]: <h1>Temperature in server roum</h1>
YLegend[therm]: Temperature values
ShortLegend[therm]: &nbsp;&deg;C
LegendO[therm]: &nbsp;Temp:
Legend2[therm]:  Celsius
Legend3[therm]:  Max
WithPeak[therm]: wmy
MaxBytes[therm]: 70
routers.cgi*InOut[therm]: no
routers.cgi*WithPeak[therm]: none
routers.cgi*Mode[therm]: range
routers.cgi*Graph[therm]: netappTemp
routers.cgi*Mode[therm]: generic
routers.cgi*Options[therm]: nopercent, nototal

Target[humidity]: .1.3.6.1.4.1.21796.4.1.3.1.4.2&.1.3.6.1.4.1.21796.4.1.3.1.4.2:public@[domain or ip]
RouterName[humidity]: .1.3.6.1.4.1.21796.4.1.3.1.2.2:public@[domain or ip]
RouterUptime[humidity]: .1.3.6.1.2.1.1.3.0:public@[domain or ip]
Title[humidity]: Humidity sensor
Options[humidity]: gauge, absolute, noi, logscale
PageTop[humidity]: <h1>Humidity load values</h1>
YLegend[humidity]: Percentage Humidity values
ShortLegend[humidity]: %RH
LegendI[humidity]: &nbsp;Humidity:
LegendO[humidity]: &nbsp;Humidity:
Legend1[humidity]: &nbsp;%RH
Legend2[humidity]: &nbsp;%RH
Legend3[humidity]: Max Observed load
WithPeak[humidity]: wmy
MaxBytes[humidity]: 100
Timezone[humidity]: Berlin
routers.cgi*InOut[humidity]: no
routers.cgi*WithPeak[humidity]: none
routers.cgi*Mode[humidity]: generic
routers.cgi*Options[humidity]: nopercent, nototal
routers.cgi*LegendTI[humidity]: Humidity:
routers.cgi*LegendTO[humidity]: Humidity:
routers.cgi*LegendAI[humidity]: Humidity:
routers.cgi*LegendAO[humidity]: Humidity:


This is tested and worked in my routers.cgi

Thanks for any additions or changes


Last edited by Destor on Thu Feb 16, 2012 11:49 pm, edited 2 times in total.

Top
 Profile  
 
PostPosted: Thu Feb 16, 2012 5:06 am 
Offline
Silver User

Joined: Wed Jan 26, 2005 11:10 pm
Posts: 17
oops..

But i do not know how get right values for footer under graphs

In my page on routers.cgi on footer show:

Code:
Total over last 24 hours:    Humidity:   156.28 k%RH   
95th Percentile for last 24 hours:    Humidity:   22.22 %RH   (22.22 %)


how change it 156.28 k to right value ?


Top
 Profile  
 
PostPosted: Thu Feb 16, 2012 11:50 pm 
Offline
Silver User

Joined: Wed Jan 26, 2005 11:10 pm
Posts: 17
Solved.
Added in Options: nototal


Top
 Profile  
 
PostPosted: Mon Apr 02, 2012 11:19 pm 
Offline
User

Joined: Mon Apr 02, 2012 11:18 pm
Posts: 1
Thanks for this nice code!

I have a little problem with it, the degrees are rounded by MRTG/Router.cgi somehow. My serverroom temp is by exampe 21.8 degrees, but the MRTG stats give 22 degrees for that.

Is it possible to change that somehow? Thanks!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 12 hours [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group