Xymon Mailing List Archive search

Configuring the debian xymon client

4 messages in this thread

list John Thurston · Wed, 16 Jan 2019 13:44:13 -0900 ·
With my inability to make the client work in 'local-mode' (see my note to the list of Jan 3), I'm trying to make it work in its default mode.

With apt-get, I've installed the xymon-client package on raspbian. I have it running and reporting into my xymon server. The server is displaying test results. My first difficulty is it is doing _way_ more than I want it to.

I'm getting green for:
  clientlog
  cpu
  disk
  inode
  memory
  msgs
  procs
and clear for
  files
  ports

I don't want all that stuff! All I want is disk, memory, and _maybe_ msgs. The other stuff has got to go. I don't want it pumped across the network, and I don't even want it collected.

How do I trim this client's behavior down to size?

-- 
    Do things because you should, not just because you can.

John Thurston    XXX-XXX-XXXX
user-ce4d79d99bab@xymon.invalid
Department of Administration
State of Alaska
list Adam Thorn · Wed, 16 Jan 2019 23:23:51 +0000 ·
quoted from John Thurston
On 16/01/2019 22:44, John Thurston wrote:
With my inability to make the client work in 'local-mode' (see my note to the list of Jan 3), I'm trying to make it work in its default mode.

With apt-get, I've installed the xymon-client package on raspbian. I have it running and reporting into my xymon server. The server is displaying test results. My first difficulty is it is doing _way_ more than I want it to.

I'm getting green for:
  clientlog
  cpu
  disk
  inode
  memory
  msgs
  procs
and clear for
  files
  ports

I don't want all that stuff! All I want is disk, memory, and _maybe_ msgs. The other stuff has got to go. I don't want it pumped across the network, and I don't even want it collected.

How do I trim this client's behavior down to size?
The way xymon works is that in the default "central" mode, a script runs periodically on the client which sends data to the "central" server where it's then parsed to generate the various test results. The message sent to the server contains the output of e.g.

/usr/lib/xymon/client/bin/xymonclient-linux.sh

or more generally whichever OS-specific script in that directory is executed by xymonclient.sh. So in terms of "pumping [data] across the network": your client sends whatever that script outputs. If you run xymonclient-linux.sh yourself you'll see that it's just an ini-style format, with named sections which eventually get parsed by the xymon server to produce the different test results.

You can suppress some (but not all) of those columns by specifying the NOCOLUMNS option in your hosts.cfg:

http://xymon.sourceforge.net/xymon/help/manpages/man5/hosts.cfg.5.html

so you could add something like

NOCOLUMNS:procs,ports

to a line in hosts.cfg. Note the comment that that'll only suppress future messages but not discard old ones, which'd lead to the tests turning purple - you may thus want to also send a droptest message to the server after changing hosts.cfg, e.g. by running

xymoncmd xymon localhost "drop foo.example.com procs"
xymoncmd xymon localhost "drop foo.example.com ports"

Adam
list John Thurston · Wed, 16 Jan 2019 16:12:32 -0900 ·
quoted from Adam Thorn
On 1/16/2019 2:23 PM, Adam Thorn wrote:
On 16/01/2019 22:44, John Thurston wrote:
With my inability to make the client work in 'local-mode' (see my note to the list of Jan 3), I'm trying to make it work in its default mode.
. . .
How do I trim this client's behavior down to size?
The way xymon works is that in the default "central" mode, a script runs periodically on the client which sends data to the "central" server where it's then parsed to generate the various test results. The message sent to the server contains the output of e.g.

/usr/lib/xymon/client/bin/xymonclient-linux.sh

or more generally whichever OS-specific script in that directory is executed by xymonclient.sh. So in terms of "pumping [data] across the network": your client sends whatever that script outputs.
I'm quite comfortable adjusting what tests results are displayed. I was hoping there was some way to configure what the client sends, as I don't want all that stuff collected (nor sent plaintext across my network).

It looks like I'll need to hack the script, and see how the parser on the xymon server reacts.
quoted from John Thurston


--
    Do things because you should, not just because you can.

John Thurston    XXX-XXX-XXXX
user-ce4d79d99bab@xymon.invalid
Department of Administration
State of Alaska
list John Thurston · Wed, 16 Jan 2019 16:34:13 -0900 ·
quoted from John Thurston
On 1/16/2019 4:12 PM, John Thurston wrote:
On 1/16/2019 2:23 PM, Adam Thorn wrote:
The way xymon works is that in the default "central" mode, a script runs periodically on the client which sends data to the "central" server where it's then parsed to generate the various test results. The message sent to the server contains the output of e.g.

/usr/lib/xymon/client/bin/xymonclient-linux.sh
. . .
It looks like I'll need to hack the script, and see how the parser on the xymon server reacts.

Which I have done, and I'm getting closer to what I need. It looks like the parser is ok with missing sections, so I've stripped xymonclient-linux.sh almost bare. If this works out, I'll probably make a new script and reference it by overriding the os type.
quoted from John Thurston


--
    Do things because you should, not just because you can.

John Thurston    XXX-XXX-XXXX
user-ce4d79d99bab@xymon.invalid
Department of Administration
State of Alaska