[Bug 284185] net-mgmt/librenms: Template support in newsyslog config file causes rotation issues

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 20 Jan 2025 07:17:36 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=284185

            Bug ID: 284185
           Summary: net-mgmt/librenms: Template support in newsyslog
                    config file causes rotation issues
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: dvl@FreeBSD.org
          Reporter: moiseev@mezonplus.ru
          Assignee: dvl@FreeBSD.org
             Flags: maintainer-feedback?(dvl@FreeBSD.org)

The installed librenms.conf file at /usr/local/etc/newsyslog.conf.d/ uses a
wildcard pattern for log file rotation:  

/var/log/librenms/*.log        www:www          644  14    *    $D0   -    
/var/run/librenms/librenms.pid


However, newsyslog on FreeBSD does not support wildcard patterns for log files.
This causes log rotation to fail with the following message when running
newsyslog -nvv:

/var/log/librenms/*.log <7>: does not exist, skipped.


While the lack of support for wildcard patterns is not explicitly stated in the
newsyslog.conf(5) manual, the observed behavior and existing documentation
indicate that explicit log file paths must be used.

Environment:
- FreeBSD 14.2-RELEASE
- net-mgmt/librenms-25.1.0,1

-- 
You are receiving this mail because:
You are the assignee for the bug.