monitors:apc_checks

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
Last revisionBoth sides next revision
monitors:apc_checks [2018/02/16 18:53] fletch2kmonitors:apc_checks [2018/02/16 19:12] fletch2k
Line 16: Line 16:
   - Ordered List ItemEdit the script and update the $UPS variable with the FQN for the UPS   - Ordered List ItemEdit the script and update the $UPS variable with the FQN for the UPS
   - Ordered List ItemAdd the following example to the /usr/share/xymon-client/etc/clientlaunch.cfg:   - Ordered List ItemAdd the following example to the /usr/share/xymon-client/etc/clientlaunch.cfg:
-- Ordered List Item 
  
-        [lab-apc-ups1]+Add the following to /etc/xymon/xymonserver.cfg: 
 + 
 +    TEST2RRD:TempC=ncv,volt=ncv,batt=ncv 
 +    ... 
 +    GRAPHS:TempC,volt,batt 
 +    ... 
 +    NCV_TempC="Reading:GAUGE" 
 +    NCV_batt="BatteryTime:GAUGE" 
 +    NCV_volt="InputVoltage:GAUGE,OutputVoltage:GAUGE" 
 + 
 +Add the following to /etc/xymon/graphs.cfg 
 +    [TempC] 
 +        TITLE Temperatures 
 +        YAXIS Degrees/Celcius 
 +        DEF:temp=TempC.rrd:Reading:AVERAGE 
 +        HRULE:26#FF8000:WARM 
 +        HRULE:30#8A0808:HOT! 
 +        -u 35 
 +        -l 0 
 +        AREA:temp#298A08:Reading 
 +        COMMENT: \n 
 +        GPRINT:temp:LAST:Reading \: %5.1lf%s (cur) 
 +        GPRINT:temp:MAX: \: %5.1lf%s (max) 
 +        GPRINT:temp:MIN: \: %5.1lf%s (min) 
 +        GPRINT:temp:AVERAGE: \: %5.1lf%s (avg)\n 
 + 
 +    [volt] 
 +        TITLE I/O Voltage 
 +        YAXIS Volts 
 +        DEF:ivolt=volt.rrd:InputVoltage:AVERAGE 
 +        DEF:ovolt=volt.rrd:OutputVoltage:AVERAGE 
 +        #HRULE:0#FF8000:LOW 
 +        #HRULE:240#8A0808:HIGH 
 +        LINE1:ivolt#0000ff:InputVoltage 
 +        LINE2:ovolt#00FF00:OutputVoltage 
 +        -u 240 
 +        -l 0 
 +        COMMENT: \n 
 +        GPRINT:ivolt:LAST:InputVoltage \: %5.1lf%s (cur) 
 +        GPRINT:ivolt:MAX: \: %5.1lf%s (max) 
 +        GPRINT:ivolt:MIN: \: %5.1lf%s (min) 
 +        GPRINT:ivolt:AVERAGE: \: %5.1lf%s (avg)\n 
 +        GPRINT:ovolt:LAST:OutputVoltage \: %5.1lf%s (cur) 
 +        GPRINT:ovolt:MAX: \: %5.1lf%s (max) 
 +        GPRINT:ovolt:MIN: \: %5.1lf%s (min) 
 +        GPRINT:ovolt:AVERAGE: \: %5.1lf%s (avg)\n 
 + 
 +    [batt] 
 +        TITLE BatteryRunTime 
 +        YAXIS Minutes 
 +        DEF:batt=batt.rrd:BatteryTime:AVERAGE 
 +        -u 60 
 +        -l 0 
 +        #HRULE:240#8A0808:HIGH 
 +        LINE2:batt#298A08:BatteryTime 
 +        COMMENT: \n 
 +        GPRINT:batt:LAST:BatteryTime \: %5.1lf%s (cur) 
 +        GPRINT:batt:MAX: \: %5.1lf%s (max) 
 +        GPRINT:batt:MIN: \: %5.1lf%s (min) 
 +        GPRINT:batt:AVERAGE: \: %5.1lf%s (avg)\n 
 +         
 +         
 +# Add the following line to /usr/share/xymon-client/etc/clientlaunch.cfg: 
 +    [lab-apc-ups1]
         ENVFILE /usr/share/xymon-client/etc/xymonclient.cfg         ENVFILE /usr/share/xymon-client/etc/xymonclient.cfg
         CMD $XYMONCLIENTHOME/ext/lab-apc-ups1.pl         CMD $XYMONCLIENTHOME/ext/lab-apc-ups1.pl
  • monitors/apc_checks.txt
  • Last modified: 2018/02/16 19:13
  • by fletch2k