• February 23, 2025, 09:15:53 AM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

This Forum Beta is ONLY for registered owners of D-Link products in the USA for which we have created boards at this time.

Author Topic: DNS-320 revB and UPS in master mode  (Read 3897 times)

cocoa

  • Level 1 Member
  • *
  • Posts: 2
DNS-320 revB and UPS in master mode
« on: September 24, 2015, 10:17:17 PM »

Hello,

I have a UPS unit attached to the "D-Link 320 ShareCenter", a SOHO 2-bay NAS. I set up the UPS in "Master Mode". Unfortunately it doesn't supply any kind of useful info in the web interface, so I had to connect via ‘nc' to port 3493 to get the proper UPS name.

I manage to to issue a successful ‘upsc’ command:

root@galois:~# upsc megatec@192.168.3.6
battery.charge: 100
battery.voltage: 13.70
battery.voltage.high: 13.00
battery.voltage.low: 10.40
battery.voltage.nominal: 12.0
device.type: ups
driver.name: blazer_usb
driver.parameter.pollinterval: 2
driver.parameter.port: auto
driver.version: 2.6.4
driver.version.internal: 0.08
input.current.nominal: 2.0
input.frequency: 50.1
input.frequency.nominal: 50
input.voltage: 224.4
input.voltage.fault: 224.4
input.voltage.nominal: 230
output.voltage: 224.4
ups.beeper.status: enabled
ups.delay.shutdown: 30
ups.delay.start: 180
ups.load: 6
ups.productid: 5161
ups.status: OL
ups.type: offline / line interactive
ups.vendorid: 0665

Then I tried to setup upsmon.conf in order to monitor the UPS from my Linux host (hostname galois). The username and password are the ones I use to access the web interface.

grep -v "#" /etc/nut/upsmon.conf |sort
DEADTIME 15
FINALDELAY 5
HOSTSYNC 15
MINSUPPLIES 1
MONITOR megatec@192.168.3.6 1 admin <admin-pass> slave
NOCOMMWARNTIME 300
POLLFREQ 5
POLLFREQALERT 5
POWERDOWNFLAG /etc/killpower
RBWARNTIME 43200
SHUTDOWNCMD "/sbin/shutdown -h +0"

When I start the service I get the following "ACCESS-DENIED" logs:

root@galois:~# service ups-monitor start
[ ok ] Starting NUT - power device monitor and shutdown controller: nut-client.
root@galois:~# tail -n 2 /var/log/syslog
Sep 23 19:12:03 galois upsmon[3997]: Startup successful
Sep 23 19:12:03 galois upsmon[3999]: Login on UPS [megatec@192.168.3.6] failed - got [ERR ACCESS-DENIED]

I didn't find any way to probe while issuing user and password.

Any ideas on how to proceed? Is there any way to find username and password? Are there any defaults that I could try?

The manual of the NAS and their website has no information on how to setup slaves and I’m at loss.

Thanks,

Best regards
Logged

cocoa

  • Level 1 Member
  • *
  • Posts: 2
Re: DNS-320 revB and UPS in master mode
« Reply #1 on: September 26, 2015, 12:54:39 AM »

Here is the configuration I was looking for, in case anyone else needs this info:

[root]
password = 123
upsmon master

[client]
password = 123
upsmon slave


Regards
Logged

FurryNutz

  • Poweruser
  •   ▲
    ▲ ▲
  • *****
  • Posts: 49923
  • D-Link Global Forum Moderator
    • Router Troubleshooting
Re: DNS-320 revB and UPS in master mode
« Reply #2 on: November 11, 2015, 06:56:56 AM »

Thanks for sharing this info. Hope it helps future users.  ;)
Logged
Cable: 1Gb/50Mb>NetGear CM1200>DIR-882>HP 24pt Gb Switch. COVR-1202/2202/3902,DIR-2660/80,3xDGL-4500s,DIR-LX1870,857,835,827,815,890L,880L,868L,836L,810L,685,657,3x655s,645,628,601,DNR-202L,DNS-345,DCS-933L,936L,960L and 8000LH.