Re: [Apcupsd-users] apcupsd master / slave (NIS) configuration issues
Brought to you by:
adk0212
|
From: Ronald J. Y. <yac...@po...> - 2008-08-05 13:33:27
|
Adam, Firewall appears to work fine as I can use the client binary in the example directory on the slave side to connect to the NIS master. Here is the output from the slave followed by the master. ./client status APC : 001,035,0904 DATE : Fri Jan 04 13:54:46 EST 2002 HOSTNAME : apctest RELEASE : 3.14.4 VERSION : 3.14.4 (18 May 2008) redhat *UPSNAME : voltron CABLE : Ethernet Link* MODEL : Back-UPS ES 550 *UPSMODE : ShareUPS Master ?????? _why is this reporting master? should it be reporting SharedUPS Slave?_* STARTTIME: Fri Jan 04 13:54:16 EST 2002 *SHARE : ShareUPS* MASTERUPD: Fri Jan 04 13:54:46 EST 2002 MASTER : 137.143.213.100:3551 *STATUS : ONLINE SLAVE * LINEV : 121.0 Volts LOADPCT : 0.0 Percent Load Capacity BCHARGE : 100.0 Percent TIMELEFT : 45.6 Minutes MBATTCHG : 10 Percent MINTIMEL : 10 Minutes MAXTIME : 0 Seconds SENSE : High LOTRANS : 088.0 Volts HITRANS : 139.0 Volts BATTV : 13.5 Volts LASTXFER : Low line voltage NUMXFERS : 0 TONBATT : 0 seconds CUMONBATT: 0 seconds XOFFBATT : N/A STATFLAG : 0x07000408 Status Flag SERIALNO : 3B0751X42018 BATTDATE : 2000-00-00 NOMBATTV : 12.0 Volts FIRMWARE : 840.B3.D USB FW:B3 END APC : Fri Jan 04 13:54:47 EST 2002 Master: ./client status APC : 001,037,0925 DATE : Tue Aug 05 05:33:21 EDT 2008 HOSTNAME : apcmaster RELEASE : 3.14.4 VERSION : 3.14.4 (18 May 2008) redhat UPSNAME : voltron *CABLE : USB Cable* MODEL : Back-UPS ES 550 *UPSMODE : ShareUPS Master* STARTTIME: Tue Aug 05 05:32:19 EDT 2008 *SHARE : ShareUPS* STATUS : ONLINE LINEV : 121.0 Volts LOADPCT : 0.0 Percent Load Capacity BCHARGE : 100.0 Percent TIMELEFT : 45.6 Minutes MBATTCHG : 5 Percent MINTIMEL : 5 Minutes MAXTIME : 0 Seconds SENSE : High LOTRANS : 088.0 Volts HITRANS : 139.0 Volts ALARMDEL : Always BATTV : 13.4 Volts LASTXFER : Low line voltage NUMXFERS : 0 TONBATT : 0 seconds CUMONBATT: 0 seconds XOFFBATT : N/A STATFLAG : 0x07000008 Status Flag MANDATE : 2007-12-20 SERIALNO : 3B0751X42018 BATTDATE : 2000-00-00 NOMINV : 120 Volts NOMBATTV : 12.0 Volts FIRMWARE : 840.B3.D USB FW:B3 APCMODEL : Back-UPS ES 550 END APC : Tue Aug 05 05:33:27 EDT 2008 Looks like networking is fine, one would also assume the configuration is ok as well. I'll dig a bit further, know it is something dumb I am doing and not a issue with apcupsd -Ron Adam Kropelin wrote: > Ronald J. Yacketta wrote: > >> Hello all! >> >> Currently struggling with configuration of a client / server >> configuration using apcuspd 3.14.4 running on Fedora Core 9. >> >> The server (master) starts fine and I see entries in /var/log/messages >> indicating as such, also apcaccess status works. When the client >> (slave) starts I am presented with the following warning: >> >> Warning communications lost with UPS voltron >> >> Checked the firewall on the master (iptables) and both tcp/udp is >> allowed for standard apcupsd port: >> >> ACCEPT tcp -- 137.143.0.0/16 anywhere tcp >> dpt:apcupsd >> ACCEPT udp -- 137.143.0.0/16 anywhere udp >> dpt:apcupsd >> > > Looks pretty good. Technically you only need TCP...apcupsd does not use > UDP. > > >> Also stopped apcupsd on the client and attempted to use apctest which >> results in: >> >> I am going to run through the series of queries of the UPS >> that are used in initializing apcupsd. >> >> Simulating UPSlinkCheck ... >> YWrote: Y Got: 0(v >> getline failed. Apparently the link is not up. >> Giving up. >> > > apctest does not work over a NIS-net connection. I should update it to fail > more gracefully, as it is clearly very confusing as-is. > > >> The master has been configured as follows: >> UPSNAME voltron >> UPSCABLE usb >> UPSTYPE usb >> DEVICE >> NETSERVER on >> NISIP 0.0.0.0 >> NISPORT 3551 >> >> and my slave (client) as such: >> UPSNAME voltron >> UPSCABLE ether >> UPSTYPE net >> DEVICE 137.143.213.100:3551 >> POLLTIME 10 >> NETSERVER off >> NISIP 0.0.0.0 >> NISPORT 3551 >> > > That all looks good, assuming you didn't typo the IP address. ;- ) > > I suspect a general network problem. Have you checked the firewall config > on the client? Also, try an apcaccess query of the server from the client > machine. Something like "apcaccess status 137.143.213.100" should work. If > that fails, it's definitely a networking issue, outside the scope of > apcupsd itself. > > --Adam > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Apcupsd-users mailing list > Apc...@li... > https://lists.sourceforge.net/lists/listinfo/apcupsd-users > |