Observium wasn't looking for anything. This is netsnmp being a horribly written pile of crap.

As I said in previous email, you need to delete its cache files, because it is useless.

This has nothing to do with Observium, its netsnmp's caching being broken.

The files you're looking for are .index in the mibs directory and subdirectories. If it's one of the user-despising versions which puts these files somewhere else, I have no idea what they're called. :D

Adam.

Sent from BlueMail
On 27 Nov 2016, at 00:19, Kaya Saman <kayasaman@gmail.com> wrote:
Quickly reporting back on the fix for the Cisco Flash Storage MIB:

the debug claimed it couldn't find the MIB within the mibs/cisco path??
It is there, permissions are ok and the file is fine.....

So more digging and it looks like Observium was looking for a .my file??

A quick symlink: ln -s CISCO-FLASH-MIB CISCO-FLASH-MIB.my

and now it works??

Weird!

--K



On 11/26/2016 11:35 PM, Kaya Saman wrote:
I managed to fix this by renaming the interface;

manually running: discovery.php -h <host> -fd and dumping into a file
with > /tmp/dump

showed that the interface was being "ignored" due to a matching string
of: *lp0* which I'm guessing is defaulted to a unix printer port?

So a quick udev rule changing the name to "wifi0" and now it shows up.


The only thing left now is to figure out why my Cisco flash storage
graphs are disappearing :-S

Though I have Cisco sensors and CPU activated in SNMP those graphs
vanished too?? I managed to get them back by adding:

$config['mib_dir'] = $config['install_dir'] . "/mibs";

to the config.php file <- though not sure if it has any effect
however, though the re-appeared after that {coincidence or actual
parameter parsed?}


Kaya

On 11/24/2016 05:56 PM, Kaya Saman wrote:
Hi,


I'm trying to get one of my network interfaces to appear in Observium
but for some strange reason it is being marked as "ignored"?


In my config.php I haven't included any statements to ignore any
devices and the poll time for this particular machine is only a few
seconds considering that it's connection to the network is via wifi.


The output of #sudo -u www ./discovery.php -h <host> -f shows:


##### Module Start: ports #####

o Caching OIDs ifDescr ifAlias ifName ifType ifOperStatus
o Caching DB 2 ports
o Discovering ports ..X
+---------+
+-------------+---------+------------------+-------------+---------+

| ifIndex | ifDescr | ifName | ifAlias |
ifType | Oper Status | Ignored |
+---------+
+-------------+---------+------------------+-------------+---------+

| 1 | lo | lo | ... |
softwareLoopback | up | no |
| 2 | Realtek Semiconductor Co., ... | ens33 | ... |
ethernetCsmacd | down | no |
| 3 | wlp0s29f7u7 | wlp0s29f7u7 | ... |
ethernetCsmacd | up | yes |
+---------+
+-------------+---------+------------------+-------------+---------+



o Duration 0.2046s


Observium is seeing the interface but just ignoring it? In the UI I
don't see anywhere to view 'ignored' ports; I only see "alerts",
"down" and "deleted".


The port does however, show up under the Inventory section.


Does anyone have any idea on how to make this interface not be
'ignored'?


After 2 days of searching for an answer I can only conclude that
perhaps I need to make this change on the actual MySQL DB itself
though I do not know the location of the 'ignore' section of
ports/interfaces <- that and this is probably a really bad way of
doing things too....!


Many Thanks.


Kaya






observium mailing list
observium@observium.org
http://postman.memetic.org/cgi-bin/mailman/listinfo/observium