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>
On Thu, Aug 14, 2014 at 2:53 AM, Ruzsinszky Attila <ruzsinszky.attila at gmail.com> wrote:> 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.Correct, upsmon does not listen on a TCP port because it is a client to upsd. upsstats.cgi connects to upsd instead.> 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.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
On Aug 15, 2014, at 7:29 AM, Ruzsinszky Attila <ruzsinszky.attila at gmail.com> wrote:> Hi, > > Thanks for your answer! > >> 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