documentazione_3di_riservata:manuali_sysadmin:apcupsd
Differenze
Queste sono le differenze tra la revisione selezionata e la versione attuale della pagina.
Entrambe le parti precedenti la revisioneRevisione precedente | |||
documentazione_3di_riservata:manuali_sysadmin:apcupsd [2019/02/11 15:51] – epapakroni | documentazione_3di_riservata:manuali_sysadmin:apcupsd [Data sconosciuta] (versione attuale) – eliminata - modifica esterna (Data sconosciuta) 127.0.0.1 | ||
---|---|---|---|
Linea 1: | Linea 1: | ||
- | ====== Installazione ====== | ||
- | |||
- | In tutti i computer/ | ||
- | |||
- | '' | ||
- | |||
- | ===== Configurazioni nel MASTER ===== | ||
- | |||
- | **1** - Edita il file diconfigurazione: | ||
- | Prima fai una copia del originale: | ||
- | |||
- | '' | ||
- | |||
- | Poi | ||
- | |||
- | '' | ||
- | |||
- | Trova e modifica: UPSCABLE, UPSTYPE, DEVICE, TIMEOUT, BATTERYLEVEL e MINUTES | ||
- | |||
- | In genere le opzioni come sotto indicati dovrebbero bastare | ||
- | |||
- | <code xml> | ||
- | ## apcupsd.conf v1.1 ## | ||
- | # | ||
- | # for apcupsd release 3.14.12 (29 March 2014) - debian | ||
- | # | ||
- | # " | ||
- | |||
- | # | ||
- | # ========= General configuration parameters ============ | ||
- | # | ||
- | ... | ||
- | UPSCABLE usb | ||
- | ... | ||
- | UPSTYPE usb | ||
- | ... | ||
- | #DEVICE /dev/ttyS0 | ||
- | |||
- | # POLLTIME <int> | ||
- | # | ||
- | # | ||
- | # dumb) and networked UPSes (UPSTYPE net, snmp). Lowering this setting | ||
- | # will improve apcupsd' | ||
- | # | ||
- | # | ||
- | #POLLTIME 60 | ||
- | |||
- | # | ||
- | # ======== Configuration parameters used during power failures ========== | ||
- | # | ||
- | |||
- | # Note: BATTERYLEVEL, | ||
- | # the first that occurs will cause the initation of a shutdown. | ||
- | ... | ||
- | # If during a power failure, the remaining battery percentage | ||
- | # (as reported by the UPS) is below or equal to BATTERYLEVEL, | ||
- | # apcupsd will initiate a system shutdown. | ||
- | BATTERYLEVEL 50 | ||
- | ... | ||
- | # If during a power failure, the remaining runtime in minutes | ||
- | # (as calculated internally by the UPS) is below or equal to MINUTES, | ||
- | # apcupsd, will initiate a system shutdown. | ||
- | MINUTES 15 | ||
- | |||
- | # If during a power failure, the UPS has run on batteries for TIMEOUT | ||
- | # many seconds or longer, apcupsd will initiate a system shutdown. | ||
- | # A value of 0 disables this timer. | ||
- | # | ||
- | # Note, if you have a Smart UPS, you will most likely want to disable | ||
- | # this timer by setting it to zero. That way, you UPS will continue | ||
- | # on batteries until either the % charge remaing drops to or below BATTERYLEVEL, | ||
- | # or the remaining battery runtime drops to or below MINUTES. | ||
- | # if you are testing, setting this to 60 causes a quick system shutdown | ||
- | # if you pull the power plug. | ||
- | # If you have an older dumb UPS, you will want to set this to less than | ||
- | # the time you know you can run on batteries. | ||
- | TIMEOUT 280 | ||
- | |||
- | # | ||
- | # ==== Configuration statements for Network Information Server ==== | ||
- | # | ||
- | |||
- | # NETSERVER [ on | off ] on enables, off disables the network | ||
- | # information server. | ||
- | ... | ||
- | NETSERVER on | ||
- | |||
- | # NISIP <dotted notation ip address> | ||
- | ... | ||
- | NISIP 0.0.0.0 | ||
- | </ | ||
- | |||
- | **2** - Editare etc/ | ||
- | |||
- | Questo file contiene i computer o server protetti dal UPS. Nel nostro caso | ||
- | |||
- | <code xml> | ||
- | # Network UPS Tools - hosts.conf | ||
- | # | ||
- | # This file does double duty - it lists the systems that multimon will | ||
- | # monitor, and also specifies the systems that upsstats is allowed to | ||
- | # watch. | ||
- | # among other things. | ||
- | # may speak to. upsfstats too. | ||
- | # | ||
- | # Usage: list systems running upsd that you want to monitor | ||
- | # | ||
- | # MONITOR < | ||
- | |||
- | MONITOR 127.0.0.1 " | ||
- | MONITOR 10.17.61.87 " | ||
- | </ | ||
- | |||
- | **3** - Editare / | ||
- | |||
- | '' | ||
- | |||
- | impostare: | ||
- | < | ||
- | ... | ||
- | ISCONFIGURED=yes | ||
- | ...</ | ||
- | |||
- | **4** - Puoi riavviare il servizio apcupsd | ||
- | |||
- | '' | ||
- | |||
- | ===== Configurazioni nel SLAVE ===== | ||
- | |||
- | **1** - Editare il file di configurazione | ||
- | Prima fare un backup: | ||
- | |||
- | '' | ||
- | |||
- | Poi | ||
- | |||
- | '' | ||
- | |||
- | Trova e edita: | ||
- | In molti casi le configurazioni in seguito possono bastare. | ||
- | |||
- | <code xml> | ||
- | ## apcupsd.conf v1.1 ## | ||
- | # | ||
- | # for apcupsd release 3.14.12 (29 March 2014) - debian | ||
- | # | ||
- | # " | ||
- | |||
- | # | ||
- | # ========= General configuration parameters ============ | ||
- | # | ||
- | ... | ||
- | UPSCABLE ether | ||
- | ... | ||
- | UPSTYPE net | ||
- | ... | ||
- | # set the MASTER COMPUTER IP (10.17.61.21 nel caso nostro) | ||
- | # The default port for apcupsd is 3551 | ||
- | DEVICE 10.17.61.21: | ||
- | |||
- | # POLLTIME <int> | ||
- | # | ||
- | # | ||
- | # dumb) and networked UPSes (UPSTYPE net, snmp). Lowering this setting | ||
- | # will improve apcupsd' | ||
- | # | ||
- | # | ||
- | POLLTIME 10 | ||
- | ... | ||
- | |||
- | # | ||
- | # ======== Configuration parameters used during power failures ========== | ||
- | # | ||
- | |||
- | # Note: BATTERYLEVEL, | ||
- | # the first that occurs will cause the initation of a shutdown. | ||
- | ... | ||
- | # If during a power failure, the remaining battery percentage | ||
- | # (as reported by the UPS) is below or equal to BATTERYLEVEL, | ||
- | # apcupsd will initiate a system shutdown. | ||
- | BATTERYLEVEL 50 | ||
- | ... | ||
- | # If during a power failure, the remaining runtime in minutes | ||
- | # (as calculated internally by the UPS) is below or equal to MINUTES, | ||
- | # apcupsd, will initiate a system shutdown. | ||
- | MINUTES 10 | ||
- | |||
- | # If during a power failure, the UPS has run on batteries for TIMEOUT | ||
- | # many seconds or longer, apcupsd will initiate a system shutdown. | ||
- | # A value of 0 disables this timer. | ||
- | # | ||
- | # Note, if you have a Smart UPS, you will most likely want to disable | ||
- | # this timer by setting it to zero. That way, you UPS will continue | ||
- | # on batteries until either the % charge remaing drops to or below BATTERYLEVEL, | ||
- | # or the remaining battery runtime drops to or below MINUTES. | ||
- | # if you are testing, setting this to 60 causes a quick system shutdown | ||
- | # if you pull the power plug. | ||
- | # If you have an older dumb UPS, you will want to set this to less than | ||
- | # the time you know you can run on batteries. | ||
- | TIMEOUT 180 | ||
- | |||
- | # | ||
- | # ==== Configuration statements for Network Information Server ==== | ||
- | # | ||
- | |||
- | # NETSERVER [ on | off ] on enables, off disables the network | ||
- | # information server. | ||
- | ... | ||
- | NETSERVER on | ||
- | |||
- | # NISIP <dotted notation ip address> | ||
- | ... | ||
- | NISIP 0.0.0.0 | ||
- | </ | ||
- | |||
- | **2** - Editare / | ||
- | |||
- | '' | ||
- | |||
- | imposta: | ||
- | <code xml> | ||
- | ... | ||
- | ISCONFIGURED=yes | ||
- | ... | ||
- | </ | ||
- | **3** - In fine riavviare apcupsd | ||
- | |||
- | '' | ||
- | |||
- | |||
- | **ATTENZIONE: | ||
- | |||
- | Per vedere apcupsd logs: | ||
- | |||
- | '' | ||
- | |||
- | Per visualizzare le informazioni del UPS: | ||
- | |||
- | '' | ||
- | |||
- | <code xml> | ||
- | root@hansel: | ||
- | APC : 001, | ||
- | DATE : 2019-02-11 15:50:43 +0100 | ||
- | HOSTNAME : hansel | ||
- | VERSION | ||
- | UPSNAME | ||
- | CABLE : Ethernet Link | ||
- | DRIVER | ||
- | UPSMODE | ||
- | STARTTIME: 2019-02-11 15:45:43 +0100 | ||
- | MASTERUPD: 2019-02-11 15:50:43 +0100 | ||
- | MASTER | ||
- | MODEL : Smart-UPS 1500 | ||
- | STATUS | ||
- | BCHARGE | ||
- | TIMELEFT : 29.0 Minutes | ||
- | MBATTCHG : 50 Percent | ||
- | MINTIMEL : 10 Minutes | ||
- | MAXTIME | ||
- | BATTV : 27.4 Volts | ||
- | NUMXFERS : 0 | ||
- | TONBATT | ||
- | CUMONBATT: 0 Seconds | ||
- | XOFFBATT : N/A | ||
- | STATFLAG : 0x05000408 | ||
- | SERIALNO : AS1139122349 | ||
- | NOMBATTV : 24.0 Volts | ||
- | FIRMWARE : COM 02.1 / UPS.05.I | ||
- | END APC : 2019-02-11 15:51:14 +0100 | ||
- | </ | ||
/data/attic/documentazione_3di_riservata/manuali_sysadmin/apcupsd.1549896703.txt.gz · Ultima modifica: 2019/02/11 15:51 da epapakroni