View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000325 | My infrastructure | General | public | 2025-09-20 11:48 | 2025-10-12 18:49 |
Reporter | dvl | Assigned To | dvl | ||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | assigned | Resolution | open | ||
Summary | 0000325: Other files for logcheck | ||||
Description | We have these files:[11:46 x8dtu-ingress01 dvl /var/log/freshports] % ls -l *.log -rw-r--r-- 1 freshports logcheck 15614 2025.09.20 03:01 abi.log -rw-r--r-- 1 root freshports 0 2021.09.29 22:00 check_repos_for_new_stuff.py.log -rw-r----- 1 root logcheck 1620 2025.09.20 10:00 freshports-daemon.log -rw-r----- 1 freshports logcheck 967125 2025.09.20 11:45 freshports.log -rw-r----- 1 ingress logcheck 132526 2025.09.20 11:45 git.log -rw-r----- 1 root logcheck 180528 2025.09.20 11:45 ingress-daemon.log -rw-rw---- 1 freshports freshports 0 2025.09.20 00:00 jobs_waiting.log -rw-r--r-- 1 freshports logcheck 0 2025.09.20 00:00 process_updating.log -rw-r----- 1 root freshports 0 2025.09.20 00:00 report-maintainer.daily.log -rw-r----- 1 root freshports 0 2025.09.20 00:00 report-new-ports.daily.log -rw-r----- 1 root freshports 0 2025.09.09 00:00 report-new-ports.fortnightly.log -rw-r----- 1 root freshports 0 2025.09.01 00:00 report-new-ports.monthly.log -rw-r----- 1 root freshports 0 2025.09.14 00:00 report-new-ports.weekly.log -rw-r----- 1 root freshports 0 2025.09.20 00:00 report-notification.daily.log -rw-r----- 1 root freshports 0 2025.09.09 00:00 report-notification.fortnightly.log -rw-r----- 1 root freshports 0 2025.09.01 00:00 report-notification.monthly.log -rw-r----- 1 root freshports 0 2025.09.14 00:00 report-notification.weekly.log -rw-r----- 1 root freshports 0 2025.09.20 00:00 report-security.daily.log -rw-r----- 1 freshports logcheck 0 2025.09.20 00:00 vuxml.log logcheck looks only at freshports.log Should it review more? This will require more files added to ansible: roles/logcheck/files/ | ||||
Steps To Reproduce | Case in point:[11:46 x8dtu-ingress01 dvl /var/log/freshports] % sudo tail git.log 2025.09.20 11:42:02 git-delta.sh Fatal error on git fetch: 0 2025.09.20 11:42:02 git-delta.sh Ending 2025.09.20 11:45:03 git-delta.sh has started. Will check these repos: 'doc ports src' 2025.09.20 11:45:03 git-delta.sh XML dir is /var/db/ingress/message-queues/incoming 2025.09.20 11:45:03 git-delta.sh Now processing repo: doc --------------- 2025.09.20 11:45:03 git-delta.sh REPODIR='/var/db/ingress/repos/doc' exists 2025.09.20 11:45:03 git-delta.sh Repodir is /var/db/ingress/repos/doc 2025.09.20 11:45:03 git-delta.sh Running: /usr/local/bin/git fetch: 2025.09.20 11:45:03 git-delta.sh Fatal error on git fetch: 0 2025.09.20 11:45:03 git-delta.sh Ending [11:47 x8dtu-ingress01 dvl /var/log/freshports] % | ||||
Additional Information | logcheck has been silent on that. And rightly so:[11:45 x8dtu-ingress01 dvl /usr/local/libexec/freshports] % sudo cat /usr/local/etc/logcheck/logcheck.logfiles.d/local.logfiles # # These are additional files, not covered by the default install, # which will be monitored by logcheck. # This file is maintained by ansible. # All files must be readable by logcheck. # /var/log/maillog /var/log/freshports/freshports.log /var/log/daily.log /var/log/everythreeminutes.log /var/log/hourly.log | ||||
Tags | No tags attached. | ||||
|
All these are now monitored:- /var/log/freshports/abi.log - /var/log/freshports/check_repos_for_new_stuff.py.log - /var/log/freshports/freshports-daemon.log - /var/log/freshports/freshports.log - /var/log/freshports/git.log - /var/log/freshports/ingress-daemon.log - /var/log/freshports/jobs_waiting.log |
|
I removed var/log/freshports/jobs_waiting.log - too much variation in that file. |
|
TIme to implement this on other ingress hosts? |
|
This was expanded to dev-ingress01 with this file change:[11:46 ansible root /usr/local/etc/ansible] # svn di host_vars/{dvl-ingress01.int.unixathome.org,dev-ingress01.int.unixathome.org} Index: host_vars/dev-ingress01.int.unixathome.org =================================================================== --- host_vars/dev-ingress01.int.unixathome.org (revision 2940) +++ host_vars/dev-ingress01.int.unixathome.org (working copy) @@ -10,7 +10,12 @@ - standard logcheck_extra_logfiles: + - /var/log/freshports/abi.log + - /var/log/freshports/check_repos_for_new_stuff.py.log + - /var/log/freshports/freshports-daemon.log - /var/log/freshports/freshports.log + - /var/log/freshports/git.log + - /var/log/freshports/ingress-daemon.log - /var/log/daily.log - /var/log/everythreeminutes.log - /var/log/hourly.log [11:47 ansible root /usr/local/etc/ansible] # Followed by this command: [11:45 ansible root /usr/local/etc/ansible] # ansible-playbook logcheck.yml --limit=dev-ingress01.int.unixathome.org |
|
That wasn't enough. The logcheck set also needs to be specified so that logcheck knows to ignore certain things. I made this change: [12:06 ansible root /usr/local/etc/ansible] # svn di host_vars/{dvl-ingress01.int.unixathome.org,dev-ingress01.int.unixathome.org} Index: host_vars/dev-ingress01.int.unixathome.org =================================================================== --- host_vars/dev-ingress01.int.unixathome.org (revision 2940) +++ host_vars/dev-ingress01.int.unixathome.org (working copy) @@ -6,11 +6,17 @@ logcheck_sets: - FreshPorts-Scripts + - freshports-ingress - anvil - standard And ran this command: [12:06 ansible root /usr/local/etc/ansible] # ansible-playbook logcheck.yml --tags=local_files,sets,security,local.logfiles --limit=dev-ingress01.int.unixathome.org |
|
This has been extended to test.freshports[.]org. |
|
Extended to : * aws-1.freshports-ingress01 * x8dtu-freshports-ingress01 * r720-02-freshports-ingress01 * stage-ingress01.freshports.org That's all folks! |
Date Modified | Username | Field | Change |
---|---|---|---|
2025-09-20 11:48 | dvl | New Issue | |
2025-09-20 11:48 | dvl | Status | new => assigned |
2025-09-20 11:48 | dvl | Assigned To | => dvl |
2025-09-21 13:10 | dvl | Note Added: 0000423 | |
2025-09-24 16:20 | dvl | Note Added: 0000424 | |
2025-09-28 13:26 | dvl | Note Added: 0000431 | |
2025-10-02 11:48 | dvl | Note Added: 0000437 | |
2025-10-02 12:08 | dvl | Note Added: 0000438 | |
2025-10-10 12:04 | dvl | Note Added: 0000444 | |
2025-10-12 18:49 | dvl | Note Added: 0000445 |