Patrick Shanahan wrote:
* David C. Rankin
[06-28-08 01:32]: Sending command: beeper.off Response: OK
I think using the "rcupsd" init script is the key and that takes adding upsd to uucp group. Keep plugging away.
well, I had that option before adding the /dev/hiddev0, but cannot get it to accept commands :^(
15:40 wahoo:~ # rcupsd status Checking for service NUT UPS server running Checking for service NUT UPS monitor running
Patrick, I found that I couldn't start nut without user upsd as a member of group uucp as we discussed last night. Started as root from the command line, I couldn't communicate with the ups (with or without) /dev/hiddev0. Once I edited /etc/group and created /dev/hiddev0, it started and I could communicate with it without any problem at all. Almost like someone had written the program to do just that. Here are all the details of the remaining config for each of the files in /etc/ups (minus the .html files): /etc/ups/hosts.conf MONITOR nirvana_ups@localhost "Local UPS" /etc/ups/ups.conf [nirvana_ups] driver = usbhid-ups explore vendor="CPS" desc = "Nirvana UPS - Cyberpower 1000" port = /dev/hiddev0 /etc/ups/upsd.conf ACL all 0.0.0.0/0 ACL localhost 127.0.0.1/32 ACL nirvana 127.0.0.2/32 ACL rbpllc 66.76.63.60/32 ACCEPT localhost REJECT all /etc/ups/upsd.users [upsmaster] password = -------------- allowfrom = localhost upsmon master [upsslave] password = --------------- allowfrom = localhost upsmon slave [david] password = -------------- allowfrom = localhost nirvana skyline rbpllc actions = SET instcmds = ALL /etc/ups/upsmon.conf MONITOR nirvana_ups@localhost 1 upsmaster <notmyrealpassword> master MINSUPPLIES 1 SHUTDOWNCMD "/sbin/shutdown -h +0" NOTIFYCMD /usr/lib/powersave/powersave-notify POLLFREQ 5 POLLFREQALERT 5 HOSTSYNC 15 DEADTIME 15 POWERDOWNFLAG /etc/killpower NOTIFYFLAG ONLINE SYSLOG NOTIFYFLAG COMMOK SYSLOG NOTIFYFLAG SHUTDOWN SYSLOG NOTIFYFLAG ONBATT SYSLOG+WALL+EXEC NOTIFYFLAG LOWBATT SYSLOG+WALL+EXEC NOTIFYFLAG FSD SYSLOG+WALL+EXEC NOTIFYFLAG NOCOMM SYSLOG+WALL+EXEC NOTIFYFLAG COMMBAD SYSLOG+WALL+EXEC RBWARNTIME 43200 NOCOMMWARNTIME 300 FINALDELAY 5 /etc/ups/upssched.conf CMDSCRIPT /usr/local/ups/bin/upssched-cmd /etc/ups/upsset.conf I_HAVE_SECURED_MY_CGI_DIRECTORY Here are my cheater scripts to dump the config: [23:10 nirvana/home/david/tmp] # cat getupsconfig #!/bin/bash for i in $(sudo ls /etc/ups); do echo -e "/etc/ups/$i\n" >> /home/david/tmp/upsconfig /home/david/linux/scripts/nocomment "/etc/ups/$i" >> /home/david/tmp/upsconfig done exit 0 [23:25 nirvana/home/david/tmp] # cat /home/david/linux/scripts/nocomment #!/bin/bash if [[ -z "$1" ]]; then echo -e "\n\n\tUsage: ./nocomment <filename>" echo -e "\n\n\tWill parse the text file and remove all blank lines and all lines beginning \ \n\twith an '#' or ';'. It is useful for looking at configuration files.\n" exit 1 fi echo "" sed -e '/^#/d' -e '/^;/d' -e '/^$/d' <$1 echo "" exit 0 Good luck. Once 'all' of the pieces of the puzzle are in place, I'll wager yours will work like a champ. -- David C. Rankin, J.D., P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org