This is probably because netsnmp had corrupted its cache, as it often does.
Changing the variable probably changed the exact path, which would have kicked the cache to rebuild.
Some day netsnmp will fix this bug, but until then, when this happens you need to track down the cache files and remove them. (They used to be in the mibdir, but later versions put them I. /var somewhere because screw users, right?)
Adam.
Adam.
Sent from BlueMail
On 26 Nov 2016, 23:35, at 23:35, Kaya Saman kayasaman@gmail.com 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