Overview and ports HTTP ERROR 500

Hey,

I added a Juniper router that I use as a PPPoE server, I forgot to adjust the Interface Poller to ignore pppoe and LibreNMS made the discoveries of many interfaces, with that I cannot access the Overview and Ports tab, even deactivating SNMP and using the script purge-port.php, I also can’t remove it to add it again.



$ ./lnms device:remove --help
Description:
  Remove a device

Usage:
  device:remove <device spec>

Arguments:
  device spec           Hostname, IP, or device id to remove

Options:
  -h, --help            Display help for the given command. When no command is given display help for the list command
  -q, --quiet           Do not output any message
  -V, --version         Display this application version
      --ansi|--no-ansi  Force (or disable --no-ansi) ANSI output
  -n, --no-interaction  Do not ask any interactive question
      --env[=ENV]       The environment the command should run under
  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Hi,

@pjchilds, I tested the command and it’s not working either, it’s been running for an hour and to no avail.

It will take a long time if you have thousands of ports to remove.

Check in your db how many ports … then run the command and you can see the commands happening etc…

MariaDB [librenms]> select count(*) from ports;
+----------+
| count(*) |
+----------+
|     3273 |
+----------+
1 row in set (0.003 sec)
MariaDB [librenms]> show processlist;

I purged over 100,000 ports once and it took most of the afternoon … just let it go …

MariaDB [librenms]> select count(*) from ports;
+----------+
| count(*) |
+----------+
|   372437 |
+----------+
1 row in set (0.192 sec)

MariaDB [librenms]>

I understood! Yes, it has many ports, I’ll leave the command running.

Hi,

I noticed that LIbreNMS is still discovering pppoe. How do I ignore?

Now I put pp0 in Bad Interfaces, is this setting correct?

Hi,
I managed to solve it, I ignored the interfaces pp0.

lnms config:set bad_if_regexp.+ '/^pp0.*/'

Thanks!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.