Ad Widget

Collapse

Log monitor time format?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • alj
    Senior Member
    • Aug 2006
    • 188

    #1

    Log monitor time format?

    What is the format of "Log time format" of log monitor? Is it "date" +format kind of format or?
  • alj
    Senior Member
    • Aug 2006
    • 188

    #2
    BUMP - still need help with this :-( The timestamp from the log i'm using is not being recognised by zabbix, i need some info how to use log monitor time format field.

    Comment

    • Antras
      Junior Member
      • Oct 2007
      • 12

      #3
      Originally posted by alj
      What is the format of "Log time format" of log monitor? Is it "date" +format kind of format or?
      Did you found answer for your question? I've the same question

      Comment

      • alj
        Senior Member
        • Aug 2006
        • 188

        #4
        Originally posted by Antras
        Did you found answer for your question? I've the same question
        Nope ________

        Comment

        • Niels
          Senior Member
          • May 2007
          • 239

          #5
          I think the relevant code is the function calc_timestamp in zabbix_server/functions.c
          Code:
          switch ((char) format[i]) {
          	case 'h':
          		hh=10*hh+num;
          		hhc++;
          		break;
          	case 'm':
          		mm=10*mm+num;
          		mmc++;
          		break;
          	case 's':
          		ss=10*ss+num;
          		ssc++;
          		break;
          	case 'y':
          		yyyy=10*yyyy+num;
          		yyyyc++;
          		break;
          	case 'd':
          		dd=10*dd+num;
          		ddc++;
          		break;
          	case 'M':
          		MM=10*MM+num;
          		MMc++;
          		break;
          }
          In other words: the format is a string of h, m, s, y, d and M.

          Comment

          Working...