Panagiotis Atmatzidis
2015-Sep-24 06:23 UTC
[Nut-upsuser] Configure NUT slaves for D-Link 320 ShareCenter NUT master
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 at galois:~# upsc megatec at 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 at 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 at galois:~# service ups-monitor start [ ok ] Starting NUT - power device monitor and shutdown controller: nut-client. root at 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 at 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 Panagiotis (atmosx) Atmatzidis email: atma at convalesco.org URL: http://www.convalesco.org GnuPG ID: 0x1A7BFEC5 gpg --keyserver pgp.mit.edu --recv-keys 1A7BFEC5 "Everyone thinks of changing the world, but no one thinks of changing himself.? - Leo Tolstoy -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 832 bytes Desc: Message signed with OpenPGP using GPGMail URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20150924/b7b450e0/attachment.sig>
Charles Lepple
2015-Sep-24 11:26 UTC
[Nut-upsuser] Configure NUT slaves for D-Link 320 ShareCenter NUT master
On Sep 24, 2015, at 2:23 AM, Panagiotis Atmatzidis <atma at convalesco.org> wrote:> > 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."upsc -l 192.168.3.6" should also list the UPS name.> Any ideas on how to proceed? Is there any way to find username and password? Are there any defaults that I could try?Is it possible to get a shell as root? The NUT user/password settings are typically stored in /etc/nut/upsd.users If not, is it stored in the saved configuration settings? http://forums.dlink.com/index.php?topic=41866.msg147229#msg147229 -- Charles Lepple clepple at gmail
Charles Lepple
2015-Sep-25 02:37 UTC
[Nut-upsuser] Configure NUT slaves for D-Link 320 ShareCenter NUT master
On Sep 24, 2015, at 5:20 PM, Panagiotis Atmatzidis <atma at convalesco.org> wrote:> > However there is a ?shadow? file which has a ?root? user. The password hash (md5) is not similar to ?admin? password which I use from the web-ui.Definitely something to check, but it would be a coincidence if that worked. NUT's upsd.users is designed to be separate from the system password file. Also note that they might not have added monitoring roles to upsd.users, either. Since NUT is distributed under the GPL, you should be able to request a copy of the source code that D-Link used to build that version of NUT. It might have some insights into how their integration works. -- Charles Lepple clepple at gmail
Possibly Parallel Threads
- Configure NUT slaves for D-Link 320 ShareCenter NUT master
- Configure NUT slaves for D-Link 320 ShareCenter NUT master
- Configure NUT slaves for D-Link 320 ShareCenter NUT master
- ANN: HaLVM 1.0: the Haskell Lightweight Virtual Machine
- rsync does hours of "fake-work" after failure