Ad Widget

Collapse

Log file issue

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ben.bressler
    Member
    • Dec 2012
    • 45

    #1

    Log file issue

    I'm monitoring a single log file using 3 different items:

    log["/opt/log/classifiers_associative.log","CRITICAL event=",,1000]
    log["/opt/log/classifiers_associative.log","ERROR",,1000]
    log["/opt/log/classifiers_associative.log","WARNING",,1000]

    The 1st two (CRITICAL and ERROR) both work without issue but the 3rd one (WARNING) gives me a status of "not supported". I am stumped as to why this would be. They are the exact same except for the string they are looking for. Does anyone have any ideas as to what might cause this?

    When I look through the agent log I see this:

    722:20130701:213439.009 cannot set position to [-1611253934] for [/opt/log/classifiers_associative.log]: [22] Invalid argument
    722:20130701:213439.009 Active check [log["/opt/log/classifiers_associative.log","WARNING",,1000]] is not supported. Disabled.
    Last edited by ben.bressler; 01-07-2013, 23:38.
  • Colttt
    Senior Member
    Zabbix Certified Specialist
    • Mar 2009
    • 878

    #2
    try this one:
    Code:
    zabbix_get -I YOU_IP -k log["/opt/log/classifiers_associative.log","WARNING",,1000]
    or this one
    Code:
    zabbix_agent -p
    here you can see known items from this agent

    and please post the output
    Debian-User

    Sorry for my bad english

    Comment

    • ben.bressler
      Member
      • Dec 2012
      • 45

      #3
      Thanks for the reply!

      I ran the Zabbix_get on my Zabbix admin server and got a usage error:

      admin@admin:~$ zabbix_get -I 10.46.5.184 -k log["/opt/log/classifiers_associative.log","WARNING",,1000]
      usage: zabbix_get [-hV] -s <host name or IP> [-p <port>] [-I <IP address>] -k <key>

      Comment

      • ben.bressler
        Member
        • Dec 2012
        • 45

        #4
        I ran the 2nd command on the box having the issues and got the data attached in the txt file.
        Attached Files

        Comment

        • Colttt
          Senior Member
          Zabbix Certified Specialist
          • Mar 2009
          • 878

          #5
          try this: (use s instead of I)
          Code:
          zabbix_get -s 10.46.5.184 -k log["/opt/log/classifiers_associative.log","WARNING",,1000]
          Debian-User

          Sorry for my bad english

          Comment

          Working...