Flexion.Org
Bad grammar and typos for total strangers
Wiki › Belkin Home Office F6 H650 Serial UPS
Wiki Index All Recent Edit Bottom

Belkin Home Office F6H650 Serial UPS

1.   Introduction
2.   Setting up NUT
2.1   Configure service startup
2.2   Configure data acquisition
2.3   Configure data server
2.4   Configure user profiles
2.5   Configure protection
2.6   Configuring web monitor

Introduction

YIKES THIS IS A VERY OLD DOCUMENT, PROCESS WITH CAUTION

I have a Belkin Home Office F6H650-SER UPS, which is the same as the F6H350-SER and F6H500-SER in terms of communication protocol. I have got this working with NUT when I used to run Fedora Core 3 but these are old notes and I did not get everything working properly with Ubuntu Hoary, I think the detection of power up/down were reversed which cause the server to shutdown shortly after the NUT daemons were started. Needs a bit more work...

 wget http://ftp.uk.debian.org/debian/pool/main/n/nut/nut_2.0.1-3_i386.deb
 wget http://ftp.uk.debian.org/debian/pool/main/n/nut/nut-cgi_2.0.1-3_i386.deb
 sudo dpkg -i nut_2.0.1-3_i386.deb
 sudo dpkg -i nut-cgi_2.0.1-3_i386.deb

Setting up NUT

The primary goal of the Network UPS Tools (NUT) is to provide reliable monitoring of UPS hardware and ensure safe shutdowns of the systems which are connected.

Configure service startup

 sudo vi /etc/default/nut

Sample

 # start upsd
 START_UPSD=yes

 # start upsmon
 START_UPSMON=yes

Sample configuration files are provided in '/usr/share/doc/nut/examples/' You need to copy these to '/etc/nut' before applying the below procedure.

 sudo cp /usr/share/doc/nut/examples/ups* /etc/nut
 sudo gunzip /etc/nut/*.gz
 sudo chown root:nut /etc/nut/ups*
 sudo chmod 644 /etc/nut/ups*

Configure data acquisition

 sudo vi /etc/nut/ups.conf

Sample

 [ups_name]
         driver = your_driver
         port = device_port

   * 'ups_name' is used to address the UPS. You might change it according to your wishes, but don't forget to also adapt it for the rest of this procedure. 
   * 'your_driver' must be replaced by the right value, depending on your exact model of UPS. For my UPS it is "genericups upstype=7"
   * device_port must be replaced by the right value, for exmaple /dev/ttyS0

 [HomeUPS]
         driver = genericups
         port = /dev/ttyS0
         upstype = 7
         mfr = Belkin
         model = F6H650-SER

Configure data server

The provided file '/etc/nut/upsd.conf' is already configured to allow local monitoring only. If you need to modify it, have a look at upsd.conf man page.

Configure user profiles

 sudo vi /etc/nut/upsd.users

Sample

 # Supervision user
 [admin]
 	password = mypass
         allowfrom = localhost
         actions = SET
         instcmds = ALL
 
 # Protection user
 [monuser]
 	password  = mypass
 	allowfrom = localhost
 	upsmon master

Change the "mypass" references above, but don't forget to also adapt it for the rest of this procedure.

Configure protection

 sudo vi /etc/nut/upsmon.conf

Sample

 MONITOR ups_name@localhost 1 monuser mypass master

Start nut.

 sudo /etc/init.d/nut start

Test it.

 upsc myups@localhost

Configuring web monitor

 /usr/lib/cgi-bin/nut
 sudo vi /etc/nut/hosts.conf

Sample

 MONITOR HomeUPS@localhost "Home UPS"

Setup webpage.

 sudo vi /etc/nut/upsstats.html

 @TEMPC@
 <table bgcolor="#50A0A0" align="CENTER">
 <tr><td>
 
 <table cellpadding="5">
 <tr>
 <th colspan="8" bgcolor="#60B0B0">
 
 <font size="+2">Network UPS Tools upsstats
 @VERSION@
 </font>
 
 <br />
 @DATE %a %b %d %X %Z %Y@
 </th>
 
 </tr>
 
 <tr bgcolor="#60B0B0">
 <th colspan="1">System</th>
 <th colspan="1">Model</th>
 <th colspan="1">Status</th>
 <th colspan="1">Battery</th>
 <th colspan="1">Input</th>
 <th colspan="1">Output</th>
 <th colspan="1">Load</th>
 <th colspan="1">UPS<br />Temp</th>
 </tr>
 
 @FOREACHUPS@
 
 <tr align="CENTER">
 <td bgcolor="#00FFFF">
 @HOSTLINK@
 </td>
 
 <td bgcolor="#00FFFF">
 @VAR MODEL@
 </td>
 
 <td bgcolor="@STATUSCOLOR@">
 @STATUS@
 </td>
 
 <td bgcolor="#00FF00">
 @IFSUPP BATTPCT@
 @VAR BATTPCT@
 %
 @ENDIF@
 </td>
 
 <td bgcolor="@UTILITYCOLOR@">
 @IFSUPP UTILITY@
 @VAR UTILITY@
 VAC
 @ENDIF@
 </td>
 
 <td bgcolor="#00FF00">
 @IFSUPP OUTVOLT@
 @VAR OUTVOLT@
 VAC
 @ENDIF@
 </td>
 
 <td bgcolor="#00FF00">
 @IFSUPP LOADPCT@
 @VAR LOADPCT@
 %
 @ENDIF@
 </td>
 
 <td bgcolor="#00FF00">
 @IFSUPP UPSTEMP@
 @UPSTEMP@
 @DEGREES@
 @ENDIF@
 </td>
 </tr>
 
 @ENDFOR@
 
 </table>
 
 </td></tr>
 </table>

Change file ownership.

 sudo chown root:nut /etc/nut/*

References

$Id: BelkinHomeOfficeF6H650SerialUPS,v 1.3 2008/01/07 12:20:46 martin Exp $

Wiki Index All Recent Edit Top
 
Valid XHTML Valid CSS Hacker