Re: [Nut-upsuser] Things seem to be working but upscmd does nothing
2010/12/15 Arjen de Korte nut+us...@de-korte.org nut%2bus...@de-korte.org Citeren Richard richard-...@rain4us.net: (...) upsd.users [nutmon] password = easy nutmon master # or upsmon slave If this is all there is in this file, you've missed setting up the permitted instcmds and actions for this user. See 'man 5 upsd.users' for an explanation. Failing to set this up, will default to not allowing instcmds and variable settings at all. Note that you have a typo error. the directive is upsmon master, not nutmon master. moreover, as Arjen stated, you need to tell if/what the NUT user can do. the prefered way is to have a separate user for this, like: [admin] password = dummypass actions = SET instcmds = ALL cheers, Arnaud -- Linux / Unix Expert RD - Eaton - http://powerquality.eaton.com Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/ Debian Developer - http://www.debian.org Free Software Developer - http://arnaud.quette.free.fr/ ___ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser
Re: [Nut-upsuser] Things seem to be working but upscmd does nothing
Citeren Richard richard-...@rain4us.net: The nut ups daemons seem to be communicating with the UPS but upscmd gives me no joy. Running commands do nothing and produce no output. This is something that needs fixing in 'upscmd'. It erroneously doesn't print the server response after sending off a command, which is very confusing. I already fixed this in the development version a couple of minutes ago. Using the web interface returns an authentication failure and that is the only clue I have. I believe I have everything setup correctly but it's not working. Can someone review this and give me clues as to what I should research next? ups.conf [Hagrid] driver = usbhid-ups port = /dev/apcusb product = Smart-UPS 2200 XL FW:690.19.D USB FW:7.4 serial = JS1005032730 desc = Primary 2200XL with huge battery pack - the big guy Looks good. upsmon.conf MONITOR hag...@localhost 1 nutmon easy master Fine. upsd.users [nutmon] password = easy nutmon master # or upsmon slave If this is all there is in this file, you've missed setting up the permitted instcmds and actions for this user. See 'man 5 upsd.users' for an explanation. Failing to set this up, will default to not allowing instcmds and variable settings at all. Best regards, Arjen -- Please keep list traffic on the list (off-list replies will be rejected) ___ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser
[Nut-upsuser] Things seem to be working but upscmd does nothing
The nut ups daemons seem to be communicating with the UPS but upscmd gives me no joy. Running commands do nothing and produce no output. Using the web interface returns an authentication failure and that is the only clue I have. I believe I have everything setup correctly but it's not working. Can someone review this and give me clues as to what I should research next? ups.conf [Hagrid] driver = usbhid-ups port = /dev/apcusb product = Smart-UPS 2200 XL FW:690.19.D USB FW:7.4 serial = JS1005032730 desc = Primary 2200XL with huge battery pack - the big guy upsmon.conf MONITOR hag...@localhost 1 nutmon easy master upsd.users [nutmon] password = easy nutmon master # or upsmon slave r...@smwarehost:/etc/nut# /etc/rc.d/rc.ups start Network UPS Tools - UPS driver controller 2.4.3 Network UPS Tools - Generic HID driver 0.34 (2.4.3) USB communication driver 0.31 Using subdriver: APC HID 0.95 Network UPS Tools upsd 2.4.3 listening on 127.0.0.1 port 3493 listening on ::1 port 3493 Connected to UPS [Hagrid]: usbhid-ups-Hagrid Network UPS Tools upsmon 2.4.3 UPS: hag...@localhost (master) (power value 1) Using power down flag file /etc/killpower r...@vmwarehost:/usr/src/nut# upscmd -l Hagrid Instant commands supported on UPS [Hagrid]: beeper.disable - Disable the UPS beeper beeper.enable - Enable the UPS beeper beeper.mute - Temporarily mute the UPS beeper beeper.off - Obsolete (use beeper.disable or beeper.mute) beeper.on - Obsolete (use beeper.enable) load.off - Turn off the load immediately load.off.delay - Turn off the load with a delay (seconds) shutdown.reboot - Shut down the load briefly while rebooting the UPS shutdown.stop - Stop a shutdown in progress test.battery.start.deep - Start a deep battery test test.battery.start.quick - Start a quick battery test test.battery.stop - Stop the battery test test.panel.start - Start testing the UPS panel test.panel.stop - Stop a UPS panel test r...@vmwarehost:/etc/nut# upscmd -u nutmon -p easy Hagrid test.battery.start.quick r...@vmwarehost:/etc/nut# ___ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser