[Xymon] Display xymon server modules on own line

Marcin Struzak kunci at struzak.com
Thu Jun 18 20:25:39 CEST 2020


Are you saying that xymon adds xymond, xymongen & xymonnet automatically 
on the line corresponding to where it believes it's running?  If so, 
then it most likely thinks it's on *server1*, and the bbd column for 
*localhost* simply makes it attempt to connect to it via the loopback 
interface (as per hosts.cfg).  (My xymonserver.cfg contains this: 
XYMONSERVERHOSTNAME="$MACHINEDOTS", with a comment that it gets set by 
xymoncmd--I use Terabithia RPMs).

I'll play with IPs & hostnames to see if it makes a difference.

Thanks for the suggestions!

--Marcin

On 6/16/2020 12:28 PM, Mark O. Stitson wrote:
>
> I’m assuming that server1 and localhost are actually the same machine. 
> But Xymon thinks they are different.
>
> Somehow you need to convince Xymon that those both are server1, then 
> you can have:
>
> group-only bbd|xymond|xymongen|xymonnet Xymon Server
>
> 0.0.0.0 server1
>
> group-except bbd|xymond|xymongen|xymonnet Servers
>
> 0.0.0.0 server1
>
> 0.0.0.0 server2
>
> There are 2 ways in general to make this happen. Check 
> server/etc/xymonserver.cfg and look for the line
>
> XYMONSERVERHOSTNAME="localhost”
>
> Try changing it to
>
> XYMONSERVERHOSTNAME="server1”
>
> The other option is to use the CLIENT: flag in hosts.cfg. Look for 
> “CLIENT:hostname” in the hosts.cfg man page.
>
> Mark
>
> *From:*Xymon <xymon-bounces at xymon.com> *On Behalf Of *Marcin Struzak
> *Sent:* 16 June 2020 20:08
> *To:* xymon at xymon.com
> *Subject:* Re: [Xymon] Display xymon server modules on own line
>
> Hmm, I see how I could use "group-except xymond|xymongen|xymonnet 
> Servers" to eliminate the unwanted columns from that group, but how do 
> I add them to the "xymon server modules" line (which is on its own, 
> without & before the first group* directive)?
>
> --Marcin
>
> On 6/16/2020 9:40 AM, Mark O. Stitson wrote:
>
> Hi Marcin,
>
> rather than using the group directive look at the man page for 
> hosts.cfg https://xymon/xymon/help/manpages/man5/hosts.cfg.5.html and 
> find the section describing group-only and group-except. Those are 
> special versions of the group command which let you include or exclude 
> certain columns.
>
> Mark
>
> *From:*Xymon <xymon-bounces at xymon.com> 
> <mailto:xymon-bounces at xymon.com> *On Behalf Of *Marcin Struzak
> *Sent:* 16 June 2020 17:29
> *To:* xymon at xymon.com <mailto:xymon at xymon.com>
> *Subject:* [Xymon] Display xymon server modules on own line
>
> My old hobbit config:
> 127.0.0.1     localhost  # noconn bbd NAME:"xymon server modules"
> group Servers
> <server1-ip>  server1    # http://server1/     NOCOLUMNS:files,ports
> <server2-ip>  server2    # http://server2/path NOCOLUMNS:files,ports
> <server3-ip>  ...
> ...
>   
> used to display hobbit-server-specific tests separate from the other tests, even though the modules reported actually run on server1.  This was a nifty trick not to have these tests listed for all servers, with only server1 reporting, and others displaying dashes.
>   
> After moving to xymon, on the "xymon server modules" I only see bbd, info, and trends; xymond, xymongen, and xymonnet magically moved to the server1 line, defeating the purpose of this split.
>   
> How can I achieve this split, where xymon server modules are listed on their own line?
>   
> --Marcin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20200618/3a6fc7bd/attachment.htm>


More information about the Xymon mailing list