apcupds a konfigurace MASTER-SLAVE

Radek Skuhra radek.skuhra na qcm.cz
Středa Červen 11 09:13:56 CEST 2003


Dobry den,

mam jeden problem.

Situace.

UPS(Symmetra Power Array) je seriovym kabelem pripojena na UPS Share.

Server MASTER (MDK9.0) je pripojen pomoci serioveho kabelu k UPS Share
(Advanced Port). Komunikce MASTER - UPS Share probiha bez problemu.

konfigurace apcupsd.conf (MASTER)

UPSCABLE 940-0024B
UPSTYPE sharesmart
DEVICE /dev/ttyS0
LOCKFILE /var/lock
NETSERVER on
NISIP xxx.xxx.xxx.xxx
NISPORT xxxx
UPSCLASS netmaster
UPSMODE net
NETTIME 60
NETPORT 6666
SLAVE proxy

apcupsd na MASTER bezi a komunikuje s UPS a tady se zda vsechno v poradku.


Server SLAVE (MDK9.0) k UPS Share nepripojen. Komunikace by mela probihat
s MASTER pres ethernet.

konfigurace apcupsd.conf (SLAVE)
UPSCABLE ether
UPSTYPE net
DEVICE typo:6666
NETSERVER on
NISIP xxx.xxx.xxx.xxx
NISPORT xxxx
UPSCLASS netslave
UPSMODE net
NETPORT 6666
MASTER typo

apcupsd se mi nedari vubec spustit. Nevim v cem by mohl byt problem.

	apcupsd -d

apcupsd: apcupsd.c:280 Options parsed.
apcupsd: apcupsd.c:302 Config file /etc/apcupsd/apcupsd.conf processed.
apcupsd: apcipc.c:145 write_lock at drivers.c:184
apcupsd: drivers.c:188 Driver dumb is configured.
apcupsd: drivers.c:188 Driver apcsmart is configured.
apcupsd: drivers.c:188 Driver net is configured.
apcupsd: drivers.c:191 Driver net found and attached.
apcupsd: drivers.c:188 Driver usb is configured.
apcupsd: apcipc.c:152 write_unlock at drivers.c:202
apcupsd: drivers.c:204 Driver ptr=0x80604f8
apcupsd: apcupsd.c:313 Attached to driver: net
apcupsd: apcipc.c:145 write_lock at net.c:338

po
	/etc/init.d/apcupsd start
Starting UPS monitoring:                                        [  OK  ]

se v logu objevi: Jun 11 09:01:37 proxy apcupsd:  succeeded

ale po
	ps afex | grep apc
nic

	/etc/init.d/apcupsd stop
Shutting down UPS monitoring:                                   [FAILED]

/var/log/apcupsd.events zeje prazdnotou.
a ani jinde v logu neni nic, co by me navedlo na to, kde by mohl byt
problem.

 V cem muze byt problem? Jak spravne nakonfigurovat SLAVE server, ktery
neni pripojen seriovym kabelem k UPS Share? Proc se apcupsd na SLAVE
serveru nespusti, i kdyz se tvari, ze ano?


Radek Skuhra




Další informace o konferenci Linux