wombat.ch

your Partner for Network Design and CMS

Perfect

UPS infos via Rasperry Pi im Netz propagieren und Server oder NAS zum Download animieren.

Hardware
- Raspberry Pi, Model B+ PLUS - 512MB RAM
- APC Power Saving Back-UPS Pro 900


Software one the Raspberry Pi
- Debian
- Munin Node - APC UPS Pro 900
-

Configs to do on

  Raspberry Pi Server FreeNAS 10
Raspberry Pi RASPBIAN LITE Minimal image based on Debian (follow the Pi Instruciton to install)  ?  ?
 

on the Card add a empty file called SSH on the root
(Windows: cmd go to the drive like i: type NUL > SSH)
On boot Pi will get a IP and with SSH you may conect
username: pi
password: raspberry

VI

# sudo -i
# apt install vim-nox -y
# echo set number >> ~/.vimrc

Fix IP address # sudo vi /etc/dhcpcd.conf  ?
40 # Example static IP configuration:
41 interface eth0
42 static ip_address=192.168.0.15/24
44 static routers=192.168.0.1
45 static domain_name_servers=8.8.8.8
   
   
Set Time # dpkg-reconfigure tzdata
 
  Script for smart update
 
Apache 2 # apt -y install apache2    
 
Fail2Ban

# apt install fail2ban -y
# vi /etc/fail2ban/jail.local

   [ssh]
enabled = true
port = ssh
filter = sshd
logpath = /var/log/auth.log
bantime = 900
banaction = iptables-allports
findtime = 900
maxretry = 3
   
   # service fail2ban restart    
  check
# iptables -L -n --line
   
       
NUT # apt install -y nut nut-monitor nut-cgi nut-ipmi nut-snmp nut-xml    
  # lsusb
Bus 001 Device 004: ID 051d:0002 American Power Conversion Uninterruptible Power Supply
   
  # vi /etc/nut/nut.conf

MODE=netserver
   
  # vi /etc/nut/ups.conf  (around line 121)

[apc900]
driver = usbhid-ups # Treiber der verwendet werden soll
port = auto 
desc = "APC 900 Smart-UPS" # Beschreibung der USV
# maxretry = 3
   
  # systemctl reload nut-server    
  # systemctl status nut-server    
 

# apt install wakeonlan
# apt install etherwake

arp command to find the MAC address
# arp

   
       
   # upsc APC900 | grep battery.runtime: | awk '{print $2/60}' OFMT="%3.1f"     


Quellen/Source:
- Raspberry FORUM: UPS Information to LAN
https://www.tobias-baeumer.de/apc-usv-proxmox/
networkupstools.org
- servernetworktech.com/2013/06/upsalert-my-solution-to-graceful-server-shutdowns-on-power-loss
- NUT
- /www.pontikis.net/blog/apc-ups-master-slave-setup-apcupsd
Munin | Plugin | NUT
- bernaerts.dyndns.org/linux/75-debian/335-debian-wheezy-install-monitor-eaton-ups
thomas-leister.de/powerwalker-ups-debian-stretch/
wiki.debian-fr.xyz/Configurer_et_surveiller_un_onduleur_avec_NUT
- Raspberry Pi - UPS server using NUT 
-
-
-
-

Add a comment

Subcategories

Roundcube ist eine freie Software für Webmail über IMAP, die in den Programmiersprachen PHP und JavaScript entwickelt wird. Roundcubes prominenteste Features sind die schlanke und moderne Benutzeroberfläche und die ausgeprägte Nutzung der Ajax-Technologie, die einen ähnlichen Bedien-Komfort wie bei einer lokal installierten Anwendung ermöglicht.

RSS Feed


Warning: file_get_contents(https://www.bsi.bund.de/SiteGlobals/Functions/RSSFeed/RSSNewsfeed/RSSNewsfeed_WID.xml): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /var/www/clients/client2/web2/web/j/modules/mod_jw_srfr/helper.php on line 273

Warning: file_get_contents(https://www.bsi.bund.de/SiteGlobals/Functions/RSSFeed/RSSNewsfessBSIFB/RSSNewsfeed_BuergerCERT.xml): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /var/www/clients/client2/web2/web/j/modules/mod_jw_srfr/helper.php on line 273

Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/clients/client2/web2/web/j/modules/mod_jw_srfr/helper.php on line 273

Warning: file_get_contents(http://feeds.joomla.org/JoomlaAnnouncements): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/clients/client2/web2/web/j/modules/mod_jw_srfr/helper.php on line 273

Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/clients/client2/web2/web/j/modules/mod_jw_srfr/helper.php on line 273

Warning: file_get_contents(http://feeds.joomla.org/JoomlaSecurityNews): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/clients/client2/web2/web/j/modules/mod_jw_srfr/helper.php on line 273

Warning: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: error:0A000152:SSL routines::unsafe legacy renegotiation disabled in /var/www/clients/client2/web2/web/j/modules/mod_jw_srfr/helper.php on line 273

Warning: file_get_contents(): Failed to enable crypto in /var/www/clients/client2/web2/web/j/modules/mod_jw_srfr/helper.php on line 273

Warning: file_get_contents(https://tools.cisco.com/security/center/psirtrss20/CiscoSecurityAdvisory.xml): failed to open stream: operation failed in /var/www/clients/client2/web2/web/j/modules/mod_jw_srfr/helper.php on line 273

Warning: Invalid argument supplied for foreach() in /var/www/clients/client2/web2/web/j/modules/mod_jw_srfr/helper.php on line 39

neusten Links


Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/clients/client2/web2/web/j/modules/mod_quicklistweblinks/helper.php on line 78
many More Links »

part of ...

Linux Counter

Disqus

 

Learning Network

Seti@home & Boinc

myBonic

statistik

 


Who is Online

We have 605 guests and no members online

We have 615 guests, one bot and no members online


one bot:
1 x BOT for JCE