Re: ng0 snmp could not read interface

Adam Armstrong <[email protected]>
Newsgroups gmane.comp.security.firewalls.m0n0wall
Message-ID <[email protected]>
Mohammed Ismail wrote:
> This is the output when I followed the instruction, 
> xx.xxx.com
> Interfaces : -m: not found
> *-----
> IP Addresses : .!.
> IPv6 Addresses :
> Temperatures :
>
> Then I changed In /discovery/interfaces.php 
> $cmd  = $config['snmpbulkwalk'] . " -m IF-MIB -O nsq -" . $device['snmpver']
> . " -c " . $device['community'] . " " .
> $device['hostname'].":".$device['port'];
>
> ######<<< made it >>> 'snmpwalk'
>   
Please put :

$config['snmpbulkwalk'] = "/usr/bin/snmpbulkwalk";

Into config.php

Observer from 0.6 now uses snmpbulkwalk for walking interface tables.

> $cmd  = $config['snmpwalk'] . " -m IF-MIB -O nsq -" . $device['snmpver'] . "
> -c " . $device['community'] . " " . $device['hostname'].":".$device['port'];
> ##
> Now it is reading lo0, enc0 but no ng at all
> Also I added the new config like and put # in front of old $config['bad_if']
> And the output is like 
> xx.xxx.com
> Interfaces : ++++X
> IP Addresses : +A!.
> IPv6 Addresses :
> Temperatures :
> ##
> Polling xx.xxx.com ( device_id 8 )
>
> Pings : yes :)
> SNMP : yes :)
> Polling temperatures
> Polling device network statistics...
> Polling interfaces
> Looking at xl0 on xx.xxx.com
> Looking at xl1 on xx.xxx.com
> Looking at lo0 on xx.xxx.com
> Looking at enc0 on xx.xxx.com
>
> It started to read all virtual interfaces including ng0-ng253 I guess 
> Suddenly I got 411 interfaces instead of 77 I had before. Reading 14
> m0n0wall.
> ,, 
> I am sorry I don't understand php codes, but I really need the ng0 interface
> so bad, so I can receive logs each under it's m0n0wall.
> As logs are being sent through ng0 IP address.
>   
I see only these interfaces via SNMP from m0n0 :

root@alpha:~# snmpwalk -v2c -c <THING> jersey.memetic.org ifDescr
IF-MIB::ifDescr.1 = STRING: vr0
IF-MIB::ifDescr.2 = STRING: vr1
IF-MIB::ifDescr.3 = STRING: vr2
IF-MIB::ifDescr.4 = STRING: lo0
IF-MIB::ifDescr.5 = STRING: enc0
IF-MIB::ifDescr.6 = STRING: ng0
IF-MIB::ifDescr.7 = STRING: gif0

What do you see on an snmpwalk? Can you show me your config.php?

adam.
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.