HydraFerret Graph Definitions

A Blog of Random Tivial Things


HydraFerret Graph Definitions

#
# Supplementary file for HydraFerret data to be graphed in xymon
#
# To Use:
# 1. Place in /etc/xymon/graphs.d/hydraferret.cfg
#    If xymon was compiled from source rather than installed
#    as a package, this might be held in the alternative dir:
#        ~xymon/server/etc/graphs.d/hydraferet.cfg
#
# 2. Ensure /etc/xymon.graphs.cfg include a line:
#        include /etc/xymon/graphs.d/hydraferret.cfg
#    If using an alternative location adjust the reference.
#
# 3. Modify /etc/xymon/xymonserver.cfg and add graph names
#    to the TEST2RRD= variable if you want a graph of a name
#    to be included in a test status display. To include
#    a graph in a test of another name note the format is
#    test/column-name=graph name, eg:  pm=particle
#
# 4. Modify /etc/xymon/xymonserver.cfg and add graph names
#    to the GRAPHS= variable if you want a graph to appear in
#    the trends column. Graphs appear in the sequence you
#    specify in this variable.
#
# 5. Note the above 2 variables are quoted variables which
#    comma separate the graph names
#

[amps]
        FNPATTERN ^amps.(.+).rrd
        TITLE Amps
        YAXIS Amps
        DEF:p@RRDIDX@=@RRDFN@:amps:AVERAGE
        LINE1:0.00#000000:
        LINE2:p@RRDIDX@#@COLOR@:@RRDPARAM@
        GPRINT:p@RRDIDX@:LAST: \: %7.3lf (cur)
        GPRINT:p@RRDIDX@:MAX: \: %7.3lf (max)
        GPRINT:p@RRDIDX@:MIN: \: %7.3lf (min)
        GPRINT:p@RRDIDX@:AVERAGE: \: %7.3lf (avg)\n

[ch4]
        FNPATTERN ^ch4.(.+).rrd
        TITLE CH4 - Methane
        YAXIS ppm
        DEF:ch4@RRDIDX@=@RRDFN@:ch4:AVERAGE
        LINE2:ch4@RRDIDX@#@COLOR@:@RRDPARAM@ CH4
        GPRINT:ch4@RRDIDX@:LAST: %6.1lf (cur) \:
        GPRINT:ch4@RRDIDX@:MAX: %6.1lf (max) \:
        GPRINT:ch4@RRDIDX@:MIN: %6.1lf (min) \:
        GPRINT:ch4@RRDIDX@:AVERAGE: %6.1lf (avg)\n

[co2]
        FNPATTERN ^co2.(.+).rrd
        TITLE CO2 ppm
        YAXIS parts per mil
        -l 0.00
        DEF:c@RRDIDX@=@RRDFN@:co2:AVERAGE
        LINE2:c@RRDIDX@#@COLOR@:CO2.@RRDPARAM@
        GPRINT:c@RRDIDX@:LAST: \: %5.0lf (cur)
        GPRINT:c@RRDIDX@:MAX: \: %5.0lf (max)
        GPRINT:c@RRDIDX@:MIN: \: %5.0lf (min)
        GPRINT:c@RRDIDX@:AVERAGE: \: %5.0lf (avg)\n

[co]
        FNPATTERN ^co.(.+).rrd
        TITLE CO - Carbon Monoxide
        YAXIS ppm
        DEF:co@RRDIDX@=@RRDFN@:co:AVERAGE
        LINE2:co@RRDIDX@#@COLOR@:@RRDPARAM@ CO
        GPRINT:co@RRDIDX@:LAST: %6.1lf (cur) \:
        GPRINT:co@RRDIDX@:MAX: %6.1lf (max) \:
        GPRINT:co@RRDIDX@:MIN: %6.1lf (min) \:
        GPRINT:co@RRDIDX@:AVERAGE: %6.1lf (avg)\n

[humidity]
        FNPATTERN ^humidity.(.+).rrd
        TITLE Humidity
        YAXIS Percent
        -u 100
        -l 0
        DEF:p@RRDIDX@=@RRDFN@:humidity:AVERAGE
        LINE2:p@RRDIDX@#@COLOR@:@RRDPARAM@
        GPRINT:p@RRDIDX@:LAST: \: %5.1lf (cur)
        GPRINT:p@RRDIDX@:MAX: \: %5.1lf (max)
        GPRINT:p@RRDIDX@:MIN: \: %5.1lf (min)
        GPRINT:p@RRDIDX@:AVERAGE: \: %5.1lf (avg)\n

#
# An example ADC conversion graph using a light dependent resistor
#
[light]
        FNPATTERN ^light.(.+).rrd
        TITLE light
        YAXIS ldr percent
        DEF:light@RRDIDX@=@RRDFN@:light:AVERAGE
        LINE2:light@RRDIDX@#@COLOR@:@RRDPARAM@ light
        GPRINT:light@RRDIDX@:LAST: %6.1lf (cur) \:
        GPRINT:light@RRDIDX@:MAX: %6.1lf (max) \:
        GPRINT:light@RRDIDX@:MIN: %6.1lf (min) \:
        GPRINT:light@RRDIDX@:AVERAGE: %6.1lf (avg)\n

[lux]
        FNPATTERN ^lux.(.+).rrd
        TITLE light intensity
        YAXIS lux
        -l 0.00
        DEF:i@RRDIDX@=@RRDFN@:index:AVERAGE
        LINE2:i@RRDIDX@#@COLOR@:@RRDPARAM@
        GPRINT:i@RRDIDX@:LAST: \: %5.1lf (cur)
        GPRINT:i@RRDIDX@:MAX: \: %5.1lf (max)
        GPRINT:i@RRDIDX@:MIN: \: %5.1lf (min)
        GPRINT:i@RRDIDX@:AVERAGE: \: %5.1lf (avg)\n

[moisture]
        FNPATTERN ^moisture.(.+).rrd
        TITLE Soil Moisture
        YAXIS count
        -u 100
        -l 0
        DEF:val@RRDIDX@=@RRDFN@:moisture:AVERAGE
        LINE2:val@RRDIDX@#@COLOR@:@RRDPARAM@
        GPRINT:val@RRDIDX@:LAST: \: %5.1lf (cur)
        GPRINT:val@RRDIDX@:MAX: \: %5.1lf (max)
        GPRINT:val@RRDIDX@:MIN: \: %5.1lf (min)
        GPRINT:val@RRDIDX@:AVERAGE: \: %5.1lf (avg)\n

[o3]
        FNPATTERN ^o3.(.+).rrd
        TITLE O3 Ozone
        YAXIS ppb
        DEF:o3@RRDIDX@=@RRDFN@:o3:AVERAGE
        LINE2:o3@RRDIDX@#@COLOR@:@RRDPARAM@ O3
        GPRINT:o3@RRDIDX@:LAST: %6.1lf (cur) \:
        GPRINT:o3@RRDIDX@:MAX: %6.1lf (max) \:
        GPRINT:o3@RRDIDX@:MIN: %6.1lf (min) \:
        GPRINT:o3@RRDIDX@:AVERAGE: %6.1lf (avg)\n

#
# This is an example of a interrupt counter called "opens"
# This may be used as template of other counter graphs
#
[opens]
        FNPATTERN ^opens.(.+).rrd
        TITLE opens
        YAXIS count
        -u 100
        -l 0
        DEF:val@RRDIDX@=@RRDFN@:value:AVERAGE
        LINE2:val@RRDIDX@#@COLOR@:@RRDPARAM@
        GPRINT:val@RRDIDX@:LAST: \: %5.0lf (cur)
        GPRINT:val@RRDIDX@:MAX: \: %5.0lf (max)
        GPRINT:val@RRDIDX@:MIN: \: %5.0lf (min)
        GPRINT:val@RRDIDX@:AVERAGE: \: %5.0lf (avg)\n

[particle]
        FNPATTERN ^particle.(.+).rrd
        TITLE Particulate Count
        YAXIS count / 100ml
        DEF:part003@RRDIDX@=@RRDFN@:part003:AVERAGE
        DEF:part005@RRDIDX@=@RRDFN@:part005:AVERAGE
        DEF:part010@RRDIDX@=@RRDFN@:part010:AVERAGE
        DEF:part025@RRDIDX@=@RRDFN@:part025:AVERAGE
        DEF:part050@RRDIDX@=@RRDFN@:part050:AVERAGE
        DEF:part100@RRDIDX@=@RRDFN@:part100:AVERAGE
        AREA:part003@RRDIDX@#@COLOR@:@RRDPARAM@ 0.3um
        GPRINT:part003@RRDIDX@:LAST: %7.1lf (cur) \:
        GPRINT:part003@RRDIDX@:MAX: %7.1lf (max) \:
        GPRINT:part003@RRDIDX@:MIN: %7.1lf (min) \:
        GPRINT:part003@RRDIDX@:AVERAGE: %7.1lf (avg)\n
        AREA:part005@RRDIDX@#@COLOR@:@RRDPARAM@ 0.5um
        GPRINT:part005@RRDIDX@:LAST: %7.1lf (cur) \:
        GPRINT:part005@RRDIDX@:MAX: %7.1lf (max) \:
        GPRINT:part005@RRDIDX@:MIN: %7.1lf (min) \:
        GPRINT:part005@RRDIDX@:AVERAGE: %7.1lf (avg)\n
        AREA:part010@RRDIDX@#@COLOR@:@RRDPARAM@ 1.0um
        GPRINT:part010@RRDIDX@:LAST: %7.1lf (cur) \:
        GPRINT:part010@RRDIDX@:MAX: %7.1lf (max) \:
        GPRINT:part010@RRDIDX@:MIN: %7.1lf (min) \:
        GPRINT:part010@RRDIDX@:AVERAGE: %7.1lf (avg)\n
        AREA:part025@RRDIDX@#@COLOR@:@RRDPARAM@ 2.5um
        GPRINT:part025@RRDIDX@:LAST: %7.1lf (cur) \:
        GPRINT:part025@RRDIDX@:MAX: %7.1lf (max) \:
        GPRINT:part025@RRDIDX@:MIN: %7.1lf (min) \:
        GPRINT:part025@RRDIDX@:AVERAGE: %7.1lf (avg)\n
        AREA:part050@RRDIDX@#@COLOR@:@RRDPARAM@ 5.0um
        GPRINT:part050@RRDIDX@:LAST: %7.1lf (cur) \:
        GPRINT:part050@RRDIDX@:MAX: %7.1lf (max) \:
        GPRINT:part050@RRDIDX@:MIN: %7.1lf (min) \:
        GPRINT:part050@RRDIDX@:AVERAGE: %7.1lf (avg)\n
        AREA:part100@RRDIDX@#@COLOR@:@RRDPARAM@ 10.um
        GPRINT:part100@RRDIDX@:LAST: %7.1lf (cur) \:
        GPRINT:part100@RRDIDX@:MAX: %7.1lf (max) \:
        GPRINT:part100@RRDIDX@:MIN: %7.1lf (min) \:
        GPRINT:part100@RRDIDX@:AVERAGE: %7.1lf (avg)\n

[pm25]
        FNPATTERN ^pm25.(.+).rrd
        TITLE Particulate Mass
        YAXIS ug/m3
        DEF:pm010@RRDIDX@=@RRDFN@:pm010:AVERAGE
        DEF:pm025@RRDIDX@=@RRDFN@:pm025:AVERAGE
        DEF:pm100@RRDIDX@=@RRDFN@:pm100:AVERAGE
        LINE2:pm010@RRDIDX@#@COLOR@:@RRDPARAM@ pm 1.0
        GPRINT:pm010@RRDIDX@:LAST: %6.1lf (cur) \:
        GPRINT:pm010@RRDIDX@:MAX: %6.1lf (max) \:
        GPRINT:pm010@RRDIDX@:MIN: %6.1lf (min) \:
        GPRINT:pm010@RRDIDX@:AVERAGE: %6.1lf (avg)\n
        LINE2:pm025@RRDIDX@#@COLOR@:@RRDPARAM@ pm 2.5
        GPRINT:pm025@RRDIDX@:LAST: %6.1lf (cur) \:
        GPRINT:pm025@RRDIDX@:MAX: %6.1lf (max) \:
        GPRINT:pm025@RRDIDX@:MIN: %6.1lf (min) \:
        GPRINT:pm025@RRDIDX@:AVERAGE: %6.1lf (avg)\n
        LINE2:pm100@RRDIDX@#@COLOR@:@RRDPARAM@ pm 10
        GPRINT:pm100@RRDIDX@:LAST: %6.1lf (cur) \:
        GPRINT:pm100@RRDIDX@:MAX: %6.1lf (max) \:
        GPRINT:pm100@RRDIDX@:MIN: %6.1lf (min) \:
        GPRINT:pm100@RRDIDX@:AVERAGE: %6.1lf (avg)\n

[pm]
        FNPATTERN ^pm.(.+).rrd
        TITLE pm2.5 - Particulate Matter
        YAXIS ug/m3
        DEF:var@RRDIDX@=@RRDFN@:var:AVERAGE
        LINE2:var@RRDIDX@#@COLOR@:@RRDPARAM@ pm2.5
        GPRINT:var@RRDIDX@:LAST: %6.1lf (cur) \:
        GPRINT:var@RRDIDX@:MAX: %6.1lf (max) \:
        GPRINT:var@RRDIDX@:MIN: %6.1lf (min) \:
        GPRINT:var@RRDIDX@:AVERAGE: %6.1lf (avg)\n

[pressure]
        FNPATTERN ^pressure.(.+).rrd
        TITLE Atmospheric Pressure
        YAXIS HPa - 1000
        DEF:p@RRDIDX@=@RRDFN@:pressure:AVERAGE
        CDEF:p2@RRDIDX@=p@RRDIDX@,1000,-
        LINE2:p2@RRDIDX@#@COLOR@:@RRDPARAM@
        GPRINT:p@RRDIDX@:LAST: \: %7.1lf (cur)
        GPRINT:p@RRDIDX@:MAX: \: %7.1lf (max)
        GPRINT:p@RRDIDX@:MIN: \: %7.1lf (min)
        GPRINT:p@RRDIDX@:AVERAGE: \: %5.1lf (avg)\n

#[pressure]
#       FNPATTERN ^pressure.(.+).rrd
#       TITLE Atmospheric Pressure (QNH)
#       YAXIS in Hg
#        -u 32.00
#        -l 28.00
#       DEF:p@RRDIDX@=@RRDFN@:pressure:AVERAGE
#        CDEF:inhg@RRDIDX@=p@RRDIDX@,0.02952998,*
#       LINE2:inhg@RRDIDX@#@COLOR@:@RRDPARAM@
#       GPRINT:inhg@RRDIDX@:LAST: \: %7.1lf (cur)
#       GPRINT:inhg@RRDIDX@:MAX: \: %7.1lf (max)
#       GPRINT:inhg@RRDIDX@:MIN: \: %7.1lf (min)
#       GPRINT:inhg@RRDIDX@:AVERAGE: \: %5.1lf (avg)\n

[temperature]
        FNPATTERN ^temperature.(.+).rrd
        TITLE Temperature
        YAXIS Celsius
        # --right-axis 1.8:32
        # --right-axis-label Fahrenheit
        DEF:p@RRDIDX@=@RRDFN@:temperature:AVERAGE
        LINE2:p@RRDIDX@#@COLOR@:@RRDPARAM@
        GPRINT:p@RRDIDX@:LAST: \: %5.1lf (cur)
        GPRINT:p@RRDIDX@:MAX: \: %5.1lf (max)
        GPRINT:p@RRDIDX@:MIN: \: %5.1lf (min)
        GPRINT:p@RRDIDX@:AVERAGE: \: %5.1lf (avg)\n

# If you want your temperature graphs in Fahrenheit,
# comment out the [temperature] section above, and
# uncomment this definition.
#
#[temperature]
#       FNPATTERN ^temperature.(.+).rrd
#       TITLE Temperature
#       YAXIS Fahrenheit
#       DEF:p@RRDIDX@=@RRDFN@:temperature:AVERAGE
#       CDEF:tempf@RRDIDX@=9,5,/,p@RRDIDX@,*,32,+
#       LINE2:tempf@RRDIDX@#@COLOR@:@RRDPARAM@
#       GPRINT:tempf@RRDIDX@:LAST: \: %5.1lf (cur)
#       GPRINT:tempf@RRDIDX@:MAX: \: %5.1lf (max)
#       GPRINT:tempf@RRDIDX@:MIN: \: %5.1lf (min)
#       GPRINT:tempf@RRDIDX@:AVERAGE: \: %5.1lf (avg)\n

[tvoc]
        FNPATTERN ^tvoc.(.+).rrd
        TITLE Total Volatile Organic Compounds
        YAXIS parts per bil
        -l 0.00
        DEF:t@RRDIDX@=@RRDFN@:tvoc:AVERAGE
        LINE2:t@RRDIDX@#@COLOR@:TVOC.@RRDPARAM@
        GPRINT:t@RRDIDX@:LAST: \: %5.0lf (cur)
        GPRINT:t@RRDIDX@:MAX: \: %5.0lf (max)
        GPRINT:t@RRDIDX@:MIN: \: %5.0lf (min)
        GPRINT:t@RRDIDX@:AVERAGE: \: %5.0lf (avg)\n

[uv]
        FNPATTERN ^uv.(.+).rrd
        TITLE Ultraviolet Index
        YAXIS Index
        -l 0.00
        DEF:i@RRDIDX@=@RRDFN@:index:AVERAGE
        LINE2:i@RRDIDX@#@COLOR@:@RRDPARAM@
        GPRINT:i@RRDIDX@:LAST: \: %5.1lf (cur)
        GPRINT:i@RRDIDX@:MAX: \: %5.1lf (max)
        GPRINT:i@RRDIDX@:MIN: \: %5.1lf (min)
        GPRINT:i@RRDIDX@:AVERAGE: \: %5.1lf (avg)\n

[volts]
        FNPATTERN ^volts.(.+).rrd
        TITLE Volts
        YAXIS Volts
        DEF:p@RRDIDX@=@RRDFN@:volts:AVERAGE
        LINE1:0.00#000000:
        LINE2:p@RRDIDX@#@COLOR@:@RRDPARAM@
        GPRINT:p@RRDIDX@:LAST: \: %7.3lf (cur)
        GPRINT:p@RRDIDX@:MAX: \: %7.3lf (max)
        GPRINT:p@RRDIDX@:MIN: \: %7.3lf (min)
        GPRINT:p@RRDIDX@:AVERAGE: \: %7.3lf (avg)\n

[watts]
        FNPATTERN ^watts.(.+).rrd
        TITLE Watts
        YAXIS Watts
        DEF:p@RRDIDX@=@RRDFN@:watts:AVERAGE
        LINE1:0.00#000000:
        LINE2:p@RRDIDX@#@COLOR@:@RRDPARAM@
        GPRINT:p@RRDIDX@:LAST: \: %7.3lf (cur)
        GPRINT:p@RRDIDX@:MAX: \: %7.3lf (max)
        GPRINT:p@RRDIDX@:MIN: \: %7.3lf (min)
        GPRINT:p@RRDIDX@:AVERAGE: \: %7.3lf (avg)\n



Thank you for visiting camelthorn.cloudHome