Xymon Mailing List Archive search

query-frontend (CLI) for `clientlog`, `xymondboard` and `xymondlog`

list Thomas Eckert
Tue, 23 Jun 2015 20:57:10 +0200
Message-Id: <user-4d8b4bdb77b5@xymon.invalid>

Brothers,

currently I’m building a fronted for the various query-commands that can be sent to `xymond`. It is still in it’s early stages but I found myself using it daily already. So others may benefit too.

It’s named `xymonq` (“xymon query”).

Two examples may give a basic idea:

1. Get a list of hosts on page `dc1`:
Traditionally this looks like this:

	$ xymon 127.0.0.1 "xymondboard page=dc1 test=info fields=hostname"

With xymonq

	$ xymonq -P dc1 -L

2. Get disk information this group of hosts:

	$ for my_host in $(xymon 127.0.0.1 "xymondboard page=dc1 test=info fields=hostname"); do
		echo “HOST=$my_host"
		xymon 127.0.0.1 "xymondlog $my_host.disk"
	done

And again the short version with xymonq:

	$ xymonq -q clientlog -P dc1 -s df


More information and download here: http://www.it-eckert.com/software/xymonq/ <http://www.it-eckert.com/software/xymonq/>;

Feedback welcome!

All the best,
Thomas