Hi Kevin. Yes you were spot on with the PHP memory limit issue. It was set to 128M (default - I use the CentOS VM download for this server), increased to 256M and all OK.
then waited a day for the daily.sh run to go through, but didn’t seem to go through as the daily.log shows:
Cleaning up DB Refreshing alert rules queries Refreshing OS cache Syslog cleared for entries over 30 days 1000 limit Syslog cleared for entries over 30 days 1000 limit Syslog cleared for entries over 30 days 1000 limit Syslog cleared for entries over 30 days 1000 limit Syslog cleared for entries over 30 days 1000 limit Syslog cleared for entries over 30 days 1000 limit Syslog cleared for entries over 30 days 1000 limit Syslog cleared for entries over 30 days 1000 limit Syslog cleared for entries over 30 days 1000 limit Syslog cleared for entries over 30 days 1000 limit Syslog cleared for entries over 30 days 1000 limit Syslog cleared for entries over 30 days 1000 limit Eventlog cleared for entries over 30 days Authlog cleared for entries over 30 days Performance poller times cleared for entries over 30 days Device performance times cleared for entries over 7 days Returned: 0 Fetching notifications [ Mon, 30 Oct 2017 00:15:16 +0000 ] http://www.librenms.org/notifications.rss (21) [ Mon, 30 Oct 2017 00:15:16 +0000 ] misc/notifications.rss (28) [ Mon, 30 Oct 2017 00:15:16 +0000 ] Updating DB Done Returned: 0 Caching PeeringDB data
Returned: 0
So for some reason, the “1” day setting in config.php isn’t seen? did I do something wrong here?
Hi Kevin. No, am happy to keep a number of days actually, as I’m interested now in learning how to add rules for syslog entries we’re interested in.
The initial problem was that the firewall logs being ingested were filling the disk too quickly. Have expanded the disk so this isn’t a problem now, and the PHP memory limit increase also fixed the Web UI timeout.
Now the only problem seems to be the “syslog_purge” setting not being read, which is why I asked if there’s anything I’ve done wrong.
Checking PHP version
Returned: 0
Updating to latest release
HEAD is now at e55c68d... docs: Added changelog for 1.33 (#7580)
Returned: 0
Updating SQL-Schema
Returned: 0
Updating submodules
Returned: 0
Cleaning up DB
Refreshing alert rules queries
Refreshing OS cache
Syslog cleared for entries over 1 days 1000 limit
Syslog cleared for entries over 1 days 1000 limit
Syslog cleared for entries over 1 days 1000 limit
Syslog cleared for entries over 1 days 1000 limit
Syslog cleared for entries over 1 days 1000 limit
So it’s worked manually.
Does this mean I should keep an eye out tomorrow on the daily.log to see if it runs, and if so, whether it shows “Syslog cleared for entries over 1 days 1000 limit” ?
I can see this CentOS VM should correctly have this running each day at 12:15am: