ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Овечкин Влад" <test@rrnn.ru>
To: <community@altlinux.ru>
Subject: [Comm] Вопрос про nut и, возможно, баг.
Date: Tue, 26 Apr 2005 14:51:38 +0400
Message-ID: <00fc01c54a4d$ec131d20$2101a8c0@main.radio> (raw)

Всем добрый день! Рискну затронуть давнюю темку.
Ситуация стандартная - UPS APCSmart 420, посажен на COM-порт машинки с 
ALTLinux Master 2,4, nut-driver-2.0.1-alt2, nut-2.0.1-alt2, 
nut-server-2.0.1-alt2.

I) По одной и той же строке в стартовых скриптах(upsd и upsdrv) пришлось 
закомментировать:
start()
{
#       upsd_configured || return 0

Иначе вообще не запускалось. Это мой косяк?

После этого заработало:
Результат запуска:
Apr 26 14:25:05 salut-27 apcsmart[23355]: Startup successful
Apr 26 14:25:05 salut-27 upsdrvctl: Network UPS Tools - UPS driver 
controller 2.0.1
Apr 26 14:25:05 salut-27 upsdrv: Starting UPS drivers: succeeded
Apr 26 14:25:18 salut-27 upsd[23396]: Connected to UPS [myups]: 
apcsmart-ttyS0
Apr 26 14:25:18 salut-27 upsd: Connected to UPS [myups]: apcsmart-ttyS0
Apr 26 14:25:18 salut-27 upsd: Network UPS Tools upsd 2.0.1
Apr 26 14:25:18 salut-27 upsd: Synchronizing...
Apr 26 14:25:19 salut-27 upsd[23398]: Startup successful
Apr 26 14:25:19 salut-27 upsd: done
Apr 26 14:25:19 salut-27 upsd: upsd startup succeeded

II) Проверяю дальше:
# upsc myups@localhost ups.status
BOOST OL
OL - типа питание в сети есть, а вот что такое BOOST? Просвятите плиз.

Это на всякий пожарный - с виду всё нормально, может что-нибудь не доглядел?
# upsc myups@localhost
battery.alarm.threshold: 0
battery.charge: 100.0
battery.charge.restart: 00
battery.date: 07/14/04
battery.runtime: 2400
battery.runtime.low: 120
battery.voltage: 13.85
battery.voltage.nominal: 012
driver.name: apcsmart
driver.parameter.port: /dev/ttyS0
driver.version: 2.0.1
driver.version.internal: 1.99.6
input.frequency: 50.00
input.quality: FF
input.sensitivity: H
input.transfer.high: 253
input.transfer.low: 208
input.transfer.reason: T
input.voltage: 214.5
input.voltage.maximum: 214.5
input.voltage.minimum: 213.1
output.voltage: 246.2
output.voltage.target.battery: 230
ups.delay.shutdown: 060
ups.delay.start: 000
ups.firmware: 21.7.I
ups.id: UPS_IDEN
ups.load: 027.9
ups.mfr: APC
ups.mfr.date: 07/14/04
ups.model: Smart-UPS 420
ups.serial: QS0429223145
ups.status: BOOST OL
ups.test.interval: 1209600
ups.test.result: NO

III)
Запускаю upsmon - ошибку выдаёт - где подправить?
Apr 26 14:49:00 salut-27 upsmon[24246]: Master privileges unavailable on UPS 
[myups@localhost]
Apr 26 14:49:00 salut-27 upsmon[24246]: Reason: Access denied
Apr 26 14:49:00 salut-27 upsmon: upsmon startup succeeded

IV) Конфы следующие:
1)ups.conf
 [myups]
        driver = apcsmart
        port = /dev/ttyS0
        desc = "Salut router"
2)upsd.conf
ACL all 0.0.0.0/0
ACL localhost 127.0.0.1/32
ACCEPT localhost
REJECT all
3)upsd.users
[monuser]
password = monpass
allow from = localhost
upsmon master
4)monuser.conf
MONITOR myups@localhost 1 monuser monpass master
MINSUPPLIES 1
SHUTDOWNCMD "/sbin/shutdown -h +0"
POLLFREQ 5
POLLFREQALERT 5
HOSTSYNC 15
DEADTIME 15
POWERDOWNFLAG /etc/killpower
RBWARNTIME 43200
NOCOMMWARNTIME 300
FINALDELAY 5








             reply	other threads:[~2005-04-26 10:51 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-26 10:51 Овечкин Влад [this message]
2005-04-26 11:01 ` Дворников Михаил
2005-04-26 11:10   ` Dmitry V. Levin
2005-04-26 11:19     ` Дворников Михаил
2005-04-26 12:53       ` Овечкин Влад
2005-04-26 15:31       ` Dmitry V. Levin
2005-04-27  6:47         ` Овечкин Влад
2005-04-27  7:30           ` Anatol B. Bazjukin
2005-04-27  7:56             ` Овечкин Влад
2005-04-26 13:00     ` Овечкин Влад
2005-04-26 12:40   ` Овечкин Влад
2005-04-26 11:15 ` Dmitry V. Levin
2005-04-26 12:33   ` Овечкин Влад
2005-04-26 12:40     ` Nick S. Grechukh
2005-04-26 12:43       ` Re[2]: " Anton Gorlov
2005-04-26 13:01         ` Овечкин Влад
2005-04-26 12:59       ` [Comm] Вопрос про nut и,возможно, баг Овечкин Влад
2005-04-26 13:05         ` [Comm] Вопрос про nut и, возможно, баг Nick S. Grechukh
2005-04-26 13:11           ` [Comm] Вопрос про nut и,возможно, баг Овечкин Влад
2005-04-26 13:34 ` [Comm] Вопрос про nut и, возможно, баг Anatol B. Bazjukin
2005-04-26 13:41   ` Овечкин Влад
2005-04-26 13:55     ` Anatol B. Bazjukin

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='00fc01c54a4d$ec131d20$2101a8c0@main.radio' \
    --to=test@rrnn.ru \
    --cc=community@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 Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

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


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