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:49] – [Installation] fletch2kmonitors:apc_checks [2018/02/16 19:12] fletch2k
Line 13: Line 13:
 Enable SNMPv1 on the APC UPS and allow the xymon server access. Enable SNMPv1 on the APC UPS and allow the xymon server access.
 === Server side === === Server side ===
-1) Make a copy for each UPS in your environment. +  - Ordered List ItemMake a copy for each UPS in your environment. 
-2) Edit 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 
-3) Add 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:
  
-        [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
Line 23: Line 86:
                  
 ===== Source ===== ===== Source =====
-==== lab-apc-ups.pl ====+==== apc_checks.pl ====
 <hidden onHidden="Show Code ⇲" onVisible="Hide Code ⇱"> <hidden onHidden="Show Code ⇲" onVisible="Hide Code ⇱">
 <code> <code>
 #!/usr/bin/perl #!/usr/bin/perl
 # #
-checkTemp.pl+apc_checks.pl
 # #
 ########################################## ##########################################
  • monitors/apc_checks.txt
  • Last modified: 2018/02/16 19:13
  • by fletch2k