From: Vladimir Karpinsky <vkarpinsky@mail.ru>
To: community@lists.altlinux.org
Subject: Re: [Comm] NUT и Ippon
Date: Wed, 01 Feb 2012 20:17:21 +0400
Message-ID: <4F296591.6080201@mail.ru> (raw)
In-Reply-To: <4F293BA1.3000101@mail.ru>
01.02.2012 17:18, Vladimir Karpinsky пишет:
> Будить собираюсь через etherwake по сигналу ONBATT. Как я понимаю, это
> можно сделать через скрипт, обозначенный в upsmon.conf переменной
> NOTIFYCMD. Но, вот, примеров такого скрипта я что-то пока не нашёл. Вопрос
> следующий: что передаётся при вызове этому скрипту? Там вероятно надо
> какой-то case делать, в зависимости от того, по какому поводу вызван. Если
> у кого есть такой пример, покажите, пожалуйста.
Вроде, нашёл: передаётся 2 переменных UPSNAME и NOTIFYTYPE:
UPSNAME: the name of the system that generated the change.
This will be one of your identifiers from the MONITOR lines in upsmon.conf.
NOTIFYTYPE: this will be ONLINE, ONBATT, or whatever event took place which
made upsmon call your script.
Подробности тут:
http://www.networkupstools.org/docs/user-manual.chunked/ar01s07.html
Искал долго --- проверять уже сегодня не буду.
--
С уважением,
Владимир.
next prev parent reply other threads:[~2012-02-01 16:17 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-20 14:00 Vladimir Karpinsky
2012-01-20 14:07 ` Vladimir Karpinsky
2012-01-21 12:35 ` Sergey Vlasov
2012-01-21 13:05 ` Vladimir Karpinsky
2012-01-21 16:07 ` Sergey Vlasov
2012-01-21 18:29 ` Dubrovskiy Viacheslav
2012-01-21 18:47 ` Vladimir Karpinsky
2012-01-21 18:38 ` Vladimir Karpinsky
2012-01-22 17:18 ` Michael Shigorin
2012-01-22 17:28 ` Vladimir Karpinsky
2012-01-22 17:51 ` Michael Shigorin
2012-01-22 17:59 ` Vladimir Karpinsky
2012-01-22 21:04 ` Yura Kalinichenko
2012-01-22 16:12 ` Vladimir Karpinsky
2012-01-22 17:12 ` Yura Kalinichenko
2012-01-22 17:23 ` Vladimir Karpinsky
2012-01-24 14:19 ` Vladimir Karpinsky
2012-01-24 14:37 ` Шенцев Алексей Владимирович
2012-01-24 14:51 ` Vladimir Karpinsky
2012-01-24 15:00 ` Шенцев Алексей Владимирович
2012-01-24 15:21 ` Vladimir Karpinsky
2012-01-24 15:31 ` Шенцев Алексей Владимирович
2012-01-24 15:39 ` Vladimir Karpinsky
2012-01-24 15:51 ` Шенцев Алексей Владимирович
2012-01-24 16:01 ` Vladimir Karpinsky
2012-01-24 19:48 ` Sergey Vlasov
2012-01-25 15:50 ` Vladimir Karpinsky
2012-01-25 20:50 ` Alexey Borisenkov
2012-01-26 5:27 ` Vladimir Karpinsky
2012-01-24 19:04 ` Andrey Liakhovets
2012-01-24 19:13 ` Vladimir Karpinsky
2012-02-01 13:18 ` Vladimir Karpinsky
2012-02-01 16:17 ` Vladimir Karpinsky [this message]
2012-02-02 15:24 ` Vladimir Karpinsky
2012-02-01 17:01 ` Andrey Liakhovets
2012-02-01 17:32 ` Vladimir Karpinsky
2012-02-01 18:06 ` Andrey Liakhovets
2012-02-01 18:11 ` Vladimir Karpinsky
2012-01-22 17:37 ` Dubrovskiy Viacheslav
2012-01-21 12:23 ` Sergey Vlasov
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=4F296591.6080201@mail.ru \
--to=vkarpinsky@mail.ru \
--cc=community@lists.altlinux.org \
/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