Alerts having issue

Need help on alert notifications, It seems there is a problem on the alerting no notifications.

Checked librenms.log it’s showing this error.

LibreNMS\Alert\Transport::getClass(): Argument #1 ($type) must be of type string, null given, called in /opt/librenms/LibreNMS/Alert/RunAlerts.php on line 498 {“exception”:“[object] (TypeError(code: 0): LibreNMS\Alert\Transport::getClass(): Argument #1 ($type) must be of type string, null given, called in /opt/librenms/LibreNMS/Alert/RunAlerts.php on line 498 at /opt/librenms/LibreNMS/Alert/Transport.php:136)”}

./validate.php

Component Version
LibreNMS 23.5.0-13-g0ed68e33d (2023-06-11T22:37:55+08:00)
DB Schema 2023_04_27_164904_update_slas_opstatus_tinyint (252)
PHP 8.1.18
Python 3.8.10
Database MariaDB 10.3.38-MariaDB-0ubuntu0.20.04.1
RRDTool 1.7.2
SNMP 5.8
===========================================

[OK] Composer Version: 2.5.7
[OK] Dependencies up-to-date.
[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

Performed daily.sh
Strange that some of the alerts came in but there are still some that are not.

Also checked librenms.log

Error is still present.

LibreNMS\Alert\Transport::getClass(): Argument #1 ($type) must be of type string, null given, called in /opt/librenms/LibreNMS/Alert/RunAlerts.php on line 498 {“exception”:“[object] (TypeError(code: 0): LibreNMS\Alert\Transport::getClass(): Argument #1 ($type) must be of type string, null given, called in /opt/librenms/LibreNMS/Alert/RunAlerts.php on line 498 at /opt/librenms/LibreNMS/Alert/Transport.php:136)”}

An update on this seems like the error is on one of the transport groups where the group has null recipients, removed the transport group from the list the notifications are now coming in.

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