Xymon Mailing List Archive search

urlplus.pl / xymongrep

list Dominique Frise
Thu, 23 Dec 2010 09:22:32 +0100
Message-Id: <user-8d155ebf8c6a@xymon.invalid>

On 12/23/10 09:03 AM, Hermann-Josef Beckers wrote:
Hi,

I'm trying to implement urlplus.pl with xymon 4.3.0-beta3.
But urlplus.pl complains:
"SSGIS01 not defined in bb-hosts - skipping". I'm using
include-files for the server definitions. A grep shows a definition,
a call to xymongrep shows no output:

"xymon at linux-dmcl:~/server> grep -i urlplus etc/hosts*
etc/hosts_Windows_Steinfurt:10.45.64.61 SSGIS01 # urlplus
xymon at linux-dmcl:~/server> bin/xymongrep urlplus
xymon at linux-dmcl:~/server> bin/xymongrep urlplus SSGIS01"

Does xymongrep have a problem with include files (despite the man page
saying otherwise) or do I need to correct some variables in urlplus.pl?

Thanks
hjb
Hi,

Henrik released a patch for xymongrep/4.3.0.beta3:

Revision: 6592
           http://xymon.svn.sourceforge.net/xymon/?rev=6592&view=rev
Author:   storner
Date:     2010-11-16 20:46:52 +0000 (Tue, 16 Nov 2010)

Log Message:
xymongrep: Fix broken commandline parsing resulting from trying to be 
backwards-compatible. Reported by Jason Chambers.

Modified Paths:
     branches/4.3.0/common/xymongrep.c

Modified: branches/4.3.0/common/xymongrep.c
===================================================================
--- branches/4.3.0/common/xymongrep.c	2010-11-16 10:27:52 UTC (rev 6591)
+++ branches/4.3.0/common/xymongrep.c	2010-11-16 20:46:52 UTC (rev 6592)
@@ -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;
  		}


This was sent by the SourceForge.net collaborative development platform, 
the world's largest Open Source development site.

Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
Xymon-developer mailing list
user-834d44be5e50@xymon.invalid

Dominique