Ad Widget

Collapse

Log File Displayed to Web Front End

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mla5104
    Junior Member
    • Apr 2012
    • 4

    #1

    Log File Displayed to Web Front End

    Hello,

    I'm trying to figure out if it is possible to have the text from a log file displayed on the web front end. Does the user parameter "log['file.log']" do this, or does that only let me search for a string in the file?

    If this is not possible what information can Zabbix display regarding a log file.

    Any help or feedback is appreciated!

    -Mike
  • eskytthe
    Senior Member
    Zabbix Certified Specialist
    • May 2011
    • 363

    #2
    From GUI:
    MOnitoring - Latest data - select you host, find log item and click on "History"
    Or make a screen with Resource "Plain text"
    (Btw: Please do not dobble post your requests for help next time)
    br
    Erik

    Comment

    • mla5104
      Junior Member
      • Apr 2012
      • 4

      #3
      log item

      Thank you Erik,

      How do I set up a log item? Do I do it in the zabbix_agentd.conf, in the gui or both?

      Also do I need to enter a "pattern to match" since I'm not trying to match a pattern, I want to see all text from the file. Would it be log[/path/file.log]

      -Mike

      Comment

      • eskytthe
        Senior Member
        Zabbix Certified Specialist
        • May 2011
        • 363

        #4
        Item config:
        http://www.zabbix.com/documentation/.../configuration
        (sec. 2.3.2) - type have to be "zabbix agent (active)", and type of information "log"
        You do not need to enter a "pattern to match".

        If you are new to zabbix:

        Zabbix - into (the book! buy it):
        http://www.packtpub.com/sites/defaul...pleChapter.pdf
        Starter:
        Last edited by eskytthe; 04-04-2012, 09:10. Reason: item type

        Comment

        • mla5104
          Junior Member
          • Apr 2012
          • 4

          #5
          Not working

          This shows the way the log file item is configured:


          This shows that there is no output (bottom left):


          Any idea what is going wrong??

          Thanks!

          Comment

          Working...