Ad Widget

Collapse

No timestamp parsing with external scripts?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jbcheck
    Junior Member
    • May 2022
    • 15

    #16
    Hallo again!
    To make sure it's not my "old" Raspberry Pi configuration, I tested the Zabbix VMware appliance (6.4) today - nope, the date is not processed. Mysterious!

    Could you ​please show me your configuration for "external scripts"? Hoping that I might have a layer 8 problem built in after all.

    Thank you very much and Ciao for now
    jb

    Comment

    • Hamardaban
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • May 2019
      • 2713

      #17
      The test system is currently unavailable. I deleted all the examples after experimenting.
      There was nothing special about them - everything is as written in the documentation and discussed in this topic.
      Try updating the zabbix server and agent - sometimes it helps.

      Comment

      • aidcmr
        Junior Member
        • Apr 2023
        • 1

        #18
        Hi,

        I am trying something similar where I need to get out a local timestamp in an unsupported format (e.g. with month names like Apr...) and it appears that preprocessing to generate the timestamp is ignored?

        Eg in the screenshot below..using the log file format yyyypMMpddphhpmmpss
        • The first log line originally started at the [08/Apr/2023.... and via a javascript preprocessing I reformatted a date and returned this newly-formatted date prepended onto the log line
          • 2023-04-08T09:48:45 +0100 [08/Apr/2023:09:48:45 +0100]...
          • ...but this new timestamp gets ignored?
        • The second log line timestamp is a manually-created unpreprocessed log line with the same date at the start of the line and gets the local timestamp fine.​
        So the exact same text gets treated differently if it was in the original line as opposed added via preprocessing?

        Is this expected behaviour or am I doing something wrong? Is preprocessing really "postprocessing" after the timestamps are determined?

        Many thanks!

        Click image for larger version

Name:	Screen Shot 2023-04-26 at 10.22.07.png
Views:	114
Size:	71.7 KB
ID:	463602

        Comment

        Working...