How can i stop CRON emails from service-wrapper.py?

My /etc/crontab file includes the line

*/5 * * * * librenms /opt/librenms/services-wrapper.py 1

I believe that this polls the services every 5 minutes. It also generates an email every 5 minutes to say that it has done so! I looking for guidance on how to stop these emails.

I’m been tweaking my email ISP settings to try and filter out these emails, but was hoping that there has some flag somewhere that would stop the emails being generated.

validate.php output:

===========================================

Component Version
LibreNMS 25.10.0-dev.55+bcac24dbc (2025-10-07T18:45:49+00:00)
DB Schema 2025_09_18_132019_add_basic_roles (355)
PHP 8.2.29
Python 3.11.2
Database MariaDB 10.11.14-MariaDB-0+deb12u2-log
RRDTool 1.7.2
SNMP 5.9.3
===========================================

[OK] Composer Version: 2.8.12
[OK] Dependencies up-to-date.
[WARN] You have the old alerting system enabled - this is to be deprecated on the 1st of June 2015: Redirecting to Google Groups
[OK] Database Connected
[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] rrdtool version ok
[OK] Connected to rrdcached

Other info

I’m using msmtp as a simple sendmail-like tool to forward all emails to my ISP email server. If there isn’t a flag to stop generating the emails, then I’m considering writing a wrapper to try and filter out the CRON messages at that stage.

I’m a hobbyist with a growing collection of home-automations bits which i want to monitor. I’m fairly new to LibreNMS, previously have tried Icinga2 and Zabbix.

Thanks

Have you tried to add the line:

MAILTO=""

to the crontab yet?

Whoops! Solved - thanks.

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