{"id":92,"date":"2019-06-29T15:50:50","date_gmt":"2019-06-29T13:50:50","guid":{"rendered":"https:\/\/caipirinha.spdns.org\/wp\/?p=92"},"modified":"2021-01-02T16:53:36","modified_gmt":"2021-01-02T15:53:36","slug":"usv","status":"publish","type":"post","link":"https:\/\/caipirinha.spdns.org\/wp\/?p=92","title":{"rendered":"USV"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Konzept<\/h2>\n\n\n\n<p>Die Stabilit\u00e4t eines Servers h\u00e4ngt auch von der Versorgungssicherheit des Stromnetzes ab. Hier drohen folgende Gefahren:\n<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Stromausfall<\/li><li>Spannungsschwankungen<\/li><li>Blitzschlag bzw. pl\u00f6tzliche \u00dcberspannung<\/li><\/ul>\n\n\n\n<p>Diese Ursachen k\u00f6nnen pl\u00f6tzlichen Systemabsturz oder gar \nHardware-Sch\u00e4den zur Folge haben und m\u00fcssen daher vermieden werden. \nGl\u00fccklicherweise wird man mit solchen Problemen in Deutschland weniger \ngeplagt als in weniger entwickelten L\u00e4ndern, wo solche Probleme im \nw\u00f6rtlichen Sinne an der Tagesordnung sind.\n<\/p>\n\n\n\n<p>Um dennoch Risiken zu minimieren, ist der Caipirinha-Server nicht direkt ans Stromnetz angeschlossen, sondern er wird \u00fcber eine <strong>&#8220;unterbrechungsfreie Stromversorgung&#8221; (USV)<\/strong> betrieben. Die Wahl fiel auf eine kleine SoHo-Version der Herstellers <a href=\"http:\/\/www.apc.com\/\">APC<\/a>, in diesem Fall das Modell &#8220;<a href=\"http:\/\/www.apc.com\/resource\/include\/techspec_index.cfm?base_sku=BE700-GR&amp;ISOCountryCode=de\">BE700-GR<\/a>&#8220;,  weil diese preiswert zu bekommen war und \u00fcber den USB-Anschlu\u00df mit dem  Server verbunden werden kann. Sie bietet au\u00dferdem Blitzschutz (im  \u00fcblichen Rahmen) f\u00fcr sie Stromversorgung und f\u00fcr eine durchgeschleifte  Datenleitung, was hier f\u00fcr die DSL-Leitung benutzt wird. <\/p>\n\n\n\n<p>Am Standort des Caipirinha-Servers ist daher nicht nur der Server\n selbst an die USV angeschlossen, sondern auch der WLAN-Router und die \nTelefone, so dass bei einem kurzfristigen Stromausfall keine \nBeeintr\u00e4chtigung des WLANs oder des Telefonnetzes oder des \nServerbetriebs auftritt.\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Einrichtung<\/h2>\n\n\n\n<p>Bei <a href=\"http:\/\/www.opensuse.org\/\">openSuSE<\/a>-Linux\n gibt es gl\u00fccklicherweise gleich ein ganzes Paket zur Kommunikation des \nServers mit einer USV von APC. Dazu muss man das Paket <strong>apcupsd<\/strong> installieren. Nach der Installation befinden sich auf dem Server mehrere Programme, von denen der gleichnamige D\u00e4mon (<strong>apcupsd<\/strong>)\n das wichtigste ist. Dieser D\u00e4mon \u00fcberwacht den Zustand der USV und kann\n in Abh\u00e4ngigkeit von gezielt diesem verschiedene Aktionen ausl\u00f6sen. Die \nzentrale Konfigurationsdatei ist <strong>\/etc\/apcupsd\/apcupsd.conf<\/strong>. Die Default-Datei ist ausreichend kommentiert, so dass man sich gut darin zurechtfinden kann. Auf <a href=\"http:\/\/www.apcupsd.com\/manual\/\">[1]<\/a>\n gibt es au\u00dferdem eine sehr ausf\u00fchrliche und gut verst\u00e4ndliche \nDokumentation. Hier ist die aktuelle Konfiguration des \nCaipirinha-Servers abgedruckt:\n<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">## apcupsd.conf v1.1 ##\n# \n#  for apcupsd release 3.12.1 (06 January 2006) - suse\n#\n# \"apcupsd\" POSIX config file\n\n#\n# ========= General configuration parameters ============\n#\n\n# UPSNAME xxx\n#   Use this to give your UPS a name in log files and such. This\n#   is particulary useful if you have multiple UPSes. This does not\n#   set the EEPROM. It should be 8 characters or less.\nUPSNAME APC ES 700\n\n# UPSCABLE &lt;cable&gt;\n#   Defines the type of cable connecting the UPS to your computer.\n#\n#   Possible generic choices for &lt;cable&gt; are:\n#     simple, smart, ether, usb\n#\n#   Or a specific cable model number may be used:\n#     940-0119A, 940-0127A, 940-0128A, 940-0020B,\n#     940-0020C, 940-0023A, 940-0024B, 940-0024C,\n#     940-1524C, 940-0024G, 940-0095A, 940-0095B,\n#     940-0095C, M-04-02-2000\n#\nUPSCABLE usb\n\n# To get apcupsd to work, in addition to defining the cable\n# above, you must also define a UPSTYPE, which corresponds to\n# the type of UPS you have (see the Description for more details).\n# You must also specify a DEVICE, sometimes referred to as a port.\n# For USB UPSes, please leave the DEVICE directive blank. For\n# other UPS types, you must specify an appropriate port or address.\n#\n# UPSTYPE   DEVICE           Description\n# apcsmart  \/dev\/tty**       Newer serial character device,\n#                            appropriate for SmartUPS models using\n#                            a serial cable (not USB).\n#\n# usb       &lt;BLANK&gt;          Most new UPSes are USB.\n#                            A blank DEVICE setting enables\n#                            autodetection, which is th best choice\n#                            for most installations.\n#\n# net       hostname:port    Network link to a master apcupsd\n#                            through apcupsd's Network Information\n#                            Server. This is used if you don't have\n#                            a UPS directly connected to your computer.\n#\n# snmp      hostname:port:vendor:community\n#                            SNMP Network link to an SNMP-enabled\n#                            UPS device. Vendor is the MIB used by\n#                            the UPS device: can be \"APC\", \"APC_NOTRAP\"\n#                            or \"RFC\" where APC is the powernet MIB,\n#                            \"APC_NOTRAP\" is powernet with SNMP trap\n#                            catching disabled, and RFC is the IETF's \n#                            rfc1628 UPS-MIB. Port is usually 161. \n#                            Community is \"private\".\n#\n# dumb      \/dev\/tty**       Old serial character device for use \n#                            with simple-signaling UPSes.\n#\nUPSTYPE usb\n\n# LOCKFILE &lt;path to lockfile&gt;\n#   Path for device lock file.\nLOCKFILE \/var\/apcupslock\n\n#\n# ======== Configuration parameters used during power failures ==========\n#\n\n# The ONBATTERYDELAY is the time in seconds from when a power failure\n#   is detected until we react to it with an onbattery event.\n#\n#   This means that, apccontrol will be called with the powerout argument\n#   immediately when a power failure is detected.  However, the\n#   onbattery argument is passed to apccontrol only after the \n#   ONBATTERYDELAY time.  If you don't want to be annoyed by short\n#   powerfailures, make sure that apccontrol powerout does nothing\n#   i.e. comment out the wall.\nONBATTERYDELAY 5\n\n# \n# Note: BATTERYLEVEL, MINUTES, and TIMEOUT work in conjunction, so\n# the first that occurs will cause the initation of a shutdown.\n#\n\n# If during a power failure, the remaining battery percentage\n# (as reported by the UPS) is below or equal to BATTERYLEVEL, \n# apcupsd will initiate a system shutdown.\nBATTERYLEVEL 10\n\n# If during a power failure, the remaining runtime in minutes \n# (as calculated internally by the UPS) is below or equal to MINUTES,\n# apcupsd, will initiate a system shutdown.\nMINUTES 1\n\n# If during a power failure, the UPS has run on batteries for TIMEOUT\n# many seconds or longer, apcupsd will initiate a system shutdown.\n# A value of 0 disables this timer.\n#\n#  Note, if you have a Smart UPS, you will most likely want to disable\n#    this timer by setting it to zero. That way, you UPS will continue\n#    on batteries until either the&nbsp;% charge remaing drops to or below BATTERYLEVEL,\n#    or the remaining battery runtime drops to or below MINUTES.  Of course,\n#    if you are testing, setting this to 60 causes a quick system shutdown\n#    if you pull the power plug.   \n#  If you have an older dumb UPS, you will want to set this to less than\n#    the time you know you can run on batteries.\nTIMEOUT 0\n\n#  Time in seconds between annoying users to signoff prior to\n#  system shutdown. 0 disables.\nANNOY 30\n\n# Initial delay after power failure before warning users to get\n# off the system.\nANNOYDELAY 30\n\n# The condition which determines when users are prevented from\n# logging in during a power failure.\n# NOLOGON &lt;string&gt; [ disable | timeout | percent | minutes | always ]\nNOLOGON disable\n\n# If KILLDELAY is non-zero, apcupsd will continue running after a\n# shutdown has been requested, and after the specified time in\n# seconds attempt to kill the power. This is for use on systems\n# where apcupsd cannot regain control after a shutdown.\n# KILLDELAY &lt;seconds&gt;  0 disables\nKILLDELAY 0\n\n#\n# ==== Configuration statements for Network Information Server ====\n#\n\n# NETSERVER [ on | off ] on enables, off disables the network\n#  information server. If netstatus is on, a network information\n#  server process will be started for serving the STATUS and\n#  EVENT data over the network (used by CGI programs).\nNETSERVER on\n\n# NISIP &lt;dotted notation ip address&gt;\n#  IP address on which NIS server will listen for incoming connections.\n#  Default value is 0.0.0.0 that means any incoming request will be\n#  serviced but if you want it to listen to a single subnet you can\n#  set it up to that subnet address, for example 192.168.10.0\n#  Additionally you can listen for a single IP like 192.168.10.1\nNISIP 0.0.0.0\n\n# NISPORT &lt;port&gt; default is 3551 as registered with the IANA\n#  port to use for sending STATUS and EVENTS data over the network.\n#  It is not used unless NETSERVER is on. If you change this port,\n#  you will need to change the corresponding value in the cgi directory\n#  and rebuild the cgi programs.\nNISPORT 3551\n\n# If you want the last few EVENTS to be available over the network\n# by the network information server, you must define an EVENTSFILE.\nEVENTSFILE \/var\/log\/apcupsd.events\n\n# EVENTSFILEMAX &lt;kilobytes&gt;\n#  By default, the size of the EVENTSFILE will be not be allowed to exceed\n#  10 kilobytes.  When the file grows beyond this limit, older EVENTS will\n#  be removed from the beginning of the file (first in first out).  The\n#  parameter EVENTSFILEMAX can be set to a different kilobyte value, or set\n#  to zero to allow the EVENTSFILE to grow without limit.\nEVENTSFILEMAX 30\n\n#\n# ========== Configuration statements used if sharing =============\n#            a UPS and controlling it via the network              \n\n# The configuration statements below are used if you want to share one \n# UPS to power multiple machines and have them communicate by the network.\n# Most of these items are for Master\/Slave mode only, however NETTIME is\n# also used for Client\/Server NIS networking with the net driver.\n\n# NETTIME &lt;int&gt;\n#   Interval (in seconds) at which the slave or client polls the master\n#   or server. This is applicable to BOTH master\/slave and client\/server\n#   (NIS) networking.\n#NETTIME 100\n\n#\n# Remaining items are for Master\/Slave networking ONLY\n#\n\n# UPSCLASS [ standalone | shareslave | sharemaster | netslave | netmaster ]\n#   Normally standalone unless you share a UPS with multiple machines.\n#   \nUPSCLASS standalone\n\n# UPSMODE [ disable | share | net | sharenet ]\n#   Unless you want to share the UPS (power multiple machines),\n#   this should be disable.\nUPSMODE disable\n\n# NETPORT &lt;int&gt;\n#   Port on which master\/slave networking communicates.\n#NETPORT 6666\n\n# MASTER &lt;machine-name&gt;\n#   IP address of the master. Only applicable on slaves.\n#MASTER\n\n# SLAVE &lt;machine-name&gt;\n#   IP address(es) of the slave(s). Only applicable on master.\n#SLAVE slave1\n#SLAVE slave2\n\n# USERMAGIC &lt;string&gt;\n#   Magic string use by slaves to identify themselves. Only applicable\n#   on slaves.\n#USERMAGIC\n\n#\n# ===== Configuration statements to control apcupsd system logging ========\n#\n\n# Time interval in seconds between writing the STATUS file; 0 disables\nSTATTIME 0\n\n# Location of STATUS file (written to only if STATTIME is non-zero)\nSTATFILE \/var\/log\/apcupsd.status\n\n# LOGSTATS [ on | off ] on enables, off disables\n# Note! This generates a lot of output, so if         \n#       you turn this on, be sure that the\n#       file defined in syslog.conf for LOG_NOTICE is a named pipe.\n#  You probably do not want this on.\nLOGSTATS off\n\n# Time interval in seconds between writing the DATA records to\n#   the log file. 0 disables.\nDATATIME 0\n\n# FACILITY defines the logging facility (class) for logging to syslog. \n#          If not specified, it defaults to \"daemon\". This is useful \n#          if you want to separate the data logged by apcupsd from other\n#          programs.\n#FACILITY DAEMON<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/localhost\/mediawiki\/index.php\/Datei:Stromausfall.png\"><img loading=\"lazy\" decoding=\"async\" width=\"566\" height=\"811\" src=\"https:\/\/caipirinha.spdns.org\/wp\/wp-content\/uploads\/Stromausfall.png\" alt=\"Beginn des Stromausfalls\" class=\"wp-image-127\" srcset=\"https:\/\/caipirinha.spdns.org\/wp\/wp-content\/uploads\/Stromausfall.png 566w, https:\/\/caipirinha.spdns.org\/wp\/wp-content\/uploads\/Stromausfall-209x300.png 209w\" sizes=\"auto, (max-width: 566px) 100vw, 566px\" \/><\/a><figcaption>Beginn des Stromausfalls<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/localhost\/mediawiki\/index.php\/Datei:Stromausfall_vorbei.png\"><img loading=\"lazy\" decoding=\"async\" width=\"566\" height=\"811\" src=\"https:\/\/caipirinha.spdns.org\/wp\/wp-content\/uploads\/Stromausfall_vorbei.png\" alt=\"Ende des Stromausfalls\" class=\"wp-image-128\" srcset=\"https:\/\/caipirinha.spdns.org\/wp\/wp-content\/uploads\/Stromausfall_vorbei.png 566w, https:\/\/caipirinha.spdns.org\/wp\/wp-content\/uploads\/Stromausfall_vorbei-209x300.png 209w\" sizes=\"auto, (max-width: 566px) 100vw, 566px\" \/><\/a><figcaption>Ende des Stromausfalls<\/figcaption><\/figure>\n\n\n\n<p>Mit den Parametern <strong>BATTERYLEVEL<\/strong> und <strong>MINUTES<\/strong>\n kann man einstellen, ab wann der Shutdown des Servers eingeleitet wird,\n n\u00e4mlich beim Unterschreiten der angegebenen Batterieladung oder beim \nUnterschreiten der voraussichtlichen Restlaufzeit. In diesem Fall leitet\n der apcupsd-D\u00e4mon das kontrollierte Herunterfahren des Servers ein, so \ndass der Server nicht pl\u00f6tzlich stromlos wird, wenn die Batterie leer \nwird. Das ist sehr praktisch, weil man so inkonsistente Daten auf \nPlatten vermeidet, welche sonst beim Absturz einer Maschine immer mal \nwieder auftreten.\n<\/p>\n\n\n\n<p>Der Parameter <strong>NETSERVER<\/strong> erlaubt nicht nur den Zugriff \nentfernter Maschinen auf die USV-Verwaltung des Caipirinha-Servers, \nsondern ist auch f\u00fcr das reibungslose Funktionieren der anderen \nProgramme in der apcupsd-Suite erforderlich und sollte deshalb auf <strong>ON<\/strong>\n gesetzt werden. Wenn sich mehrere Server eines USV teilen, kann man \n\u00fcber Port 3551 auf dem Caipirinha-Server den Zustand der USV abfragen. \nDadurch wissen dann alle Server, wann sie mit dem Herunterfahren \nbeginnen sollen.\n<\/p>\n\n\n\n<p>Der Parameter <strong>ANNOY<\/strong> gibt die Zeitspanne an, nach der \nBenutzer auf dem Caipirinha-Server immer wieder durch eine Mitteilung \ngewarnt werden, wenn der Server im Batteriebetrieb l\u00e4uft. Diese \nregelm\u00e4\u00dfige Warnung soll Benutzer dazu verleiten, sich m\u00f6glichst \numgehend von der Maschine auszuloggen. Auch Benutzer von entfernten \nMaschinen, die \u00fcber eine textbasierte Shell auf dem Caipirinha-Server \narbeiten, erhalten eine entsprechende Meldung.\n<\/p>\n\n\n\n<p>Nach der Anpassung der Konfigurationsdatei sind noch folgende Schritte notwendig:\n<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Mit dem Befehl <code>mkdir \/var\/apcupslock<\/code> erzeugt man als Benutzer <strong>root<\/strong> noch das Verzeichnis <strong>\/var\/apcupslock<\/strong>, damit <strong>apcupsd<\/strong> in diesem Verzeichnis LOCK-Dateien anlegen kann. Es ist nicht erforderlich, noch den Eigent\u00fcmer zu \u00e4ndern.<\/li><li>Nun startet man den <strong>apcupsd<\/strong>-D\u00e4mon mit dem Befehl <code>\/etc\/init.d apcupsd start<\/code>.<\/li><\/ul>\n\n\n\n<p>Wenn der <strong>apcupsd<\/strong>-D\u00e4mon l\u00e4uft, informiert der den Benutzer <strong>root<\/strong>,\n wenn es Unregelm\u00e4\u00dfigkeiten in der Stromversorgung gibt. Dies ist so in \nden Skripten der apcupsd-Suite festgelegt und muss dort ge\u00e4ndert werden,\n wenn eine weitergehende Benachrichtigung gew\u00fcnscht wird.\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Dienstprogramme<\/h2>\n\n\n\n<p>Den Status der USV kann man mit dem Programm <strong>apcaccess<\/strong> (mit <code>\/usr\/sbin\/apcaccess<\/code> auch als normaler Benutzer) auslesen. Auf dem Caipirinha-Server erh\u00e4lt man dann beispielsweise:\n<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">APC     &nbsp;: 001,037,1008\nDATE    &nbsp;: Thu Jun 24 18:55:34 CEST 2010\nHOSTNAME&nbsp;: caipirinha\nVERSION &nbsp;: 3.14.6 (16 May 2009) suse\nUPSNAME &nbsp;: APC ES 700\nCABLE   &nbsp;: USB Cable\nMODEL   &nbsp;: Back-UPS ES 700G\nUPSMODE &nbsp;: Stand Alone\nSTARTTIME: Tue Jun 15 08:09:37 CEST 2010\nSTATUS  &nbsp;: ONLINE\nLINEV   &nbsp;: 226.0 Volts\nLOADPCT &nbsp;:  21.0 Percent Load Capacity\nBCHARGE &nbsp;: 100.0 Percent\nTIMELEFT&nbsp;:  24.1 Minutes\nMBATTCHG&nbsp;: 15 Percent\nMINTIMEL&nbsp;: 1 Minutes\nMAXTIME &nbsp;: 0 Seconds\nSENSE   &nbsp;: Medium\nLOTRANS &nbsp;: 180.0 Volts\nHITRANS &nbsp;: 266.0 Volts\nALARMDEL&nbsp;: Always\nBATTV   &nbsp;: 13.7 Volts\nLASTXFER&nbsp;: Unacceptable line voltage changes\nNUMXFERS&nbsp;: 2\nXONBATT &nbsp;: Thu Jun 24 09:39:40 CEST 2010\nTONBATT &nbsp;: 0 seconds\nCUMONBATT: 12 seconds\nXOFFBATT&nbsp;: Thu Jun 24 09:39:42 CEST 2010\nLASTSTEST: Sat Jun 19 12:17:27 CEST 2010\nSTATFLAG&nbsp;: 0x07000008 Status Flag\nMANDATE &nbsp;: 2009-11-12\nSERIALNO&nbsp;: 3B0946X40315\nBATTDATE&nbsp;: 2000-00-00\nNOMINV  &nbsp;: 230 Volts\nNOMBATTV&nbsp;:  12.0 Volts\nFIRMWARE&nbsp;: 871.O1 .I USB FW:O1\nAPCMODEL&nbsp;: Back-UPS ES 700G\nEND APC &nbsp;: Thu Jun 24 18:56:28 CEST 2010<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/localhost\/mediawiki\/index.php\/Datei:Multimon.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"901\" height=\"332\" src=\"https:\/\/caipirinha.spdns.org\/wp\/wp-content\/uploads\/Multimon.jpg\" alt=\"Einbinden mehrerer USV\" class=\"wp-image-129\" srcset=\"https:\/\/caipirinha.spdns.org\/wp\/wp-content\/uploads\/Multimon.jpg 901w, https:\/\/caipirinha.spdns.org\/wp\/wp-content\/uploads\/Multimon-300x111.jpg 300w, https:\/\/caipirinha.spdns.org\/wp\/wp-content\/uploads\/Multimon-768x283.jpg 768w\" sizes=\"auto, (max-width: 901px) 100vw, 901px\" \/><\/a><figcaption>Einbinden mehrerer USV<\/figcaption><\/figure>\n\n\n\n<p>Dar\u00fcberhinaus kann die apcupsd-Suite aber noch mit CGI-Skripten auftrumpfen, welche im Verzeichnis <strong>\/srv\/www\/cgi-bin<\/strong>\n installiert werden. Damit kann man den Status der USV mit einem \nWebbrowser betrachten, was die Anwenderfreundlichkeit deutlich erh\u00f6ht. \nBeim Caipirinha-Server erreicht man diese Webseite \u00fcber den Link <a href=\"http:\/\/caipirinha.homelinux.org\/cgi-bin\/multimon.cgi\">[2]<\/a>. Auf dieser Seite lassen sich auch noch die Stati anderer USV einbinden, indem man diese in der Datei <strong>\/etc\/apcupsd\/hosts.conf<\/strong> entsprechend eintr\u00e4gt:\n<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">MONITOR 127.0.0.1 \"caipirinha\"\nMONITOR caipiroska.homelinux.org \"caipiroska\"<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/localhost\/mediawiki\/index.php\/Datei:USV-Status.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"895\" height=\"770\" src=\"https:\/\/caipirinha.spdns.org\/wp\/wp-content\/uploads\/USV-Status.jpg\" alt=\"USV-Status\" class=\"wp-image-130\" srcset=\"https:\/\/caipirinha.spdns.org\/wp\/wp-content\/uploads\/USV-Status.jpg 895w, https:\/\/caipirinha.spdns.org\/wp\/wp-content\/uploads\/USV-Status-300x258.jpg 300w, https:\/\/caipirinha.spdns.org\/wp\/wp-content\/uploads\/USV-Status-768x661.jpg 768w\" sizes=\"auto, (max-width: 895px) 100vw, 895px\" \/><\/a><figcaption>USV-Status<\/figcaption><\/figure>\n\n\n\n<p>F\u00fcr\n jede USV kann man dann durch einen Klick ins Feld &#8220;System&#8221; eine Grafik \naufrufen, die anschaulich den Ladezustand dser Batterie und die noch \nm\u00f6gliche \u00dcberbr\u00fcckungszeit darstellt. Dabei werden dann auch andere \nCGI-Programme wie beispielsweise <strong>upsstats.cgi<\/strong> oder <strong>upsfstats.cgi<\/strong>\n benutzt. Diese Grafik aktualisiert sich in rascher Folge, so dass man \nbei Batteriebetrieb sehen kann, wie sich beide Balken absenken. Die \nroten Sockel kennzeichnen, ab wann der Server heruntergefahren wird. Der\n dritte Balken stellt die prozentuale Last auf der batteriegpufferten \nSeite dar.\n<\/p>\n\n\n\n<p>Die Laufzeit in Minuten richtet sich nach der tats\u00e4chlichen \nLeistungsaufnahme auf der Sekund\u00e4rseite der USV. Um diese beim eigenen \nSystem berechnen zu lassen, empfiehlt es sich, das gesamte System \ntats\u00e4chlich im Batteriebetrieb laufen zu lassen, bis die Batterie etwa \n70%&#8230;80% entladen ist. Dann schaltet man wieder auf Netzversorgung, und\n wenn die Batterie dann nach einigen Stunden wieder aufgeladen ist, hat \ndie Laufzeit einen tats\u00e4chliche Aussagekraft. Nat\u00fcrlich muss klar sein, \ndass eine Vergr\u00f6\u00dferung der Sekund\u00e4rlast die Laufzeit drastisch \nverringern kann. Deshalb sollte man nur die Ger\u00e4te absichern, die \nwirklich bei einem Stromausfall weiterversorgt werden m\u00fcssen.\n<\/p>\n\n\n\n<p>Das Programm <strong>apctest<\/strong> kann nur benutzt werden, wenn der \napcupsd-D\u00e4mon deaktiviert ist. Mit diesem Programm kann man abh\u00e4ngig von\n der Hardware der USV in einem EEPROM Schwellwerte abrufen und \nkonfigurieren oder eine Batteriekalibrierung durchf\u00fchren.\n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Die Stabilit\u00e4t eines Servers h\u00e4ngt auch von der Versorgungssicherheit des Stromnetzes ab. Um dennoch Risiken zu minimieren, ist der Caipirinha-Server nicht direkt ans Stromnetz angeschlossen, sondern er wird \u00fcber eine &#8220;unabh\u00e4ngige Stromversorgung&#8221; (USV) betrieben.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[35],"tags":[73,72],"class_list":["post-92","post","type-post","status-publish","format-standard","hentry","category-it","tag-apcups","tag-usv"],"_links":{"self":[{"href":"https:\/\/caipirinha.spdns.org\/wp\/index.php?rest_route=\/wp\/v2\/posts\/92","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/caipirinha.spdns.org\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/caipirinha.spdns.org\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/caipirinha.spdns.org\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/caipirinha.spdns.org\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=92"}],"version-history":[{"count":3,"href":"https:\/\/caipirinha.spdns.org\/wp\/index.php?rest_route=\/wp\/v2\/posts\/92\/revisions"}],"predecessor-version":[{"id":512,"href":"https:\/\/caipirinha.spdns.org\/wp\/index.php?rest_route=\/wp\/v2\/posts\/92\/revisions\/512"}],"wp:attachment":[{"href":"https:\/\/caipirinha.spdns.org\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=92"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/caipirinha.spdns.org\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=92"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/caipirinha.spdns.org\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=92"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}