Eliminate the basic stuff. Is the Serial port working? Hookup a null modem to another box and verify that. On Mon, 3 Jun 2002, Bill Mills-Curran wrote:
I sent the message below to the UPS mailing list, but it's a pretty slow list, so I thought I'd see if anyone on WLUG might have an idea. I'm beginning to suspect a serial line configuration issue.
Any ideas?
Thanks, Bill Mills-Curran
---------- Forwarded message ---------- Date: Mon, 3 Jun 2002 08:29:56 -0400 (EDT) To: Ups mailing list <ups@lists.exploits.org> Subject: monitoring a Matrix 3000
Hi,
I've installed the nut rpm's from the RedHat 7.2 distribution:
nut-cgi-0.45.0-3 nut-0.45.0-3 nut-client-0.45.0-3
I am attempting to monitor the state of 2 APC Matrix UPS's; a model 3000 and a model 5000.
I have two different sets of cables to work with; 940-0020B and 940-0024C.
In short, I can't get any indication of communication between my linux box and the UPS. I've looked through the FAQ's and other documentation pretty carefully, but I must be missing something. Any direction anyone can give would be appreciated.
Documentation for these UPS's can be found at:
http://sturgeon.apcc.com/techref.nsf/docID/3BF5FC2524F090888525675200631528/...
There's a description of the pinouts on p. 39.
**************** Basic setup:
I have a couple of racks of inter-dependent equipment powered from 2 UPS's. The interdependence forces me to shut down all machines before either UPS fails.
I plan to use a single linux box to monitor the state of the UPS's and to send shutdown signals (via small private network) to the servers when the battery gets low.
The linux box is old hardware, but the linux software installation is new.
In an effort to simplify the problem, I've dropped back to monitoring a single UPS.
Below are the config files and results for using the two different cable types. For both config's, I set the permissions on /dev/ttyS0 to 666.
**************** Using the 940-0020B cables.
Config files (without the comments):
**** # /etc/sysconfig/ups SERVER=yes MODEL=genericups DEVICE=/dev/ttyS0 OPTIONS="-t 2" **** # /etc/ups/upsd.conf
UPS tls01 /usr/bin/genericups-ttyS0 -t 2 /dev/ttyS0 ACL all 0.0.0.0/0 ACL localhost 127.0.0.1/32 ACCESS grant monitor localhost password ACCESS deny all all **** # /etc/ups/upsmon.conf
MONITOR tls01@localhost 1 password slave MINSUPPLIES 1 SHUTDOWNCMD "/root/bin/ups.pl shutdown" NOTIFYCMD "/root/bin/ups.pl notify" POLLFREQ 5 POLLFREQALERT 5 HOSTSYNC 15 DEADTIME 15 POWERDOWNFLAG /etc/killpower RBWARNTIME 43200 NOCOMMWARNTIME 300 ******* Results:
1. The services (genericups, upsd, upsmonitor) started ok. I do get the message: UPS tls01@localhost is unavailable
2. upsc tls01@localhost gives the following:
host: tls01@localhost No variables available! Check your upsd.conf entry for this UPS
**************** Using the 940-0024C cables.
Config files (without the comments):
**** # /etc/sysconfig/ups SERVER=yes MODEL=apcsmart DEVICE=/dev/ttyS0 OPTIONS= **** # /etc/ups/upsd.conf
UPS tls01 /usr/bin/apcsmart-ttyS0 /dev/ttyS0 ACL all 0.0.0.0/0 ACL localhost 127.0.0.1/32 ACCESS grant monitor localhost password ACCESS deny all all **** # /etc/ups/upsmon.conf
MONITOR tls01@localhost 1 password slave MINSUPPLIES 1 SHUTDOWNCMD "/root/bin/ups.pl shutdown" NOTIFYCMD "/root/bin/ups.pl notify" POLLFREQ 5 POLLFREQALERT 5 HOSTSYNC 15 DEADTIME 15 POWERDOWNFLAG /etc/killpower RBWARNTIME 43200 NOCOMMWARNTIME 300 ******* Results:
1. The services (apcsmart, upsd, upsmonitor) started ok. I do get the message: UPS tls01@localhost is unavailable
2. upsc tls01@localhost gives the following:
host: tls01@localhost No variables available! Check your upsd.conf entry for this UPS
****************
What am I doing wrong?
TIA, Bill
_______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug
-- ¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø Karl Hiramoto <karl@hiramoto.org> Work: 978-425-2090 ext 25 Cell: 508-517-4819 Personal web page: http://karl.hiramoto.org/ Zoop Productions: http://www.zoop.org/ KTEQ Rapid City: http://www.kteq.org/ AOL IM ID = KarlH420 ¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø Facts are stubborn, but statistics are more pliable.