RE: ng0 snmp could not read interface

"Mohammed Ismail" <[email protected]>
Newsgroups gmane.comp.security.firewalls.m0n0wall
Message-ID <[email protected]>
-----Original Message-----
From: Adam Armstrong [mailto:[email protected]] 
Sent: Wednesday, May 06, 2009 7:44 PM
To: Mohammed Ismail
Cc: [email protected]
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.