Title: Documentation for the Pi-UPS-Monitor-App

Similar documents
Monitoring Oracle Enterprise Performance Management System Release Deployments from Oracle Enterprise Manager 12c

Setting Up the Site Licenses

PowerPanel for Linux Software

UPSentry Smart User s Manual. Shutdown Management Software. for Mac OS X 10.1

Backup Server DOC-OEMSPP-S/6-BUS-EN

UPSentry Smart User s Manual. Shutdown Management Software. for Mac OS X 10.2

MapGuide Open Source Repository Management Back up, restore, and recover your resource repository.

SysPatrol - Server Security Monitor

CycleServer Grid Engine Support Install Guide. version 1.25

Netwatch Installation For Windows

Intelligent Video Analytics. Server Installation Guide. - Windows - Linux

Decision Support System to MODEM communications

RecoveryVault Express Client User Manual

Avira Management Console AMC server configuration for managing online remote computers. HowTo

Back-up Server DOC-OEMSPP-S/2014-BUS-EN-10/12/13

Online Backup Linux Client User Manual

Online Backup Client User Manual

InsightPower Client. Shutdown Management Software for Windows 2000/XP/2003. User s Manual

3. License Management - Unix & Linux

SAS Marketing Optimization. Windows Installation Instructions for Hot Fix 51mo14

Setting Up Exchange. In this chapter, you do the following tasks in the order listed:

RASPBERRY PI BAT PROJEKT News and Add ons WLAN connection and UMTS (SMS transmission)

Oracle EXAM - 1Z Oracle Weblogic Server 11g: System Administration I. Buy Full Product.

1. Product Information

Online Backup Client User Manual Linux

Adafruit's Raspberry Pi Lesson 6. Using SSH

Ocster Backup Pro 8. Copyright 2013 Ocster GmbH & Co. KG. All rights reserved.

By default, STRM provides an untrusted SSL certificate. You can replace the untrusted SSL certificate with a self-signed or trusted certificate.

<Insert Picture Here> Managing WebLogic Server Lifecycle

WebIOPi. Installation Walk-through Macros

GWAVA 5. Migration Guide for Netware GWAVA 4 to Linux GWAVA 5

IPMI Firmware Update (AMI) In WEB-GUI/DOS/WIN/Linux

Job Scheduler Daemon Configuration Guide

Configuring Virtual Blades

Getting Started with RES Automation Manager Agent for Linux

Avira Professional Security Migration to Avira Professional Security version HowTo

Windows 8 UEFI BIOS Update (Step-by-Step Guide)

Avira Server Security. HowTo

Orange Apps UserLogonUSB V1.0

Net Protector Admin Console

FileMaker Server 7. Administrator s Guide. For Windows and Mac OS

Configuring Apache HTTP Server With Pramati

Installation and Configuration User's Guide

KCU-02 Monitor. Software Installation User Manual. For Windows XP and Windows 7

Windows Scheduled Task and PowerShell Scheduled Job Management Pack Guide for Operations Manager 2012

Avira Management Console Optimization for large networks. HowTo

Trend Micro KASEYA INTEGRATION GUIDE

AlienVault Unified Security Management (USM) 4.x-5.x. Deploying HIDS Agents to Linux Hosts

ASG-Rochade Backing up Rochade Databases Quick Start Guide

Novell ZENworks Asset Management

High Availability for Microsoft SQL Server Using Double-Take 4.x

IMF Tune v7.0 Backup, Restore, Replication

X-ROAD 6 SIGNER CONSOLE USER GUIDE

Intelligent Power Protector User manual extension for Microsoft Virtual architectures: Hyper-V 6.0 Manager Hyper-V Server (R1&R2)

TSM for Windows Installation Instructions: Download the latest TSM Client Using the following link:

Dell UPS Local Node Manager USER'S GUIDE EXTENSION FOR MICROSOFT VIRTUAL ARCHITECTURES Dellups.com

LOCKSS on LINUX. Network Data Transition 02/17/2011

Virtual CD v10. Network Management Server Manual. H+H Software GmbH

Avira Update Manager User Manual

NBU651 BMR. Avi Weinberger

PowerPanel Business Edition USER MANUAL

Retailman POS Multi-location Setup

Task Scheduler. Morgan N. Sandquist Developer: Gary Meyer Reviewer: Lauri Watts

CYAN SECURE WEB APPLIANCE. User interface manual

UPSMON PRO Linux --- User Manual

ALTIRIS Deployment Solution 6.8 Preboot Automation Environment

Beam Loss Monitor Software Guide

Adafruit's Raspberry Pi Lesson 7. Remote Control with VNC

Magento Search Extension TECHNICAL DOCUMENTATION

SCUtils WorkItem Scheduler Guide Solution for Microsoft System Center 2012 Service Manager

Kerio Operator. Getting Started Guide

Network Management Card. User Manual

SNMP-NET Client Shutdown Management Software for Windows 2000/XP/2003 User s Manual

Out n About! for Outlook Electronic In/Out Status Board. Administrators Guide. Version 3.x

User s Manual Network Management Card

Job Aid - Avaya Aura Messaging. Purpose. Restarting software and server. Stopping. Procedure

AdWhirl Open Source Server Setup Instructions

McAfee Firewall Enterprise

Sample copy. Introduction To WebLogic Server Property of Web 10.3 Age Solutions Inc.

Liebert MultiLink. User Manual - Fundamental & Advanced

How To Install Storegrid Server On Linux On A Microsoft Ubuntu 7.5 (Amd64) Or Ubuntu (Amd86) (Amd77) (Orchestra) (For Ubuntu) (Permanent) (Powerpoint

Parallels Desktop Enterprise Edition

Media Backup Storage Device. Operation Manual

FileMaker Server 8. Administrator s Guide

Deep Freeze Mac User Guide

Release Notes OPC-Server V3 Alarm Event for High Availability

High Availability for Internet Information Server Using Double-Take 4.x

Tripp Lite PowerAlert

Understanding Task Scheduler FIGURE Task Scheduler. The error reporting screen.

BounceBack User Guide

EventTracker: Configuring DLA Extension for AWStats Report AWStats Reports

Linux Syslog Messages in IBM Director

You will be prompted for a password for the postgres user. In the example below,

/ Preparing to Manage a VMware Environment Page 1

PowerPanel Business Edition Installation Guide

User Guide - English. ServerView Suite. DeskView and ServerView Integration Pack for Microsoft SCCM

EUROPEAN MIDDLEWARE INITIATIVE

Transcription:

Title: Documentation for the Pi-UPS-Monitor-App Version: 0.01 Date: 09.01.14

Table of Content 1. PURPOSE, OR WHAT PIUSVMONITOR DOES...3 2. PACKAGE CONTENTS...4 3. INSTALLATION...5 4. USAGE...6 5. CONSOLE COMMANDS...7 6. CONFIGURATION...8 7. LOGFILE(ENTRYS)...10 8. SOFTWARE STRUCTURE...11 9. KNOWN BUGS...12 CW2. GmbH & Co. KG, 2013-2 -

1. PURPOSE, OR WHAT PIUSVMONITOR DOES The piusvmonitor software monitors: 1. changes of the power supply of the CW2. Pi UPS device 2. writes them to a logfile (default location: /usr/share/piusvmonitor/log.piusv) and 3. also reacts to changes in the power supply. You are free to configure piusvmonitor's behavior. CW2. GmbH & Co. KG, 2013-3 -

2. PACKAGE CONTENTS piusvmonitor program wiringpi library (licensed under GNU LESSER GENERAL PUBLIC LICENSE) CW2. GmbH & Co. KG, 2013-4 -

3. INSTALLATION 1. Download the package. 2. If you have the piusvmonitor.deb already on your system, change to piusvmonitor's location with: cd /location/of/ 3. then install with: dpkg --install piusvmonitor.deb CW2. GmbH & Co. KG, 2013-5 -

4. USAGE Use the console commands (see below, chapter 5) to start and stop piusvmonitor software Edit the config.piusv file to configure piusvmonitor's behavior CW2. GmbH & Co. KG, 2013-6 -

5. CONSOLE COMMANDS Hint: The commands can be used regardless of the directory or the user. The console command "piusvd start" will start the piusvmonitor daemon "piusvd", if it is not already running. If "piusvd" is already running you will receive a message and nothing else will be done. The console command "piusvd stop" will stop the piusvmonitor daemon "piusvd" if it is running. If "piusvd" was not running, nothing will be done. The console command "piusvd restart" will execute a "piusvd stop" and then a "piusvd start" command afterwards. CW2. GmbH & Co. KG, 2013-7 -

6. CONFIGURATION Hint: Do not change the config.piusv's location! The config.piusv offers the following configuration options: Autostart: default: 1 Effect: Decides if "piusvd" is started on boot. Any value other then "0" will start the piusvdaemon on boot. Logfile: default: /usr/share/piusvmonitor/log.piusv Effect: specifies the location of the logfile, where changes in the power supply are logged. Enter the absolute path of the logfile's location. If the path is invalid no data will be saved. TurnOffTime: default: 10 (seconds) Effect: defines the time interval, in seconds, that has to pass before the shutdown script is started, the Raspberry Pi and the CW2. Pi UPS are shut down. Details: When PRI_POW is low and SEC_POW is high, the countdown is started. If the countdown is greater then 0 and PRI_POW is high again the timer is reset to its defined value, and Raspberry Pi and CW2. Pi UPS will keep running. If the countdown is equal or less 0, shutdown of Raspberry Pi and CW2. Pi UPS is inevitable, even if PRI_POW gets high again. The shutdown script (details below) and a 20 seconds countdown to shut CW2. Pi UPS down are started. When the shutdown script is executed, Raspberry Pi will be shut down. When the 20 seconds have passed CW2. Pi UPS will be shutdown. Example: Lets assume "TurnOffTime" is set to a value of 7. First incident: PRI_POW gets low, and gets high again after 5 seconds: CW2. Pi UPS keeps running, nothing significant happens. Second incident: PRI_POW gets low, and gets high again after 9 seconds: After 7 seconds (the value set for TurnOffTime), the "ShutDownScript" will be executed and the 20 seconds countdown to shut down Raspberry Pi and CW2. Pi UPS. The shutdown of Raspberry Pi and CW2. Pi UPS is inevitable. The fact that PRI_POW gets high after 9 seconds does not stop the shutdown. CW2. GmbH & Co. KG, 2013-8 -

Sleep: default: 1 (second) Effect: specifies the time interval when piusvmonitor checks the CW2. Pi UPS power supply state. Example: If "Sleep" is set to 0.5, piusvmonitor will check CW2. Pi UPS power state every 0.5 seconds (2 times a second). For each signal (PRI_POW, SEC_POW, BAT_LOW) a shell script can be passed to piusvmonitor. Hint: Use the absolute path always! The script will be executed anytime the signal changes from low to high. PRI_POW: Default: Effect: piusvmonitor will execute the PRI_POW-shell script anytime PRI_POW changes from low to high SEC_POW: Default: Effect: piusvmonitor will execute the SEC_POW-shell script anytime SEC_POW changes from low to high BAT_LOW: Default: Effect: piusvmonitor will execute the BAT_LOW-shell script anytime BAT_LOW changes from low to high ShutDownScript: default: Effect: This script will be executed if PRI_POW was low for "TurnOffTime" seconds continuous, and the countdown to (inevitable) shut down the Raspberry Pi and CW2. Pi UPS has started CW2. GmbH & Co. KG, 2013-9 -

7. LOGFILE(ENTRYS) As mentioned before you can configure the logfile's location inside the config.piusv. A logfile entry contains a time stamp and a signal info. piusvmonitor only records signal changes. The power supply state signals are: PRI_POW: Primary Power Supply Indicates that CW2. Pi UPS supplies the Raspberry Pi via micro USB, which is usually connected to the grid. SEC_POW: Secondary Power Supply Indicates that CW2. Pi UPS supplies the Raspberry Pi via the battery pack connected to the CW2. Pi UPS. BAT_LOW: Battery LOW Indicates that the battery pack connected to the CW2. Pi UPS is either low or not (correctly) connected. If the Battery pack is (correctly) connected, change or recharge the batteries. Furthermore there is the shutdown entry which indicates that piusvmonitor has entered the countdown to its inevitable shutdown. CW2. GmbH & Co. KG, 2013-10 -

8. SOFTWARE STRUCTURE piusvmonitor: Monitors the power supply of the CW2. Pi UPS device piusvautostart: This script decides if piusvmonitor is started on boot or not. piusvd: provides the piusv-daemon. wiringpi library is used CW2. GmbH & Co. KG, 2013-11 -

9. KNOWN BUGS None so far! Some warnings which should not bother you. Startparbug may occur if piusvmonitor is started on boot. CW2. GmbH & Co. KG, 2013-12 -