Ad Widget

Collapse

Log file monitoring and Not supported status in Zabbix 1.8.5

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MartinJanda
    Junior Member
    • Oct 2009
    • 27

    #1

    Log file monitoring and Not supported status in Zabbix 1.8.5

    Hi,
    I have a problem using the log monitoring function. I followed the instructions in documentation.

    Zabbix after adding a new item shows Not supported in status and ZBX_NOTSUPPORTED in error column.

    Server and agent running on the same Linux server - Debian Lenny, 64b, Zabbix 1.8.5. The other items are ok. The file is set for read for all.

    Any ideas? Thanks in advance.
  • eskytthe
    Senior Member
    Zabbix Certified Specialist
    • May 2011
    • 363

    #2
    Maybe:
    Your item have to be a "Zabbix agent (active)" check, and you have to have this feature enabled on the agent (config file).
    BR
    Erik

    Comment

    • MartinJanda
      Junior Member
      • Oct 2009
      • 27

      #3
      Thank you for your idea, but item is "Zabbix agent (active)" and active feature is not disabled in config file.

      In the agent log is:
      8504:20110816:164159.589 Starting Zabbix Agent. Zabbix 1.8.5 (revision 19050).
      8505:20110816:164159.589 agent #0 started [collector]
      8506:20110816:164159.589 agent #1 started[listener]
      8507:20110816:164159.590 agent #2 started[listener]
      8508:20110816:164159.590 agent #3 started[listener]
      8509:20110816:164159.590 agent #4 started [active checks]
      8509:20110817:125401.349 Cannot stat ['/mypath/myfile.log'] [No such file or directory]
      8509:20110817:125401.349 Active check [log['/mypath/myfile.log','INFO','UTF8',100]] is not supported. Disabled.

      Path is ok, i try login as zabbix user and try cat this file and it works.

      Comment

      • MartinJanda
        Junior Member
        • Oct 2009
        • 27

        #4
        Thank you for our time.

        I wrote, user zabbix has read rights to parse that file. (I try login as zabbix and I used 'cat' command for show this log file).

        Any other ideas?

        Comment

        • nkinchev
          Junior Member
          • Nov 2011
          • 1

          #5
          Same issue

          Hi MartinJanda,

          could you make it work ?

          I use v1.9.7 server and agent.

          Error I see is:
          item [Zabbix server:log["/var/log/messages","ERROR","UTF-8",100]] became not supported: ZBX_NOTSUPPORTED

          Thanks

          Comment

          • MartinJanda
            Junior Member
            • Oct 2009
            • 27

            #6
            Hi nkinchev,
            I spent a lot of time and tried everything possible. It still does not work.

            When i start agentd with DebugLevel=4, in agentd log I see:
            Code:
            17703:20111121:160922.905 refresh_active_checks('my IP',10051)
             17703:20111121:160922.906 Sending [{
                    "request":"active checks",
                    "host":"valhalla"}]
             17703:20111121:160922.906 Before read
             17703:20111121:160922.908 Got [{
                    "response":"success",
                    "data":[
                            {
                                    "key":"log['\/mypath\/daemon.log','INFO','UTF8',100]",
                                    "delay":"60",
                                    "lastlogsize":"0",
                                    "mtime":"0"}]}]
             17703:20111121:160922.908 In parse_list_of_checks()
             17703:20111121:160922.908 In disable_all_metrics()
             17703:20111121:160922.908 In add_check('log['/mypath/daemon.log','INFO','UTF8',100]', 60, 0, 0)
             17703:20111121:160922.908 In process_active_checks('my IP',10051)
             17703:20111121:160922.908 In process_log() filename:''/mypath/daemon.log'' lastlogsize:0
             17703:20111121:160922.908 Cannot stat ['/mypath/daemon.log'] [No such file or directory]
             17703:20111121:160922.908 Active check [log['/mypath/daemon.log','INFO','UTF8',100]] is not supported. Disabled.
             17703:20111121:160922.908 In process_value() key:'valhalla.czechbone.net:log['/mypath/daemon.log','INFO','UTF8',100]' value:'ZBX_NOTSUPPORTED'
            I use zabbix 1.8.5. I'll wait for version 1.8.9 and I will do a upgrade. Perhaps the problem will be solved.

            Comment

            • MartinJanda
              Junior Member
              • Oct 2009
              • 27

              #7
              Today I tried to watch zabbix agentd through strace, to see if agentd try to check the log file. In the output I didn't find operation on the file. On the server, however, item switch from active to not supported state. Strange.

              I will try to delete the host and recreate. If it does not work, I wait for the release version 1.8.9 and try to upgrade the Zabbix.

              If anyone has any idea, thank you.

              Comment

              • MartinJanda
                Junior Member
                • Oct 2009
                • 27

                #8
                I tried to delete the host and I re-created. Same result: log function doesn't work.

                Comment

                • Sour
                  Member
                  • Feb 2012
                  • 30

                  #9
                  Had the same problem, lost few hours on debugging this. The solution was so simple and silly...

                  8509:20110817:125401.349 Active check [log['/mypath/myfile.log','INFO','UTF8',100]] is not supported. Disabled

                  Quotes at item key must be "/mypath/myfile.log"

                  Comment

                  • MartinJanda
                    Junior Member
                    • Oct 2009
                    • 27

                    #10
                    Sour, you're right, thank you very much. Finally, I can watch log files.

                    Quotes at item key must be "/mypath/myfile.log", others must be '.

                    Comment

                    Working...