Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Typo
Info
titleVersion

This article was written for version 6.0, it could work on both lower and higher version if nothing else is stated.

Articles in the Community-Space is are not supported by op5 supportSupport.

 

Monitoring Eaton PowerWare
=======================

Used check check_xups_mode (http://exchange.nagios.org/directory/Plugins/Hardware/UPS/Powerware/Check-xUPS-Mode/details) to get the working mode (online, offline, bypass…)

Added snmp monitoring av input voltage using the following oid:
         Name="Input Voltage Phase A" Type=ANALOG
    Units="Volts"
    OID=".1.3.6.1.4.1.534.1.3.4.1.2.1"
 
    Name="Input Voltage Phase B" Type=ANALOG
    Units="Volts"
    OID=".1.3.6.1.4.1.534.1.3.4.1.2.2"
 
    Name="Input Voltage Phase C" Type=ANALOG
    Units="Volts"
    OID=".1.3.6.1.4.1.534.1.3.4.1.2.3"

Warning was set to 210V and critical till 200V on all phases.

The script below can be used to get the battery status from the homepage of the switch if snmp is not present.

--------------------------------------
#!/bin/bash
# See if we need to tell the user how to use this
if [ "$1" == "-h" -o $# -ne 2 ]; then
    echo "Usage: $0 <HOST> <OK-STATUS message>"
    exit 3
fi

HOST=$1
NOT=$2

STATUS=`elinks -dump $HOST/PSummary.html |grep "Battery Status" |awk '{print $3}'`

if [ "$STATUS" != "$NOT" ]
  then
    echo "CRITICAL: Battery is $NOT"
    exit 2
fi

echo "OK: Battery Status is $STATUS"
exit 0
------------------------------------