monitors:retmt

Error loading plugin struct
ParseError: syntax error, unexpected 'fn' (T_STRING), expecting :: (T_PAAMAYIM_NEKUDOTAYIM)
More info is available in the error log.

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
monitors:retmt [2020/01/28 10:18] – [Changelog] wnelismonitors:retmt [2020/01/28 10:22] (current) – [Changelog] wnelis
Line 1: Line 1:
 ====== retmt: RETrieve Machine Temperature ====== ====== retmt: RETrieve Machine Temperature ======
  
-^ Author | [[ wim.nelis@ziggo.nl | Wim Nelis ]] | +^ Author         | [[wim.nelis@ziggo.nl| Wim Nelis ]]  
-^ Compatibility | Xymon 4.2 | +^ Compatibility  | Xymon 4.2                           
-^ Requirements | Perl | +^ Requirements   | Perl                                
-^ Download | None | +^ Download       | None                                
-^ Last Update | 2017-10-18 |+^ Last Update    2020-01-28                          |
  
 ===== Description ===== ===== Description =====
  
-This client-side script retrieves the CPU and GPU temperatures of a Raspberry Pi 3 and reports them to the xymon server. A rather generic way of reporting the values is used, in which the minimum, the maximum and the average temperature are reported. The graph shows the range of the temperatures (a 100% confidence interval) and the average of the temperatures. (This method is usable for an arbitrary number of temperature sensors. It is used to report the temperatures of a switch with 29 temperature sensors.)+This client-side script retrieves the CPU and GPU temperatures of a Raspberry Pi 3 and reports them to the xymon server. A rather generic way of reporting the values is used, in which the minimum, the maximum and the average temperature are reported. The graph shows the range of the temperatures (a 100% confidence interval) and the average of the temperatures. (This method is usable for an arbitrary number of temperature sensors. It is also used to report the temperatures of a switch with 29 temperature sensors.)
  
 ===== Installation ===== ===== Installation =====
Line 269: Line 269:
 <code> <code>
 # #
-# Graph definitions for test 'env'.+# Graph definition for test 'env'.
 # #
 [env] [env]
- TITLE , temperature  + FNPATTERN ^env\.temp\.(.+)\.rrd$ 
 + TITLE , Temperature  
  YAXIS Temperature [C]  YAXIS Temperature [C]
- -l 0 + DEF:temp@RRDIDX@=@RRDFN@:Temperature:AVERAGE 
- DEF:temp=env.temp.rrd:Temperature:AVERAGE + DEF:tmin@RRDIDX@=@RRDFN@:MinTemp:MIN 
- DEF:tmin=env.temp.rrd:MinTemp:MIN + DEF:tmax@RRDIDX@=@RRDFN@:MaxTemp:MAX 
- DEF:tmax=env.temp.rrd:MaxTemp:MAX + CDEF:trng@RRDIDX@=tmax@RRDIDX@,tmin@RRDIDX@,- 
- CDEF:trng=tmax,tmin,+ LINE1:tmin@RRDIDX@#ffa07a 
- LINE1:tmin#ffa07a + AREA:trng@RRDIDX@#ffa07a::STACK 
- AREA:trng#ffa07a::STACK + LINE1:temp@RRDIDX@#EE0000:@RRDPARAM@ 
- LINE1:temp#EE0000:Average + GPRINT:tmin@RRDIDX@:MIN:Min \: %5.1lf C 
- GPRINT:tmin:MIN:Min \: %5.1lf C + GPRINT:tmax@RRDIDX@:MAX:Max \: %5.1lf C 
- GPRINT:tmax:MAX:Max \: %5.1lf C + GPRINT:temp@RRDIDX@:AVERAGE:Avg \: %5.1lf C 
- GPRINT:temp:AVERAGE:Avg \: %5.1lf C + GPRINT:temp@RRDIDX@:LAST:Cur \: %5.1lf C\n
- GPRINT:temp:LAST:Cur \: %5.1lf C\n+
 </code> </code>
  
Line 301: Line 301:
     * Initial release     * Initial release
   * **2020-01-28**   * **2020-01-28**
-    * Include 'cpu' in the name of the RRD+    * Include 'cpu' in the name of the RRD, change graph definition accordingly.
  
  • monitors/retmt.1580206689.txt.gz
  • Last modified: 2020/01/28 10:18
  • by wnelis