Xymon Mailing List Archive search

xymongrep yielding no result?

5 messages in this thread

list Jason Chambers · Tue, 16 Nov 2010 19:45:57 +0000 ·
Everytime I run xymongrep, it's not finding any data for anything I'm searching for. Everything seems fine in my hosts.cfg file.

Suggestions?

Jason Chambers
IT Help Desk Associate

GEOSOFT INC.
freedom to explore
T +X XXX.XXX.XXXX #344
F +X XXX.XXX.XXXX

Visit our user-be8ce7065ec5@xymon.invalid
list Jason Chambers · Tue, 16 Nov 2010 20:01:31 +0000 ·
I just took bbhostgrep from the backups, renamed it as xymongrep, and that seems to be working for me as a work around.
signature

Jason Chambers
IT Help Desk Associate

GEOSOFT INC.
freedom to explore
T +X XXX.XXX.XXXX #344
F +X XXX.XXX.XXXX

Visit our user-be8ce7065ec5@xymon.invalid

quoted from Jason Chambers
From: Jason Chambers [mailto:user-3fa671c0a30d@xymon.invalid]
Sent: November-16-10 2:46 PM
To: 'xymon at xymon.com'
Subject: [xymon] xymongrep yielding no result?

Everytime I run xymongrep, it's not finding any data for anything I'm searching for. Everything seems fine in my hosts.cfg file.

Suggestions?

Jason Chambers
IT Help Desk Associate

GEOSOFT INC.
freedom to explore
T +X XXX.XXX.XXXX #344
F +X XXX.XXX.XXXX

Visit our user-be8ce7065ec5@xymon.invalid<http://www.geosoft.com>;
list Henrik Størner · Tue, 16 Nov 2010 20:44:26 +0000 (UTC) ·
In <user-53d2f09f10e6@xymon.invalid> Jason Chambers <user-3fa671c0a30d@xymon.invalid> writes:
Everytime I run xymongrep, it's not finding any data for anything I'm searc=
hing for. Everything seems fine in my hosts.cfg file.
Suggestions?

Congratulations, You've filed the first genuine bug report for beta-3. 

This should fix it:


Index: common/xymongrep.c
===================================================================
--- common/xymongrep.c  (revision 6590)
+++ common/xymongrep.c  (working copy)
@@ -146,7 +146,7 @@
                        printf("xymongrep version %s\n", VERSION);
                        exit(0);
                }
-               else if ((strcmp(argv[argi], "--net") == 0) || (strcmp(argv[argi], "--bbnet"))) {
+               else if ((strcmp(argv[argi], "--net") == 0) || (strcmp(argv[argi], "--bbnet") == 0)) {
                        include2 = "netinclude";
                        onlypreferredentry = 0;
                }


Regards,
Henrik
list Cade Robinson · Thu, 18 Nov 2010 10:24:43 -0600 ·
I have that patch in place and I still get no results as well.
strace xymongrep shows that the include files are being opened but nothing
is returned.


-----Original Message-----
From: Henrik Størner <user-ce4a2c883f75@xymon.invalid> [mailto:=?ISO-8859-1?Q?Henrik_
St=F8rner _<user-ce4a2c883f75@xymon.invalid>?=] 
Sent: Tuesday, November 16, 2010 2:44 PM
To: xymon at xymon.com
Subject: Re: [xymon] xymongrep yielding no result?
quoted from Henrik Størner

In <user-53d2f09f10e6@xymon.invalid> Jason
Chambers <user-3fa671c0a30d@xymon.invalid> writes:
Everytime I run xymongrep, it's not finding any data for anything I'm
searc=
hing for. Everything seems fine in my hosts.cfg file.
Suggestions?

Congratulations, You've filed the first genuine bug report for beta-3. 

This should fix it:


Index: common/xymongrep.c
===================================================================
--- common/xymongrep.c  (revision 6590)
+++ common/xymongrep.c  (working copy)
@@ -146,7 +146,7 @@
                        printf("xymongrep version %s\n", VERSION);
                        exit(0);
                }
-               else if ((strcmp(argv[argi], "--net") == 0) ||
(strcmp(argv[argi], "--bbnet"))) {
+               else if ((strcmp(argv[argi], "--net") == 0) ||
(strcmp(argv[argi], "--bbnet") == 0)) {
                        include2 = "netinclude";
                        onlypreferredentry = 0;
                }


Regards,
Henrik
list Cade Robinson · Thu, 18 Nov 2010 10:34:40 -0600 ·
I take that back.
I thought I had that patch in place.

I have it in the SVN but had issues with "make install" and it trying to
create links that already existed so I had to restore the old one to revert.
quoted from Cade Robinson


-----Original Message-----
From: Cade Robinson [mailto:user-a187bb1b921c@xymon.invalid] 
Sent: Thursday, November 18, 2010 10:25 AM
To: xymon at xymon.com
Subject: RE: [xymon] xymongrep yielding no result?

I have that patch in place and I still get no results as well.
strace xymongrep shows that the include files are being opened but nothing
is returned.


-----Original Message-----
From: Henrik Størner <user-ce4a2c883f75@xymon.invalid> [mailto:=?ISO-8859-1?Q?Henrik_
St=F8rner _<user-ce4a2c883f75@xymon.invalid>?=] 
Sent: Tuesday, November 16, 2010 2:44 PM
To: xymon at xymon.com
Subject: Re: [xymon] xymongrep yielding no result?

In <user-53d2f09f10e6@xymon.invalid> Jason
Chambers <user-3fa671c0a30d@xymon.invalid> writes:
Everytime I run xymongrep, it's not finding any data for anything I'm
searc=
hing for. Everything seems fine in my hosts.cfg file.
Suggestions?

Congratulations, You've filed the first genuine bug report for beta-3. 

This should fix it:


Index: common/xymongrep.c
===================================================================
--- common/xymongrep.c  (revision 6590)
+++ common/xymongrep.c  (working copy)
@@ -146,7 +146,7 @@
                        printf("xymongrep version %s\n", VERSION);
                        exit(0);
                }
-               else if ((strcmp(argv[argi], "--net") == 0) ||
(strcmp(argv[argi], "--bbnet"))) {
+               else if ((strcmp(argv[argi], "--net") == 0) ||
(strcmp(argv[argi], "--bbnet") == 0)) {
                        include2 = "netinclude";
                        onlypreferredentry = 0;
                }


Regards,
Henrik