ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Serge V Kompan <skompan@kspu.kr.ua>
To: sisyphus@altlinux.ru
Subject: [sisyphus] apcupsd master/slave
Date: Mon, 27 Oct 2003 13:34:24 +0200
Message-ID: <16521398625.20031027133424@kspu.kr.ua> (raw)

Стоит в системе apcupsd-3.10.5-alt1, перекомпиленный с поддержкой
master/slave
Есть BACK UPS Pro 1400, который подключен к порту ttyS0 кабелем
940-0020B
В режиме standalone - все прекрасно работает.
Теперь я поставил его в режим master.
на другом компьютере поднял apcupsd-3.10.5-alt1 в качестве slave
Но когда перегружаю демон apcupsd то он по какой то причине не
подымаеться.
В логах пишеться что он поднялся и больше ничего!!!
Поэтому есть вопросы:

1: что нужно прописать что бы логи были на slave более информативные
(ставил в /etc/~init.d/apcupsd в парметре запуска демона -d 4 - но
результата не дало)
2: подскажите возможную ошибку в конфигах
Привожу минимальный набор параметров для master/slave
UPSTYPE backups
UPSCABLE 940-0020B
DEVICE /dev/ttyS0
LOCKFILE /var/lock/serial
NETSERVER on    # if off then use inetd
SERVERPORT 7000
EVENTSFILE /var/log/apcupsd/events
ANNOY 300       # annoy logged in users every 5 min
ANNOYDELAY 120  # start annoy after 2 min of power failure
NOLOGON disable
BATTERYLEVEL -1
MINUTES -1      # shutdown on low battery signal
TIMEOUT 0       # expire timer to shutdown
KILLDELAY 0     # better to 0 on unix (from manual)
STATTIME 0      # obsolete
DATATIME 60
STATFILE /var/log/apcupsd/status
FACILITY local3
UPSCLASS netmaster
UPSMODE net
NETPORT 65535
SLAVE inter.trata.ta
SENSITIVITY L
WAKEUP 300      # wake up not earlier than 5 min after power restored
SLEEP 180       # sleep 3 min before kill the power
RETURNCHARGE 15 # power on after charging to 15%
UPSNAME SU1400

slave
UPSCABLE ether
UPSTYPE backups
LOCKFILE /var/lock/serial
NETSERVER off
UPSCLASS netslave
UPSMODE net
NETPORT 65535
MASTER <указываю имя мастера>
  

-- 
С уважением,
 Serge                          mailto:skompan@kspu.kr.ua



             reply	other threads:[~2003-10-27 11:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-27 11:34 Serge V Kompan [this message]
2003-10-27 15:25 ` [sisyphus] " Michael Shigorin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=16521398625.20031027133424@kspu.kr.ua \
    --to=skompan@kspu.kr.ua \
    --cc=sisyphus@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git