[OK] Composer Version: 2.5.1
[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 is enabled
[OK] Locks are functional
[OK] Python wrapper cron entry is not present
[OK] Redis is unavailable
[OK] rrd_dir is writable
[OK] rrdtool version ok
syslog service donât start if i use /etc/syslog-ng/conf-d/librenms.conf but if the same file is in /etc/syslog-ng with file name syslog-ng.conf service starts but I donât receive logs on the librenms.
When asking for help and support, please provide as much information as possible. This should include:
Steps to reproduce an issue.
The output of ./validate.php
If itâs an issue with the WebUI then please consider including a screenshot and the browser version you are using.
If you are having troubles with discovery/polling include the pastebin output of:
[email protected]:/etc/syslog-ng# systemctl status syslog-ng
ââ syslog-ng.service - System Logger Daemon
Loaded: loaded (/lib/systemd/system/syslog-ng.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2023-02-02 14:05:20 +03; 55min ago
Docs: man:syslog-ng(8)
Main PID: 2597243 (syslog-ng)
Tasks: 4 (limit: 19093)
Memory: 8.6M
CPU: 2.852s
CGroup: /system.slice/syslog-ng.service
ââââââŹ2597243 /usr/sbin/syslog-ng -F
Feb 02 14:05:20 zabbix1 systemd[1]: Starting System Logger DaemonâŚ
Feb 02 14:05:20 zabbix1 systemd[1]: Started System Logger Daemon. [email protected]:/etc/syslog-ng# ll
total 68
drwxr-xr-x 4 root root 4096 Feb 2 14:05 ./
drwxr-xr-x 118 root root 4096 Feb 2 13:33 âŚ/
-rw-râr-- 1 root root 0 Feb 2 10:31 â^^^^^^^^^^^^^^^â
-rw-râr-- 1 root root 0 Feb 2 10:31 â}â
drwxr-xr-x 2 root root 4096 Feb 2 14:03 conf.d/
-rw-râr-- 1 root root 5967 Feb 2 14:04 librenms.conf
drwxr-xr-x 2 root root 4096 Feb 20 2022 patterndb.d/
-rw-râr-- 1 root root 1354 Feb 20 2022 scl.conf
-rw-râr-- 1 root root 0 Feb 2 10:31 source
-rw-râr-- 1 root root 5967 Feb 2 14:05 syslog-ng.conf
-rw-râr-- 1 root root 5925 Oct 31 09:53 syslog-ng.conf.back
-rw-râr-- 1 root root 6978 Feb 2 10:17 syslog-ng.conf.old
-rw-râr-- 1 root root 5967 Feb 2 12:16 syslog.ok
-rw-râr-- 1 root root 5967 Feb 2 13:56 syslog.work [email protected]:/etc/syslog-ng# rm syslog-ng.conf [email protected]:/etc/syslog-ng# cd conf.d/ [email protected]:/etc/syslog-ng/conf.d# ll
total 40
drwxr-xr-x 2 root root 4096 Feb 2 14:03 ./
drwxr-xr-x 4 root root 4096 Feb 2 15:01 âŚ/
-rw-râr-- 1 root root 6371 Feb 2 12:17 lib.ok
-rw-râr-- 1 root root 6371 Feb 2 14:03 libren.lll
-rw-râr-- 1 root root 1896 Feb 2 11:51 librenms.cfg
-rw-râr-- 1 root root 5967 Feb 2 11:37 librenms.cfgt
-rw-râr-- 1 root root 416 Feb 2 11:11 librenms.cold [email protected]:/etc/syslog-ng/conf.d# cp libren.lll librenms.conf [email protected]:/etc/syslog-ng/conf.d# systemctl status syslog-ng
ââ syslog-ng.service - System Logger Daemon
Loaded: loaded (/lib/systemd/system/syslog-ng.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2023-02-02 14:05:20 +03; 56min ago
Docs: man:syslog-ng(8)
Main PID: 2597243 (syslog-ng)
Tasks: 3 (limit: 19093)
Memory: 8.6M
CPU: 2.899s
CGroup: /system.slice/syslog-ng.service
ââââââŹ2597243 /usr/sbin/syslog-ng -F
Feb 02 14:05:20 zabbix1 systemd[1]: Starting System Logger DaemonâŚ
Feb 02 14:05:20 zabbix1 systemd[1]: Started System Logger Daemon. [email protected]:/etc/syslog-ng/conf.d# systemctl restart syslog-ng
Job for syslog-ng.service failed because the control process exited with error code.
See âsystemctl status syslog-ng.serviceâ and âjournalctl -xeu syslog-ng.serviceâ for details.
root@zabbix1:/etc/syslog-ng/conf.d# journalctl -eu syslog-ng.service
Feb 02 14:04:37 zabbix1 systemd[1]: Failed to start System Logger Daemon.
Feb 02 14:05:20 zabbix1 systemd[1]: Starting System Logger DaemonâŚ
Feb 02 14:05:20 zabbix1 systemd[1]: Started System Logger Daemon.
Feb 02 15:02:24 zabbix1 systemd[1]: Stopping System Logger DaemonâŚ
Feb 02 15:02:24 zabbix1 systemd[1]: syslog-ng.service: Deactivated successfully.
Feb 02 15:02:24 zabbix1 systemd[1]: Stopped System Logger Daemon.
Feb 02 15:02:24 zabbix1 systemd[1]: syslog-ng.service: Consumed 2.918s CPU time.
Feb 02 15:02:24 zabbix1 systemd[1]: Starting System Logger DaemonâŚ
Feb 02 15:02:24 zabbix1 syslog-ng[2610761]: [2023-02-02T15:02:24.183145] Error opening configuration file; filename=â/etc/syslog-ng/sys>
Feb 02 15:02:24 zabbix1 systemd[1]: syslog-ng.service: Main process exited, code=exited, status=1/FAILURE
Feb 02 15:02:24 zabbix1 systemd[1]: syslog-ng.service: Failed with result âexit-codeâ.
Feb 02 15:02:24 zabbix1 systemd[1]: Failed to start System Logger Daemon.
Feb 02 15:02:24 zabbix1 systemd[1]: syslog-ng.service: Scheduled restart job, restart counter is at 1.
Feb 02 15:02:24 zabbix1 systemd[1]: Stopped System Logger Daemon.
Feb 02 15:02:24 zabbix1 systemd[1]: Starting System Logger DaemonâŚ
Feb 02 15:02:24 zabbix1 syslog-ng[2610763]: [2023-02-02T15:02:24.498841] Error opening configuration file; filename=â/etc/syslog-ng/sys>
Feb 02 15:02:24 zabbix1 systemd[1]: syslog-ng.service: Main process exited, code=exited, status=1/FAILURE
Feb 02 15:02:24 zabbix1 systemd[1]: syslog-ng.service: Failed with result âexit-codeâ.
Feb 02 15:02:24 zabbix1 systemd[1]: Failed to start System Logger Daemon.
Feb 02 15:02:24 zabbix1 systemd[1]: syslog-ng.service: Scheduled restart job, restart counter is at 2.
Feb 02 15:02:24 zabbix1 systemd[1]: Stopped System Logger Daemon.
Feb 02 15:02:24 zabbix1 systemd[1]: Starting System Logger DaemonâŚ
when syslog-ng.conf is used the service works as soon as i try to use librenms.conf it doesnât
Having a similar issue. syslog-ng is unable to start for me. Fresh install of LibreNMS, Ubuntu 22.04.1 I receive the following after adding the lines above:
/usr/sbin/syslog-ng -F
[2023-02-06T20:06:58.578741] WARNING: Configuration file format is too old, syslog-ng is running in compatibility mode. Please update it to use the syslog-ng 3.35 format at your time of convenience. To upgrade the configuration, please review the warnings about incompatible changes printed by syslog-ng, and once completed change the @version header at the top of the configuration file; config-version='3.27'
[2023-02-06T20:06:58.593464] Error resolving reference; content='source', name='s_sys', location='/etc/syslog-ng/conf.d/librenms.conf:12:9'