lausser / check_logfiles

A plugin (monitoring-plugin, not nagios-plugin, see also http://is.gd/PP1330) which scans logfiles for patterns.
https://omd.consol.de/docs/plugins/check_logfiles/
GNU General Public License v2.0
46 stars 27 forks source link

Add abiltiy to search systemd journals by syslog identifiers. Debian … #80

Open hpreusse opened 10 months ago

hpreusse commented 10 months ago

See Debian Bug#1060859.

I scan mail logs for Deliverable Status Notifications for 'dsn=5.7" on my delivery server, so if some recipient starts blocking the server I can start investigating and switch to a different outbound server before users start to report that 'mail is not working'.

For systems where mail logs are in /var/log/mail.log this is simple, but where they are in the systemd journal a scan which looks only at, in this case, entries with a SYSLOG_IDENTIFIER of 'postfix/smtp' is more effective.

The attached patch allows an argument of --type=journald:identifier='postfix/smtp' to be specified.