From: "Olexander Chernetskyy" <sp_archer@meta.ua>
To: Community@lists.altlinux.org
Subject: Re: [Comm] Мониторинг UPS'a
Date: Thu, 14 Feb 2008 08:29:31 +0200 (EEST)
Message-ID: <60046.194.44.242.194.1202970571.metamail@webmail.meta.ua> (raw)
In-Reply-To: <200802081555.53473.ashen@nsrz.ru>
Добрался, наконец-то до домашнего компа.
Прописал в ups.conf
[KIN525]
driver = newhidups
port = auto
desc = "Powercom KIN-525 UPS"
Далее
----
# /etc/init.d/upsdrv start
Starting UPS drivers: Network UPS Tools: 0.28 USB communication driver
0.28 - core 0.30 (2.0.5)
No matching HID UPS found
Driver failed to start (exit status=1)
Network UPS Tools - UPS driver controller 2.0.5
[FAILED]
---
Всё. Приплыли. Дальше что делать, чтобы соответствующий HID UPS был найден?
> В сообщении от Friday 08 February 2008 15:33:41 Olexander Chernetskyy
> написал(а):
>> А советы? Что там в конфигах для usb нужно прописать?
> Я так прописал:
> Настройка самого ups
> [root@gw nut]# cat ups.conf
> [apcSUA3000I]
> driver = newhidups
> port = auto
> desc = "APC Smart-UPS SUA3000I"
> [root@gw nut]#
>
> Как будет отображаться на html-странице
> [root@gw nut]# cat hosts.conf
> #MONITOR apcSUA3000I@localhost 1 upsmon defupspasswd master
> MONITOR apcSUA3000I@localhost "Серверная УИТ и К"
> [root@gw nut]#
>
> У меня на этом ИБП весит ещё три вин-сервера, на которых стоит NUT-клиент.
> [root@gw nut]# cat upsd.conf
> ACL all 0.0.0.0/0
> ACL localhost 127.0.0.1/32
> ACL srv1c 192.168.XXX.YYY
> ACL srv1cts 192.168.XXX.YYY
> ACL consultant 192.168.XXX.YYY
> ACL localnet 192.168.2.0/24
>
> ACCEPT localhost
> ACCEPT srv1c
> ACCEPT srv1cts
> ACCEPT consultant
> ACCEPT localnet
>
> REJECT all
> [root@gw nut]#
>
> Пароли доступа к nut-серверу
> [root@gw nut]# cat upsd.users
> [admin]
> password = XXXXXXXXXXXX
> allowfrom = localhost
> actions = SET
> instcmds = ALL
> upsmon master
>
> [monuser]
> password = XXXXXXXXXXXX
> allowfrom = localnet
> upsmon slave
> [root@gw nut]#
>
> Настройки самого upsmon
> [root@gw nut]# cat upsmon.conf
> #default
> MINSUPPLIES 1
> SHUTDOWNCMD "/sbin/shutdown -h +0"
> POLLFREQ 5
> POLLFREQALERT 5
> HOSTSYNC 15
> DEADTIME 15
> POWERDOWNFLAG /etc/killpower
> RBWARNTIME 43200
> NOCOMMWARNTIME 300
> FINALDELAY 5
>
> #my ups
> MONITOR apcSUA3000I@localhost 1 upsmon defupspasswd master
> [root@gw nut]#
>
> С каких компов можно сиё лицезреть
> [root@gw nut]# cat upsset.conf
> # Network UPS Tools - upsset.conf file
> <Files upsset.cgi>
> Deny from all
> Allow from 127.0.0.1
> Allow from 192.168.XXX.YYY
> </Files>
> [root@gw nut]#
>
> В /etc/httpd2/conf/httpd2.conf добавил:
>
> <Directory "/var/www/apache2/html/reports/nut">
> Options FollowSymLinks +ExecCGI
> AddHandler cgi-script .cgi
> </Directory>
>
> Ну и сам .htaccess в /var/www/apache2/html/reports/nut/ прописал так как
> мне
> надо.
> Вот вроде и всё.
> --
> С уважением Шенцев Алексей Владимирович.
> E-mail: ashen@nsrz.ru
> XMPP: ashen@altlinux.org, AlexShen@jabber.ru
> ICQ: 271053845
>
--
Best regards,
ArCher
next prev parent reply other threads:[~2008-02-14 6:29 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 [this message]
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
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=60046.194.44.242.194.1202970571.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