[ZBX-21614] Only 6 digits are reserved for PID field in Zabbix log files Created: 2022 Sep 08  Updated: 2022 Oct 05

Status: Postponed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent (G), Server (S)
Affects Version/s: 6.0.7, 6.2.2
Fix Version/s: None

Type: Problem report Priority: Trivial
Reporter: Kaspars Mednis Assignee: Artjoms Rimdjonoks
Resolution: Unresolved Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Steps to reproduce:

  1. Start Zabbix server multiple times on different servers - the PID number can change up to 4194304 (2^22) for 64 bit systems

This number is defined in /proc/sys/kernel/pid_max

Result:
if PID number is up to 6 digits, 6 positions are reserved in the log file:

  1978:20220908:070025.835 Starting Zabbix Server. Zabbix 6.2.

 
if PID number has 7 digits, it is written in the log file as it is:

3336236:20220907:161324.554 sending configuration data to proxy

This breaks functionality of Zabbix own log file monitoring, because fixed number of placeholders are expected in the log time format field.

Example:

pppppp:yyyyMMdd:hhmmss

Expected:

Zabbix log file format is consistent and is not affected by PID number size
 



 Comments   
Comment by Kaspars Mednis [ 2022 Sep 08 ]

Confirmed

Comment by Gustavo Guido [ 2022 Oct 03 ]

The time format should by a regexp instead a fixed string

Generated at Mon May 12 06:49:00 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.