Package: graphdefang
Version: 3.3-1
Severity: important

Dear Maintainer,

Looked back at my mail server configurations and "dashboard" stuff and found out
that graphdefang has not been working for awhile now.   Running graphdefang.pl
manually results in these error messages:

Use of uninitialized value $host in hash element at 
/usr/share/graphdefang/graphdefanglib.pl line 271.
Use of uninitialized value $host in hash element at 
/usr/share/graphdefang/graphdefanglib.pl line 282.
Use of uninitialized value $unixtime in numeric lt (<) at 
/usr/share/graphdefang/graphdefanglib.pl line 283.
Use of uninitialized value $program in hash element at 
/usr/share/graphdefang/graphdefanglib.pl line 295.

Looking at graphdefanglib.pl those lines have to do with perl regex matching 
each
individual syslog line and it's specifically having an issue with the timestamp.

Looking at my mail.log, it appears that the timestamps have changed to be more
complex and the regex is now unsuited.

2023-10-24T15:04:16.649054-05:00 servername dovecot: text

2023-10-24T15:04:20.350047-05:00 servername dovecot: text

2023-10-24T15:07:23.122066-05:00 servername postfix/smtpd[2863219]: text

I was going to play with the 
                m/^(\S+\s+\d+\s+\d+:\d+:\d+)\s          # datestring -- 1
regex within graphdefanglib.pl much as I have in the past with graphdefang
and mimedefang (and submitted patches for) but looking further down some
other stuff does things with it so I wasn't sure how deeply I wanted to
delve.

Thanks for your attention!


-- System Information:
Debian Release: trixie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages graphdefang depends on:
ii  libfile-readbackwards-perl  1.06-2
ii  libgd-graph-perl            1.56~ds-1
ii  libgd-text-perl             0.86-10
ii  libmldbm-perl               2.05-4
ii  libtimedate-perl            2.3300-2
ii  perl [libstorable-perl]     5.36.0-9

Versions of packages graphdefang recommends:
ii  php           2:8.2+93
ii  php8.2 [php]  8.2.10-2

Versions of packages graphdefang suggests:
ii  mimedefang  3.3-1

-- Configuration Files:
/etc/graphdefang/graphdefang-config changed [not included]

-- no debconf information

Reply via email to