Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-10001

misleading duplicated log lines for housekeeper

    Details

      Description

      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);
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              zalex_ua Oleksiy Zagorskyi
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: