Professional Documents
Culture Documents
Install
1. Required to install nut-client, nut-server
2. For collecting data into RRD database we also need to install Collectd with NUT plugin;
sudo -i
aptitude update; aptitude install nut-client nut-server collectd
Configure
Configure NUT server - first. If it will not work anything else - is not important :) Check your serial
port path and replace /dev/ttyS0 if it’s different.
No meu caso foi dev/ttyACM0
cat >> /etc/nut/ups.conf << EOF
[ups]
driver = solis
port = /dev/ttyACM0
desc = "UPS"
EOF
If you are using USB connection than change “driver” variable also with path.
Testing
Testing NUT-server by starting plugin binary manually:
root@server:~# /lib/nut/solis -a ups
Network UPS Tools - Megatec/Q1 protocol serial driver 1.56 (2.7.2)
Duplicate driver instance detected! Terminating other driver!
Supported UPS detected with megatec protocol
Vendor information unavailable
No values provided for battery high/low voltages in ups.conf
Data returned OK. If you see error with connection - check file /dev/ttyS0 permissions.
ls -lah /dev/ttyS0
crw-rw---- 1 root nut 4, 64 Nov 16 14:43 /dev/ttyS0
Testing
Testing NUT-client connection to NUT-server
root@server:~# upsc ups
Init SSL without certificate database
battery.charge: 100
battery.voltage: 13.40
battery.voltage.high: 13.00
battery.voltage.low: 10.40
battery.voltage.nominal: 12.0
device.type: ups
driver.name: blazer_ser
driver.parameter.pollinterval: 2
driver.parameter.port: /dev/ttyS0
driver.version: 2.7.2
driver.version.internal: 1.56
input.current.nominal: 2.0
input.frequency: 49.9
input.frequency.nominal: 50
input.voltage: 222.3
input.voltage.fault: 221.8
input.voltage.nominal: 220
output.voltage: 222.3
ups.beeper.status: enabled
ups.delay.shutdown: 30
ups.delay.start: 180
ups.load: 22
ups.status: OL
ups.temperature: 25.0
ups.type: offline / line interactive
Now we can open this database using GUI or via web-collectd Frontend:
Additional Links
• Archwiki UPS APC
• NUT official site
• nut.conf details
• ups.conf details
• upsmon.conf details
#bash
#GNU/Linux
#hardware
#UPS
Nov 16, 2017
Object 1
GitHub
Twitter
LinkedIn
Google+
RSS
Powered by Hugo.