-
Incident report
-
Resolution: Fixed
-
Minor
-
2.4.6, 3.0.0alpha4
Run housekeeper in DebugLevel=4, notice 2 duplicated lines after housekeeper activity:
6384:20151026:170613.154 housekeeper [deleted 375 hist/trends, 0 items, 0 events, 0 sessions, 0 alarms, 0 audit items in 0.212998 sec, idle for 1 hour(s)] 6384:20151026:170613.154 housekeeper [deleted 375 hist/trends, 0 items, 0 events, 0 sessions, 0 alarms, 0 audit items in 0.212998 sec, idle for 1 hour(s)]
They may mislead as with DbugLevel=3 we see only one such line.
The problem is in a function:
void __zbx_zbx_setproctitle(const char *fmt, ...) { #if defined(HAVE_FUNCTION_SETPROCTITLE) || defined(PS_OVERWRITE_ARGV) || defined(PS_PSTAT_ARGV) char title[MAX_STRING_LEN]; va_list args; va_start(args, fmt); zbx_vsnprintf(title, sizeof(title), fmt, args); va_end(args); zabbix_log(LOG_LEVEL_DEBUG, "%s", title); #endif
which prints the same line as it gets in an input.
I'd suggest to add a prefix before value, for example "process title set: "
zabbix_log(LOG_LEVEL_DEBUG, "process title set: %s", title);