UPSNAME SU1400 UPSCABLE smart UPSTYPE apcsmart DEVICE /dev/ttyS0 NISIP 127.0.0.1
テスト中
書きかけ
# UPS name, max 8 characters #UPSNAME UPS_IDEN # Battery date - 8 characters #BATTDATE mm/dd/yy # Sensitivity to line voltage quality (H cause faster transfer to batteries) # SENSITIVITY H M L (default = H) #SENSITIVITY H # UPS delay after power return (seconds) # WAKEUP 000 060 180 300 (default = 0) #WAKEUP 60 # UPS Grace period after request to power off (seconds) # SLEEP 020 180 300 600 (default = 20) #SLEEP 180 # Low line voltage causing transfer to batteries # The permitted values depend on your model as defined by last letter # of FIRMWARE or APCMODEL. Some representative values are: # D 106 103 100 097 # M 177 172 168 182 # A 092 090 088 086 # I 208 204 200 196 (default = 0 => not valid) #LOTRANSFER 208 # High line voltage causing transfer to batteries # The permitted values depend on your model as defined by last letter # of FIRMWARE or APCMODEL. Some representative values are: # D 127 130 133 136 # M 229 234 239 224 # A 108 110 112 114 # I 253 257 261 265 (default = 0 => not valid) #HITRANSFER 253 # Battery charge needed to restore power # RETURNCHARGE 00 15 50 90 (default = 15) #RETURNCHARGE 15 # Alarm delay # 0 = zero delay after pwr fail, T = power fail + 30 sec, L = low battery, N = n ever # BEEPSTATE 0 T L N (default = 0) #BEEPSTATE T # Low battery warning delay in minutes # LOWBATT 02 05 07 10 (default = 02) #LOWBATT 2 # UPS Output voltage when running on batteries # The permitted values depend on your model as defined by last letter # of FIRMWARE or APCMODEL. Some representative values are: # D 115 # M 208 # A 100 # I 230 240 220 225 (default = 0 => not valid) #OUTPUTVOLTS 230 # Self test interval in hours 336=2 weeks, 168=1 week, ON=at power on # SELFTEST 336 168 ON OFF (default = 336) #SELFTEST 336
#!/bin/bash if [ -z $1 ]; then exit fi /sbin/apcaccess status | awk "/^$1/ {print \$3*100}"
extend .1.3.6.1.4.1.2021.54 apcaccess_LINEV /usr/local/sbin/apcaccess2netsnmp LINEV extend .1.3.6.1.4.1.2021.55 apcaccess_OUTPUTV /usr/local/sbin/apcaccess2netsnmp OUTPUTV extend .1.3.6.1.4.1.2021.56 apcaccess_LOADPCT /usr/local/sbin/apcaccess2netsnmp LOADPCT extend .1.3.6.1.4.1.2021.57 apcaccess_BCHARGE /usr/local/sbin/apcaccess2netsnmp BCHARGE
#--------- # apcupsd #--------- Directory[_]:ups Options[_]: growright, nopercent, pngdate, printrouter, withzeroes, unknaszero, gauge MaxBytes[_]: 200 LegendI[_]: LegendO[_]: Legend1[_]: Legend2[_]: YLegend[_]: ShortLegend[_]: kMG[_]: Factor[_]: 0.01 YTicsFactor[_]: 0.01 # VOLTAGE # Title[su700j_voltage]: APC SmartUPS 700J for Katae, Hibaru PageTop[su700j_voltage]: <H1>APC SmartUPS 700J for Katae, Hibaru</H1> Target[su700j_voltage]: 1.3.6.1.4.1.2021.55.4.1.2.17.97.112.99.97.99.99.101.115. \ 115.95.79.85.84.80.85.84.86.1&1.3.6.1.4.1.2021.54.4.1.2.15.97.112.99.97.99.99.10 \ 1.115.115.95.76.73.78.69.86.1:snmp_jamfunk@localhost LegendI[su700j_voltage]: output LegendO[su700j_voltage]: input Legend1[su700j_voltage]: UPS output voltage Legend2[su700j_voltage]: UPS input voltage YLegend[su700j_voltage]: voltage (V) ShortLegend[SU700J_voltage]: V # LOAD & CHARGE # Title[SU700J_load]: APC SmartUPS 700J for Katae, Hibaru PageTop[SU700J_load]: <H1>APC SmartUPS 700J for Katae, Hibaru</H1> Target[SU700J_load]: 1.3.6.1.4.1.2021.56.4.1.2.17.97.112.99.97.99.99.101.115.115 \ .95.76.79.65.68.80.67.84.1&1.3.6.1.4.1.2021.57.4.1.2.17.97.112.99.97.99.99.101.1 \ 15.115.95.66.67.72.65.82.71.69.1:snmp_jamfunk@localhost LegendI[SU700J_load]: load LegendO[SU700J_load]: battery charged Legend1[SU700J_load]: UPS load Legend2[SU700J_load]: UPS battery charged YLegend[SU700J_load]: load&charge (%) ShortLegend[SU700J_load]: %