Ad Widget

Collapse

How to get the Log file name that we are monitoring using Zabbix?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • veer
    Junior Member
    • Sep 2011
    • 2

    #1

    How to get the Log file name that we are monitoring using Zabbix?

    I am trying to get the log file's name that we are monitoring using zabbix.
    Is there a way to do this?
  • Colttt
    Senior Member
    Zabbix Certified Specialist
    • Mar 2009
    • 878

    #2
    sorry, but what do you mean?
    Debian-User

    Sorry for my bad english

    Comment

    • veer
      Junior Member
      • Sep 2011
      • 2

      #3
      I created one item in zabbix to monitor log file like this: logrt["/var/logs/error_[0-9]{1,3}.log","Critical"]

      When it fetches data, it gives me the exact row but I want to know from which file that data came as I am monitoring multiple error log files.

      Comment

      • rohit
        Junior Member
        • Apr 2011
        • 7

        #4
        print {ITEM.KEY}

        -Rohit Kalsarpe

        Comment

        • c_cascon
          Junior Member
          • Sep 2013
          • 1

          #5
          Hi everybody
          does anyone konws how to get the log file's name that we are monitoring with logrt?

          Rohit, could you provide some example about how to use print {ITEM.KEY} as you mentioned?

          thanks a lot!!

          Comment

          • xzithlan
            Junior Member
            • Sep 2014
            • 1

            #6
            any follow ups on this?

            Comment

            • markfree
              Senior Member
              • Apr 2019
              • 868

              #7
              Lately I need to monitor some file names or metadata, somewhat similar to the OP.

              I was hoping there was an item key that could read some file name pattern.
              Does anyone know if there is one?
              Last edited by markfree; 10-07-2022, 15:44.

              Comment

              Working...