|
||||||||||
-----Original Message----- From: Adam Armstrong [mailto:lists at memetic dot org] Sent: Wednesday, May 06, 2009 7:44 PM To: Mohammed Ismail Cc: m0n0wall at lists dot m0n0 dot ch Subject: Re: [m0n0wall] ng0 snmp could not read interface Mohammed Ismail wrote: > if (preg_match('/serial[0-9]:/', $if)) { $nullintf = '1'; } > if(!$config['allow_ng']) { > if (preg_match('/ng[0-9]+$/', $if)) { $nullintf = '1'; } > } > if ($nullintf == 0) { > Oh wow, i really do suck. I forgot to commit the later changes to interfaces.php. This is showing a previous (silly) fix i did, with a config entry to allow only NG-type interfaces. Please replace yours with the one from the SVN *again*. Thanks, adam. >>>>>>>>>>>>>>>>>>>>>>>>. I guess I figured it out, Now it is working great Here are my config.php ### Interface name strings to ignore $config['bad_if'] = array('ng1', 'ng2', 'ng3', 'ng4', 'ng5', 'ng6', 'ng7', 'ng8', 'ng9'); $config['allow_ng'] = array('/ng[0-9]:/', $if); ######### Now it is reading ng0 and ignoring ng1,2,3,4 etc.. I failed to make it ignore using arry like this array('/ng[0-9]:/') But any way I am very pleased now I am having my ng0 to appear. Thanks allot Adam , Now I am using observer from svn version Only one thing to go .. 137 interfaces at end 0 links at start 0 links at end 6 adjacencies at start 6 adjacencies at end Error: Could not find/open font Error: Could not find/open font Error: Could not find/open font Error: Could not find/open font ERROR: opening 'Array': No such file or directory ERROR: opening 'Array': No such file or directory ERROR: opening 'Array': No such file or directory That's when cron-hourly.sh runs Best regards, Mohammed |