Discussion:
[Nut-upsuser] NUT proxy?
Ruzsinszky Attila
2014-08-14 06:53:01 UTC
Permalink
Hi,

I want to use nut-cgi from a centralized machine.

There are two firewalls which run upsmon. upsmon connected to the real upsd
which run two machines behind the firewall. So upsmon is using LAN for
communicating to upsd.

First problem:
I can't connect to upsmon with upsstats.cgi because upsmon not listen on
TCP port.

Second problem:
How can I check more upsd with upsmon? All upsd are listen to the default
port on different machines. For example I'd like an upsmon on TCP1, the
other one on TCP2, etc.

I want to check the UPSs from a centralized place but there is a firewall
between upsd and upsstats.cgi and port forwarding not allowed.

If this explanation not too clear I can draw a simple chart.

TIA,
Ruzsi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20140814/24faa775/attachment.html>
Charles Lepple
2014-08-14 13:01:34 UTC
Permalink
On Thu, Aug 14, 2014 at 2:53 AM, Ruzsinszky Attila
Post by Ruzsinszky Attila
Hi,
I want to use nut-cgi from a centralized machine.
There are two firewalls which run upsmon. upsmon connected to the real upsd
which run two machines behind the firewall. So upsmon is using LAN for
communicating to upsd.
I can't connect to upsmon with upsstats.cgi because upsmon not listen on TCP
port.
Correct, upsmon does not listen on a TCP port because it is a client
to upsd. upsstats.cgi connects to upsd instead.
Post by Ruzsinszky Attila
How can I check more upsd with upsmon? All upsd are listen to the default
port on different machines. For example I'd like an upsmon on TCP1, the
other one on TCP2, etc.
I want to check the UPSs from a centralized place but there is a firewall
between upsd and upsstats.cgi and port forwarding not allowed.
You may want to check out the repeater mode of 'dummy-ups' - it is a
proxy. You could have one instance of upsd which has several dummy-ups
instances, each of which connect to the actual upsd.
--
- Charles Lepple
Charles Lepple
2014-08-15 11:56:33 UTC
Permalink
Hi,
Thanks for your answer!
Post by Charles Lepple
You may want to check out the repeater mode of 'dummy-ups' - it is a
proxy. You could have one instance of upsd which has several dummy-ups
instances, each of which connect to the actual upsd.
Is that part of the NUT package?
Yes, it is one of the drivers:

http://www.networkupstools.org/docs/man/dummy-ups.html#_repeater_mode
--
Charles Lepple
clepple at gmail
Loading...