Ad Widget

Collapse

{ITEM.NAME} in preprocessing not working.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zaicnupagadi
    Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2010
    • 73

    #1

    {ITEM.NAME} in preprocessing not working.

    Hey Guys,

    Glad to be back after a long time of not using ZABBIX ^^

    I perform preprocessing where I need to search for a keyword that is the same as the name of a particular item. Unfortunately, when I have something like this:

    (^"Disk 1".*)(?<= status(.*)(?= temperature) - it all works, but wit this:

    (^"{ITEM.NAME}".*)(?<= status(.*)(?= temperature) - it does not, and my item name is "Disk 1", not sure if it is important - it is a DEPENDENT ITEM.

    So in the main script I read values for all o of the disks, and later in other items I just pull information I need to each disk, getting status of the disks from particular line using regex.

    Anyone has any idea why?

    Cheers,
    J
    Last edited by zaicnupagadi; 26-11-2018, 23:35.
  • Semiadmin
    Senior Member
    • Oct 2014
    • 1625

    #2
    Hi, zaicnupagadi.
    Unfortunately, you didn't mention your Zabbix version. It's possible to use an LLD macro ({#FSNAME}, in this case) in preprocessing in 4.0. In 3.4 it's impossible.
    As for {ITEM.NAME} macro, it's not supported in preprocessing.

    Comment

    • zaicnupagadi
      Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Dec 2010
      • 73

      #3
      Hi Semiadmin,

      Well sheeet. I got 3.4, yesterday planned an upgrade for this/next week.

      Thank you for this!

      Cheers,
      J

      Comment

      Working...