From: Martin F. <mar...@de...> - 2009-11-13 08:52:40
|
Hi, Buchan ! .. in my begin bb-host with: title IT-Services directory includes/hosts/services . . 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 ... cheers, martin 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 > |