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 precedenteProssima revisione | Revisione precedente | ||
documentazione_3di_riservata:manuali_sysadmin:apcupsd [2019/02/07 16:53] – 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, POLLTIME, 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 30 | ||
- | ... | ||
- | # 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 | ||
- | |||
- | # | ||
- | # ==== 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 40 | ||
- | ... | ||
- | # 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 | ||
- | |||
- | # | ||
- | # ==== 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 | ||
- | |||
- | '' | ||
/data/attic/documentazione_3di_riservata/manuali_sysadmin/apcupsd.1549554802.txt.gz · Ultima modifica: 2019/02/07 16:53 da epapakroni