Re: [Apcupsd-users] apcupsd.conf NETSERVER config bug, Windows
Brought to you by:
adk0212
|
From: Mark F. <mf...@no...> - 2016-02-28 14:18:43
|
on Sat, 27 Feb 2016 10:22:23 Trevor Roydhouse <tr...@se...> wrote:
> I'm not sure what configuration you are using because you do not state
> above whether you are turning it on for the server (master) or the
> client (slave), just that when off the client (slave) shows COMMLOST. Is
> this when you have it off on the sever (master)? If so, that result
> (COMMLOST) would make sense to me.
I thought I did state this, but perhaps I wasn't clear. The server (master),
always had "NETSERVER on".
The client (Slave) is a Windows 7 computer and I had "NETSERVER off". With this
setting the client showed COMMLOST.
When I commented out "#NETSERVER off" on the WIN7 client and restarted the
service I got "ONLINE SLAVE" on the client and all was well.
Since Wolfgang wrote saying that commented-out is the same as "NETSERVER on"
(default), I have to conclude that NETSERVER must be set "on" for any network
communication, client or server. If this is the case, the comments in
apcupsd.conf should be changed as they lead on to believe that "off" is for
clients/slaves.
Perhaps your man page example should be (my changes in {braces}):
NIS CONFIGURATION DIRECTIVES
NETSERVER [ on | off ]
Turns the network information {service} (NIS) on or off. When on, apcupsd
serves status and event information over the network {and, as the client,
receives status and events information.} This information is also used by the
web-based CGI monitoring programs. The default is set to on.
> The PDF manual section states that it should be on for the server
> (master in the old terminology) but does not explicitly state what it
> should be for the client (slave in the old terminology).
As I said, seems like it should be "on" for the client as well, at least for
Windows clients. Also, if "slave" is the "old terminology" then we should use
"ONLINE CLIENT" instead of "ONLINE SLAVE" in the Windows status box.
> I had a hand in writing [the man page] for the UNIX and UNIX-like operating systems
Thanks a lot for your work. Despite this and the driver installation
documentation confusion, this is overall a great program and I appreciate the
efforts of everyone who worked on it.
--Mark
-----Original Message-----
> To: Apcupsd Discussion List <apc...@li...>
> From: Trevor Roydhouse <tr...@se...>
> Organization: Sentry
> Date: Sat, 27 Feb 2016 10:22:23 +1100
> Subject: Re: [Apcupsd-users] apcupsd.conf NETSERVER config bug, Windows
>
> Mark Foley wrote:
> > On Fri, 26 Feb 2016 11:51:36 Wolfgang Stoeggl wrote:
> >
> >> NETSERVER should be either set to on or off.
> >> If it is commented out, the default value will be used ...
>
> > Well, that's interesting because when set to 'off', the Slave computer shows
> > COMMLOST. When commented out (apparently that means 'NETSERVER on'?) the Slave
> > shows 'ONLINE SLAVE'. So either way, it appears to be a bug from the way I read
> > the comments:
> >
> > # NETSERVER [ on | off ] on enables, off disables the network
> > # information server. If netstatus is on, a network information
> > # server process will be started for serving the STATUS and
> > # EVENT data over the network (used by CGI programs).
> >
> > So, does this mean it should be 'on' if the host is a Master and 'off' if a
> > Slave? 'on' if the host is either a Slave or Master? 'off' if the host is
> > neither a Slave nor a Master (controlling Slaves)?
>
> I have it explicitly set to on because I use the web CGI monitoring
> programs. I do not use server (master)/client (slave) configurations, so
> I can only speculate that it should be on for server (master) so that
> clients (slaves) can retrieve the necessary information from the server
> (master).
>
> I'm not sure what configuration you are using because you do not state
> above whether you are turning it on for the server (master) or the
> client (slave), just that when off the client (slave) shows COMMLOST. Is
> this when you have it off on the sever (master)? If so, that result
> (COMMLOST) would make sense to me.
>
> From the man page I had a hand in writing for the UNIX and UNIX-like
> operating systems:
>
> "NIS CONFIGURATION DIRECTIVES
>
> NETSERVER [ on | off ]
>
> Turns the network information server (NIS) on or off. When on, apcupsd
> serves status and event information over the network. This information
> is also used by the web-based CGI monitoring programs. The default is
> set to on."
>
> The PDF manual section states that it should be on for the server
> (master in the old terminology) but does not explicitly state what it
> should be for the client (slave in the old terminology).
>
> If nothing else, the "ONLINE SLAVE" status needs to be updated to the
> "new" NIS terminology of "ONLINE CLIENT".
>
> TREV.
>
>
>
> ------------------------------------------------------------------------------
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
> _______________________________________________
> Apcupsd-users mailing list
> Apc...@li...
> https://lists.sourceforge.net/lists/listinfo/apcupsd-users
>
|