Xymon Mailing List Archive search

xymongrep

3 messages in this thread

list David Welker · Tue, 25 Aug 2015 15:22:23 -0400 ·
Anybody know how to xymongrep via a different port?  I don't see options
allowing for a port change.

Thanks,
David
list Japheth Cleaver · Tue, 25 Aug 2015 12:49:22 -0700 ·
quoted from David Welker

On Tue, August 25, 2015 12:22 pm, David Welker wrote:
Anybody know how to xymongrep via a different port?  I don't see options
allowing for a port change.

Thanks,
David

Hi David,

It's undocumented, since xymongrep is usually called from within the
server context in tasks.cfg, but you can achieve this by directly
modifying the environment xymongrep is called under:

]$ XYMSRV=127.0.0.2 XYMONDPORT=9000 xymongrep --loadhostsfromxymond ssh


HTH,

-jc
list David Welker · Wed, 26 Aug 2015 09:52:26 -0400 ·
JC,

I was sourcing the xymonserver.cfg, but I hadn't exported the variable.
Once I did, it worked, but interesting that your version works without the
exporting...well, with different options anyway... using yours I get a
"Unknown option --loadhostsfromxymond' error.

Thanks!

D


On Tue, Aug 25, 2015 at 3:49 PM, J.C. Cleaver <user-87556346d4af@xymon.invalid>
quoted from Japheth Cleaver
wrote:
On Tue, August 25, 2015 12:22 pm, David Welker wrote:
Anybody know how to xymongrep via a different port?  I don't see options
allowing for a port change.

Thanks,
David

Hi David,

It's undocumented, since xymongrep is usually called from within the
server context in tasks.cfg, but you can achieve this by directly
modifying the environment xymongrep is called under:

]$ XYMSRV=127.0.0.2 XYMONDPORT=9000 xymongrep --loadhostsfromxymond ssh


HTH,

-jc