LibreNMS high CPU usage and manual snmp-scan.py

I’m having some issues with my LibreNMS installation. I’ve been running it for almost 2 years without many issues, but recently I’ve noticed that the CPU usage has been very high, close to 10GHz. I’m also having to manually run the snmp-scan.py script to add new devices.

My LibreNMS installation is running in a virtual machine with 8 cores and 16GB of RAM. It monitors 730 devices and the polling time is 260 seconds. I’m running the following versions:

  • LibreNMS: 23.9.1
  • DB Schema: 2023_09_01_084057_application_new_defaults (259)
  • PHP: 8.1.2-1ubuntu2.14
  • Python: 3.10.12
  • Database: MariaDB 10.6.12-MariaDB-0ubuntu0.22.04.1
  • RRDTool: 1.7.2
  • SNMP: 5.9.1

I’ve already tried the following troubleshooting steps:

  • Optimized as best as possible with the Performance optimization’s page.
  • I’ve checked the LibreNMS logs and there are no errors.
  • I’ve made sure that the LLDP agent is running on the devices that I’m trying to discover.

I’m not sure what else to try, so I’m hoping that someone in the community can help me troubleshoot this issue.

Here is my cron config file:

33 */6 * * * librenms /opt/librenms/cronic /opt/librenms/discovery-wrapper.py 1
*/5 * * * * librenms /opt/librenms/discovery.php -h new >> /dev/null 2>&1
*/5 * * * * librenms /opt/librenms/cronic /opt/librenms/poller-wrapper.py
8 * * * * * librenms /opt/librenms/alerts.php >> /dev/null 2>&1
*/5 * * * * librenms /opt/librenms/poll-billing.php >> /dev/null 2>&1
01 * * * * librenms /opt/librenms/billing-calculate.php >> /dev/null 2>&1
*/5 * * * * librenms /opt/librenms/check-services.php >> /dev/null 2>&1

          • librenms cd /opt/librenms/ && php artisan schedule:run >> /dev/null 2>&1
            #*/5 * * * * librenms /opt/librenms/html/plugins/Weathermap/map-poller.php >> /dev/null 2>&1
            0 1 * * * librenms /opt/librenms/snmp-scan.py 1

I’m hoping that someone in the community can help me troubleshoot this issue.

Thanks in advance for your help.

Additional information:

  • LibreNMS is integrated with Oxidized (same server) and Graylog (own server).
  • Everything show’s OK when running validate.php script

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