From: Martin F. <mar...@de...> - 2009-11-13 10:45:48
|
Thanks for the advice, works like a charme with the "real" include-statement ;-) .. then i've got another problem with directory- versis include-statement, but that's a question for the hobbit-list ... thanks & cheers martin On Fri, 13 Nov 2009, Buchan Milne wrote: > On Friday, 13 November 2009 09:52:23 Martin Flemming wrote: >> Hi, Buchan ! >> >> .. in >> my begin bb-host with: >> >> title IT-Services >> >> directory includes/hosts/services > > Ah, but this isn't an "include" statement. Devmon supports include, > dispinclude, netinclude (see below). > > >> and in the includes/hosts/services/fibrechannel >> >> page Fibrechannel Fibrechannel >> group-compress fcs >> X.X.X.X fcs3 # DEVMON:cid(public) DESCR:"Silkworm 4100" COMMENT:"Silkworm >> 4100" http://fcs3/ X.X.X.X fcs4 # DEVMON:cid(public) DESCR:"Silkworm 4100" >> COMMENT:"Silkworm 4100" http://fcs4/ X.X.X.X fcs5 # DEVMON:cid(public) >> DESCR:"Silkworm 4100" COMMENT:"Silkworm 4100" http://fcs5/ X.X.X.X fcs7 # >> DEVMON:cid(public) DESCR:"Silkworm 4100" COMMENT:"Silkworm 4100" >> http://fcs7/ X.X.X.X fcs8 # DEVMON:cid(public) DESCR:"Silkworm 4100" >> COMMENT:"Silkworm 4100" http://fcs8/ >> >> .. if i removed this file and integrated into the bb-hosts directly, it >> works ... >> > > Can you test by removing the "directory includes/hosts/services", and instead > add: > include includes/hosts/services/fibrechannel > ? > > If this works for you, I think use it, and file a feature request to support > the "directory" statement. I note that this statement isn't documented in the > xymon 4.2.3 bb-hosts man page. While I was aware of this feature in e.g. > hobbitgraph.cfg, hobbitlaunch.cfg, I wasn't aware it worked in bb-hosts ... > > >> On Fri, 13 Nov 2009, Buchan Milne wrote: >>> On Thursday, 12 November 2009 21:03:56 mar...@de... wrote: >>>> Hi ! >>>> >>>> i've got several include-directives in my bb-hosts, >>>> and observed, that devmon (v0.3.1-beta1) only recognize devices >>>> if they are directly written in bb-hosts and not in one of several >>>> include-files .. >>>> >>>> Is that right or a bug ... >>> >>> Support for include files was added a while back : >>> >>> $ grep -n -A10 "include statement" modules/dm_config.pm >>> 1279: # First see if this is an include statement >>> 1280- if($line =~ /^\s*(?:disp|net)?include\s+(.+)$/i) { >>> 1281- my $file = $1; >>> 1282- # Tack on our etc dir if this isnt an absolute path >>> 1283- $file = "$etcdir/$file" if $file !~ /^\//; >>> 1284- # Add the file to our read array >>> 1285- push @bbfiles, $file; >>> 1286- } >>> 1287- >>> 1288- # Else see if this line matches the ip/host bb-hosts format >>> 1289- elsif($line =~ /^\s*(\d+\.\d+\.\d+\.\d+)\s+(\S+)(.*)$/i) { >>> >>> >>> Unfortunately, there's no debugging enabled (e.g. listing which files are >>> being opened). >>> >>> Can you paste some example include lines? >>> >>> Regards, >>> Buchan >> >> --------------------------------------------------------------------------- >> --- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 >> 30-Day trial. Simplify your report design, integration and deployment - and >> focus on what you do best, core application coding. Discover what's new >> with Crystal Reports now. http://p.sf.net/sfu/bobj-july >> _______________________________________________ >> Devmon-support mailing list >> Dev...@li... >> https://lists.sourceforge.net/lists/listinfo/devmon-support > > |