I have 2 librenms systems setup pretty much identically. Working system, syslogs are being pulled into the database and viewable in LibreNMS. Non-working system, rsyslog is receiving the syslogs (they are saved both to a local file and LibreNMS per-configuration), but nothing showing up in LibreNMS. I have a remote probe that’s doing remote polling and syslog collection, and the main server with the database and everything on it. I use rsyslog to forward the syslogs from the probe to the main server and then followed the instructions to setup the 30-librenms.conf file in /etc/rsyslog.d/. One system is working, one is not. I can’t find any differences between them except that one is monitoring pretty much all private IP’d devices (RFC1918), and the other is monitoring public IP’d devices. Devices are all MikroTik and Ubiquiti in both systems, though slightly different models (not sure if this would make a difference, can’t imagine it would)
On the non-working system, I did notice at first that I was using the %hostname% variable in my conf file, which since these IP’s have a reverse lookup zone setup they were resolving to names that I didn’t want. Most of my devices are added via IP since I don’t have DNS setup for most of them. So I put this statement in to disable DNS lookups in rsyslog global(net.enableDNS="off")
. Once I did that, the folders created had the IP’s instead of the reverse DNS name, win? Nope.
On both the working and non-working systems I get these errors in rsyslog, and even with debugging on in rsyslog I don’t see any obvious errors around these terminate/resume messages.
rsyslogd[2277531]: omprog: program '/opt/librenms/syslog.php' (pid 2277552) terminated; will be restarted [v8.2001.0 try https://www.rsyslog.com/e/2119 ]
rsyslogd[2277531]: action 'action-3-omprog' suspended (module 'omprog'), retry 0. There should be messages before this one giving the reason for suspension. [v8.2001.0 try https://www.rsyslog.com/e/2007 ]
rsyslogd[2277531]: action 'action-3-omprog' resumed (module 'omprog') [v8.2001.0 try https://www.rsyslog.com/e/2359 ]
rsyslogd[2277531]: child process (pid 2277574) exited with status 255 [v8.2001.0]
rsyslogd[2277531]: omprog: program '/opt/librenms/syslog.php' (pid 2277574) terminated; will be restarted [v8.2001.0 try https://www.rsyslog.com/e/2119 ]
rsyslogd[2277531]: action 'action-3-omprog' suspended (module 'omprog'), retry 0. There should be messages before this one giving the reason for suspension. [v8.2001.0 try https://www.rsyslog.com/e/2007 ]
rsyslogd[2277531]: action 'action-3-omprog' resumed (module 'omprog') [v8.2001.0 try https://www.rsyslog.com/e/2359 ]
rsyslogd[2277531]: child process (pid 2277575) exited with status 255 [v8.2001.0]
rsyslogd[2277531]: omprog: program '/opt/librenms/syslog.php' (pid 2277575) terminated; will be restarted [v8.2001.0 try https://www.rsyslog.com/e/2119 ]
rsyslogd[2277531]: action 'action-3-omprog' suspended (module 'omprog'), retry 0. There should be messages before this one giving the reason for suspension. [v8.2001.0 try https://www.rsyslog.com/e/2007 ]
Does anyone have any ideas on why this might not be working? It’s still not 100% clear to me how LibreNMS matches up logs to devices whether via IP or sysname or whatever, but I’m not seeing any logs at all, even when looking under Overview>Syslog. l’ve even tried setting the date way back in case something was goofed up there, but unless it’s coming in as pre-1900 that’s not it either. I’m kind of lost and unsure where to look further.
Thanks in advance for any help anyone might be able to offer.
And just to appease the requirements here’s my validate scripts
Non-working server:
====================================
Component | Version
--------- | -------
LibreNMS | 21.12.1
DB Schema | 2021_11_29_165436_improve_ports_search_index (229)
PHP | 7.4.3
Python | 3.8.10
MySQL | 10.3.32-MariaDB-0ubuntu0.20.04.1-log
RRDTool | 1.7.2
SNMP | 5.8
====================================
[OK] Composer Version: 2.2.4
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[INFO] Detected Python Wrapper
[OK] Connection to memcached is ok
Non-working probe:
====================================
Component | Version
--------- | -------
LibreNMS | 21.12.1
DB Schema | 2021_11_29_165436_improve_ports_search_index (229)
PHP | 7.4.3
Python | 3.8.10
MySQL | 10.3.32-MariaDB-0ubuntu0.20.04.1-log
RRDTool | 1.7.2
SNMP | 5.8
====================================
[OK] Composer Version: 2.2.4
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[INFO] Detected Python Wrapper
[OK] Connection to memcached is ok
Working server:
====================================
Component | Version
--------- | -------
LibreNMS | 21.12.1
DB Schema | 2021_11_29_165436_improve_ports_search_index (229)
PHP | 7.4.3
Python | 3.8.10
MySQL | 10.3.32-MariaDB-0ubuntu0.20.04.1-log
RRDTool | 1.7.2
SNMP | 5.8
====================================
[OK] Composer Version: 2.2.4
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[INFO] Detected Python Wrapper
[OK] Connection to memcached is ok
Working Probe:
====================================
Component | Version
--------- | -------
LibreNMS | 21.12.1
DB Schema | 2021_11_29_165436_improve_ports_search_index (229)
PHP | 7.4.3
Python | 3.8.10
MySQL | 10.3.32-MariaDB-0ubuntu0.20.04.1-log
RRDTool | 1.7.2
SNMP | 5.8
====================================
[OK] Composer Version: 2.2.4
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[INFO] Detected Python Wrapper
[OK] Connection to memcached is ok