Service checks does not work anymore

I have two installations of librenms and both have stopped to alert on “services” as of yesterday or the day before. The “device down” is still working.

The services are mostly ordinary nagios_plugins and have worked before. To reproduce I stop some services at the remote machines but I get no alerts in gui nor any mail alerts via mail transports.

The various “services” stays green at the host/services page. Almost as the checks does not run every 5 min as they suppose to do.

If I run the ./check_smtp (as a example) from a terminal I get the failed state of the remote service.

I did not find any relevant information in the log files.

Anyone else? Were or how do I trouble-shoot what is going on?

$ ./validate.php

Component Version
LibreNMS 24.10.1-24-g98428083a (2024-11-12T23:29:27+01:00)
DB Schema 2024_11_07_110342_custommap_edge_add_text_align (305)
PHP 8.2.13
Python 3.9.18
Database MariaDB 10.5.22-MariaDB
RRDTool 1.7.2
SNMP 5.9.1
===========================================

[OK] Composer Version: 2.8.2
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database connection successful
[OK] Database Schema is current
[OK] SQL Server meets minimum requirements
[OK] lower_case_table_names is enabled
[OK] MySQL engine is optimal
[OK] Database and column collations are correct
[OK] Database schema correct
[OK] MySQL and PHP time match
[OK] Active pollers found
[OK] Dispatcher Service not detected
[OK] Locks are functional
[OK] Python poller wrapper is polling
[OK] Redis is unavailable
[OK] rrd_dir is writable
[OK] rrdtool version ok
[WARN] Your install is over 24 hours out of date, last update: Tue, 12 Nov 2024 22:29:27 +0000

Same thing here. Just started as of Nov. 13th. Could it be the last update?

Ok found the issue.

The file check-services.php was missing the line:-

use LibreNMS\Config;

Service checks are working now.

Sorry about that folks, fixed in master so if you re-run daily.sh it should start working for you.

1 Like

I can confirm that the checks are working again after a re-run of “daily.sh”.
Thank you for a quick fix!

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