
Note:
This procedure is based on URPMI facilities. You can however adapt it by downloading and installing manually the packages.
This procedure should be applied from a "root" (SuperUser) account terminal,
This procedure will be rewritten when DrakUPS is completed (project between Mandrake and MGE).
Step 2.1: install NUT packages
 Depending on your exact Mandrake release, you might need to add some URPMI sources.
To do so, use Easy URPMI to select the correct sources, and urpmi.setup to modify your configuration.
 Update the list of available packages using the following command:
urpmi.update all
 Actually install NUT packages using the following command:
urpmi nut-server nut
 You might also need to install the following packages:
- nut-cgi: If you need Web interfaces
- knutclient: if you need a KDE interface (need the URPMI "contrib" source)
- wmnut: if you need a WindowMaker, or generic applet, interface
Step 2.2: configure NUT
 Configure data acquisition: Edit the file "/etc/ups/ups.conf" and modify it as below
[ups_name]
driver = your_driver
port = device_port
Notes:
ups_name is further used to address the UPS. You might change it according to your wish, 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 (mge-utalk, mge-shut, newhidups or snmp-ups)
device_port must be replaced by the right value.
- For mge-utalk and mge-shut: the name of the serial port (ie /dev/ttyS0, /dev/ttyS1, ...)
- For snmp-ups: the name of the SNMP Agent host
- For newhidups: "auto" or whatever value as newhidups automagically probe for USB UPS.
 Configure data server: the provided file "/etc/ups/upsd.conf" is already configured to allow local monitoring only. If you need to modify it, have a look at upsd.conf manual page.
 Configure user profiles: Edit the file "/etc/ups/upsd.users" and modify it as below
# Supervision user
[admin]
password = mypass
allowfrom = localhost
actions = SET
instcmds = ALL
# Protection user
[monuser]
password = mypass
allowfrom = localhost
upsmon master
Notes:
 For security reasons, prefer to change "mypass" references above, but don't forget to also adapt it
for the rest of this procedure..
 Configure protection:
Copy the file "/etc/ups/upsmon.conf.sample" to "/etc/ups/upsmon.conf"
Edit the file "/etc/ups/upsmon.conf" and modify it as below
MONITOR ups_name@localhost 1 monuser mypass master
Step 2.3: start services
 Start all services (data acquisition driver, network server and protection) using:
service upsd start
service upsmon start
 If all went fine, the following lines should be displayed:
NUT Starting UPS daemon: [ OK ]
NUT Starting UPS model drivers [ OK ]
NUT Starting UPS monitor: [ OK ]
 From now on, these services will automatically started at boot time.
Step 3: test your configuration
This step is common to all Operating System. Please, follow the "step 3" instructions given on this page.
To contact MGE about this procedure, go here.
 |
|
|
MGE UPS SYSTEMS |
 |
|
|