Xymon Mailing List Archive search

host grepping

list Galen Johnson
Thu, 9 Jan 2014 23:01:27 +0000
Message-Id: <user-201655c71e56@xymon.invalid>

Found that shortly after I sent the mail (isn't that always the case?).  

Feature request: It would be handy to have xymongrep handle more than just test lookups to save some scripting time.  I think it would be awesome if it was extended to allow you to reference a host and have it return the tests for just that host (especially when it may be spread across multiple entries) and allow an argument to get the CLIENT, NAME or other modifier as needed.

:-)

=G=

From: Xymon <xymon-bounces at xymon.com> on behalf of John Thurston <user-ce4d79d99bab@xymon.invalid>
Sent: Thursday, January 9, 2014 5:46 PM
To: xymon at xymon.com
Subject: Re: [Xymon] host grepping

On 1/9/2014 1:16 PM, Galen Johnson wrote:
Hey,

I have to be missing something obvious...is there a command, like xymongrep, that will grep the host file and honor the include?  Yes, I could script it but it would be nice if it was avalable...or if xymon grep could search for more than the test but the host or modifiers (like CLIENT: or NAME:).  Or am I just an idiot and missing something obvious.
Maybe you are looking for the 'xymoncfg' utility?

xymoncfg(1) dumps the full hosts.cfg file to stdout. It follows
"include" tags in the hosts.cfg files, and prints the full contents as
seen by the xymongen(1) and xymonnet(1) utilities.

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

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