From: "Olexander Chernetskyy" <sp_archer@meta.ua> To: Community@lists.altlinux.org Subject: Re: [Comm] Мониторинг UPS'a Date: Fri, 15 Feb 2008 22:34:39 +0200 (EEST) Message-ID: <51722.193.238.192.10.1203107679.metamail@webmail.meta.ua> (raw) In-Reply-To: <200802160149.05037.vip0@seversk.ru> [-- Attachment #1: Type: text/plain, Size: 1734 bytes --] > В сообщении от 16 февраля 2008 Olexander Chernetskyy написал(a): >> > А если этот скрипт просто ручками, без софтины, запустить? погасит >> > машину? >> >> А почему не погасит? Нормальный скрипт. >> > > А можно почитать? #!/bin/sh /sbin/shutdown -h now > >> >> Если заглянуть внутрь - там есть строки типа "Ахтунг!Ахтунг! Комп >> >> сейчас выключится!", но, чтобы они кудато выводились не видел. >> > >> > Значит, скрипт не отрабатывает. Видимо, для него правильное место >> > подбирать >> > надо. >> >> Строки не в скрипте, а в бинарнике. > > Стало быть, по каким-то причинам до этого места бинарь не доходит? Киньтн > ридмишник? Во вложении. > >> >> Но я тут еще открытие сделал. Эта скотина, т.е. софтина ещё и в корень >> гадит. 1. Всё, что выводит на консоль пишет файл сама по себе. (Еще и >> logrotate придется делать). > > Какой файл? где растёт? Ну в корне # ls -1 /*.log /PCMUPS0802.log /usbupsd.log И в PCMUPS0802.log каждые 2 -3 секунды добавляется строка. ---8<--- 2008/02/15 22:17:43 UPSMON_USB: AC fail! 2008/02/15 22:17:45 UPSMON_USB: Power Restore! 2008/02/15 22:17:45 UPSMON_USB: Power Restore! 2008/02/15 22:17:47 UPSMON_USB: Power Restore! --->8--- > >> 2. Есть файл powerstatus. Сейчас там записано просто "OK". Видимо >> последнее состояние. > > Опять-таки, место произрастания? А содержимое файла при вытыкании вилки из > розетки? Проверил. Стабильно "OK" при любых условиях. Рано обрадовался, что задача облегчается. > а так же и вывод tailf /[путь]/powerstatus в процессе вытыкания?? > (достигается запуском команды с другой консоли) >> 3. Файл usbupsd.log. На данный момент пустой. > > Все эти файлы прямо в корне? Да. --- Ладно. Устал я уже сегодня от опытов. Иду спать. -- Best regards, ArCher [-- Attachment #2: Readme.txt --] [-- Type: text/plain, Size: 1071 bytes --] 1. Please login as "root" 2. insert the disk ex: > mcopy A:upsmon_usbv091.tar /usr (copy to user's preferred directory¡^ 3. exract the UPSMON files ex: > tar -xvf upsmon_usbv091.tar 4. enter upsmon directory ex: > cd upsmon 5. copy "down" files to root directory (shut down command) ex: > cp down / 6. execute UPSMON software ==> ./upsmon_usb1 Parameter_A Parameter_B Parameter_C Default parameters Parameter_A : AC_Fail_Countdown time Parameter_B : UPS TurnOFF Delay time Parameter_C : USB Name EX: When the power goes off, UPSMON will count down for 100 seconds. If the power is not back on within 100 seconds, UPS will count down another 120 seconds and then shut down UPS. While first 100 second count down ends, UPSMON program will execute the OS shutdown command. If the power comes back within 100 seconds, the shutdown command will be cancelled.
next prev parent reply other threads:[~2008-02-15 20:34 UTC|newest] Thread overview: 49+ messages / expand[flat|nested] mbox.gz Atom feed top 2008-02-08 12:06 Olexander Chernetskyy 2008-02-08 12:12 ` Алексей Шенцев 2008-02-08 12:33 ` Olexander Chernetskyy 2008-02-08 12:55 ` Алексей Шенцев 2008-02-08 13:34 ` Andriy Dobrovol`s`kii 2008-02-08 13:38 ` Алексей Шенцев 2008-02-14 6:29 ` Olexander Chernetskyy 2008-02-14 6:38 ` Алексей Шенцев 2008-02-14 6:59 ` Olexander Chernetskyy 2008-02-14 10:21 ` Sergey Vlasov 2008-02-15 13:20 ` Sergey Vlasov 2008-02-15 14:10 ` Olexander Chernetskyy 2008-02-15 14:49 ` Sergey Vlasov 2008-02-15 18:01 ` Olexander Chernetskyy 2008-02-15 18:06 ` Vyatcheslav Perevalov 2008-02-15 18:22 ` Olexander Chernetskyy 2008-02-15 18:40 ` Vyatcheslav Perevalov 2008-02-15 18:59 ` Olexander Chernetskyy 2008-02-15 19:09 ` Vyatcheslav Perevalov 2008-02-15 20:34 ` Olexander Chernetskyy [this message] 2008-02-25 5:44 ` alisher 2008-02-15 23:01 ` Michael Shigorin 2008-02-16 16:05 ` Olexander Chernetskyy 2008-02-14 9:53 ` [Comm] rsync iso-образа из /pub/beta Журкин Владимир Александрович 2008-02-14 14:41 ` Mikhail Gusarov 2008-02-15 0:22 ` Журкин Владимир Александрович 2008-02-15 4:11 ` [Comm] Установка GRUB2 Aleksey Deryagin 2008-02-15 5:14 ` Хихин Руслан 2008-02-15 5:54 ` Gleb Kulikov 2008-02-15 6:25 ` Хихин Руслан 2008-02-15 6:30 ` Mikhail Gusarov 2008-02-15 7:59 ` Дерягин Алексей 2008-02-17 6:22 ` Andrey Rahmatullin 2008-02-15 7:01 ` Gleb Kulikov 2008-02-15 7:22 ` Хихин Руслан 2008-02-17 9:15 ` Хихин Руслан 2008-02-19 20:25 ` Aleksey Deryagin 2008-02-19 20:39 ` Хихин Руслан 2008-02-20 0:34 ` Евгений Терешков 2008-02-20 3:46 ` Aleksey Deryagin 2008-02-15 17:13 ` Victor 2008-02-16 20:10 ` Aleksey Deryagin 2008-02-16 20:15 ` Aleksey Deryagin 2008-02-16 20:46 ` Aleksey Deryagin 2008-02-15 23:07 ` Michael Shigorin 2008-02-16 5:40 ` Aleksey Deryagin 2008-02-16 9:43 ` Michael Shigorin 2008-02-16 19:57 ` Aleksey Deryagin 2008-02-08 14:15 ` [Comm] Мониторинг UPS'a Motsyo Gennadi aka Drool
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=51722.193.238.192.10.1203107679.metamail@webmail.meta.ua \ --to=sp_archer@meta.ua \ --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