Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syslog - Transport test fails #14194

Open
ciroiriarte opened this issue Aug 10, 2022 · 1 comment
Open

Syslog - Transport test fails #14194

ciroiriarte opened this issue Aug 10, 2022 · 1 comment

Comments

@ciroiriarte
Copy link

The problem

Trying to test a syslog transport, the test fails with:

production.ERROR: Call to undefined function LibreNMS\Alert\Transport\device_by_id_cache() {"userId":1,"exception":"[object] (Error(code: 0): Call to undefined function LibreNMS\Alert\Transport\device_by_id_cache() at /opt/librenms/LibreNMS/Alert/Transport/Syslog.php:44)"}

Real notifications do work.

Output of ./validate.php

====================================
Component | Version
--------- | -------
LibreNMS  | 22.7.0-58-g83126161d
DB Schema | 2022_07_03_1947_add_app_data (244)
PHP       | 7.4.25
Python    | 3.6.15
Database  | MariaDB 10.6.7-MariaDB-log
RRDTool   | 1.7.0
SNMP      | 5.7.3
====================================

[OK]    Composer Version: 2.3.10
[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]
[OK]    Database schema correct
[OK]    MySQl and PHP time match
[WARN]  PHP version 8.1 is the minimum supported version as of September, 2022. We recommend you update PHP to a supported version (8.1 suggested) to continue to receive updates. If you do not update PHP, LibreNMS will continue to function but stop receiving bug fixes and updates.
[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: Mon, 08 Aug 2022 12:25:37 +0000
        [FIX]:
        Make sure your daily.sh cron is running and run ./daily.sh by hand to see if there are any errors.
[WARN]  Your local git contains modified files, this could prevent automatic updates.
        [FIX]:
        You can fix this with ./scripts/github-remove
        Modified Files:
         librenms.nonroot.cron
         syslog.php

What was the last working version of LibreNMS?

22.7.0-58-g83126161d

Anything in the logs that might be useful for us?

From librenms.log

production.ERROR: Call to undefined function LibreNMS\Alert\Transport\device_by_id_cache() {"userId":1,"exception":"[object] (Error(code: 0): Call to undefined function LibreNMS\\Alert\\Transport\\device_by_id_cache() at /opt/librenms/LibreNMS/Alert/Transport/Syslog.php:44)"}
@murrant
Copy link
Member

murrant commented Aug 12, 2022

FYI, the actual transport should still work fine. Will try to fix this sometime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants