[Xymon] query-frontend (CLI) for `clientlog`, `xymondboard` and `xymondlog`
Thomas Eckert
thomas.eckert at it-eckert.de
Tue Jun 23 20:57:10 CEST 2015
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20150623/7fcb2e4d/attachment.html>
More information about the Xymon
mailing list