Package: snmptt Version: 1.4-1+deb9u1 Severity: normal Dear Maintainer,
please see subject. As a workaround i restored the old version : diff -e my_snmptt.1.4-1.deb9u1 snmptt 3195c print "PRE tempvar0 $tempvar[0] \n "; #$tempvar[0] =~ s/[^a-zA-Z0-9.\-_]//g; # Remove most non alphanumeric characters #From snmptt Vers 1.4-1 work $tempvar[0] =~ s(`)(')g; #` Replace any back ticks with regular single quote print "POST tempvar0 $tempvar[0] \n"; In your Original Prog the String ": []>" is replaced to NOTHING See : $tempvar[0] =~ s/[^a-zA-Z0-9.\-_]//g; #Error PRE tempvar0 UDP: [172.16.18.53]:58435->[172.16.18.252]:162 POST tempvar0 UDP172.16.18.5358435-172.16.18.252162 So the Code does not work # With DNS resolution disabled in snmptrapd, some systems pass the hostname as: # UDP: [x.x.x.x]:161->[y.y.y.y] # If this is detected, use x.x.x.x as the hostname. if ($tempvar[0] =~ /\[(\d+\.\d+\.\d+\.\d+)\].*?->\[(\d+\.\d+\.\d+\.\d+)\]/) { $tempvar[0] = $1; } ###################################################################### And there is an further error in your Prog : LOGROTATE without daemon_gid and debug = 1 root@NAGIOS-FW:/etc/logrotate.d# ps ax|grep snmptt 6193 ? Ss 0:00 /usr/bin/perl /usr/sbin/snmptt --daemon 6194 ? Ss 0:02 /usr/bin/perl /usr/sbin/snmptt --daemon 6195 ? Ss 0:00 postgres: 9.6/main: snmpttuser snmptt ::1(38748) idle 9220 pts/0 R+ 0:00 grep snmptt root@NAGIOS-FW:/etc/logrotate.d# logrotate -f snmptt root@NAGIOS-FW:/etc/logrotate.d# ps ax|grep snmptt 6193 ? Ss 0:00 /usr/bin/perl /usr/sbin/snmptt --daemon 6194 ? Zs 0:02 [snmptt] <defunct> 9399 pts/0 S+ 0:00 grep snmptt root@NAGIOS-FW:/etc/logrotate.d# ps ax|grep snmptt 9460 pts/0 S+ 0:00 grep snmptt No Running snmptt anymore... The gid after "systemctl start snmptt" and logrotate -f snmptt differ. "/etc/init.d/snmptt reload" from logrotate Kills also the deamon > set daemon_gid to 0, 109 or Debian-snmp = is OK File /etc/snmp/snmptt.ini # If daemon_uid is not defined, daemon_gid is ignored. is not correct. it is not ignored ! gid from snmptt.debug is root and logrotate crashes without self restart or is the Problem close debugfile and then write (print)? ######################################################################### -- System Information: Debian Release: 9.13 APT prefers oldstable-updates APT policy: (500, 'oldstable-updates'), (500, 'oldstable') Architecture: amd64 (x86_64) Kernel: Linux 4.19.0-0.bpo.4-amd64 (SMP w/8 CPU cores) Kernel: Linux 4.9.0-14-amd64 #1 SMP Debian 4.9.240-1 (2020-10-29) x86_64 GNU/Linux Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8), LANGUAGE=de_DE.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages snmptt depends on: ii adduser 3.115 pn libconfig-inifiles-perl <none> ii libsnmp-perl 5.7.3+dfsg-1.7+deb9u3 pn snmpd <none> Versions of packages snmptt recommends: ii libperl5.24 [libsys-syslog-perl] 5.24.1-3+deb9u7 snmptt suggests no packages. Mit freundlichen Grüßen Hans-Peter Rüger <mailto:hans-peter.rue...@bvg.de> BVG Phone : +49 030 256 30021 Fax : +49 030 256 30619 Siegfriedstrasse 36-45 D 10365 Berlin BF-EA24 IPLZ 16320 ________________________________ [BVG Herz Logo]<https://www.bvg.de/> Berliner Verkehrsbetriebe (BVG) Anstalt des öffentlichen Rechts Holzmarktstraße 15-17, 10179 Berlin Telefon: +49 30 256-0 Telefax: +49 30 256-49256 http://www.BVG.de Vorstand: Eva Kreienkamp (Vorsitzende), Dr. Rolf Erfurt und Dirk Schulte Vorsitzende des Aufsichtsrates: Senatorin Ramona Pop Sitz: Berlin AG Charlottenburg, HRA 31152 Wir möchten alle Personen mit der von ihnen bevorzugten Anrede ansprechen. Teilen Sie mir gern mit, wie ich Sie in folgenden Kontakten anschreiben darf. Ansonsten wird im Sinne der geschlechtlichen Vielfalt auch in weiterer Kommunikation eine geschlechtsneutrale Anrede verwendet.