Ad Widget

Collapse

log file monitoring on the ZABBIX Server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Kai
    Junior Member
    • Aug 2009
    • 10

    #1

    log file monitoring on the ZABBIX Server

    hi all,

    /usr/local/zabbix/sbin/zabbix_server -V
    ZABBIX Server (daemon) v1.6.5 (revision 7442) (3 April 2009)

    /usr/local/zabbix/sbin/zabbix_agentd -V
    ZABBIX Agent (daemon) v1.6.5 (revision 7442) (3 April 2009)

    zabbix_agentd.conf :
    -------
    Server=IP-Adress
    Hostname=Zabbix Server
    -------

    I want to control/monitor the zabbix server log file /tmp/zabbix_server.log

    If the strings "error" appears in the file I want to get a notice

    Therefore I created an Item for the "Zabbix Server"
    ------------
    Type : Zabbix agent (active)
    Key : log[/tmp/zabbix_server.log,error]
    Type of information : log
    Applications: Log File
    -------------
    The trigger looks like this:
    ----------
    {ZABBIX Server:log[/tmp/zabbix_server.log,error].str(error)}=1
    Severity: Average
    -----------

    In the GUI "Monitoring -> Last Data -> Log Files" I can see contet of the
    log file:
    ----------
    5530:20090810:151240 Active parameter [log[/tmp/zabbix_server.log,error]] is not supported by agent on host [ZABBIX Server]
    5530:20090810:151440 Active parameter [log[/tmp/zabbix_server.log,error]] is not supported by agent on host [ZABBIX Server]
    5530:20090810:151640 Active parameter [log[/tmp/zabbix_server.log,error]] is not supported by agent on host [ZABBIX Server]
    5530:20090810:151840 Active parameter [log[/tmp/zabbix_server.log,error]] is not supported by agent on host [ZABBIX Server]
    -------------

    Why this messages appears in the log file ?

    I think the log file mointoring works, otherwise I would not see the content

    best regards, Kai
  • Kai
    Junior Member
    • Aug 2009
    • 10

    #2
    hi all,

    is there no one who has an idea what's wrong ?

    on a client I monitor the /var/adm/messages file with success

    on both hosts there is the same OS an zabbix version

    regards, Kai

    Comment

    • alj
      Senior Member
      • Aug 2006
      • 188

      #3
      Active checks are not enabled perhaps?

      Comment

      • Kai
        Junior Member
        • Aug 2009
        • 10

        #4
        good morning,

        here are the settings in /etc/zabbix/zabbix_agentd.conf:
        --------
        Server=XXX.XXX.XXX.XXX <- real IP number
        Hostname=ZABBIX Server <- the hostname out of the Zabbix GUI
        StartAgents=5
        DebugLevel=3
        PidFile=/var/tmp/zabbix_agentd.pid
        LogFile=/tmp/zabbix_agentd.log
        Timeout=3
        ------------

        I thought active checks enable is the default

        I tried also "DisableActive=1" , but it helped not

        best regards, Kai

        Comment

        • zxxc
          Member
          • Oct 2009
          • 50

          #5
          I have same error with my active checks - they worked, but in zabbix_server.log appears text thar agent don't support them
          How you solve this problem?

          Comment

          • Kai
            Junior Member
            • Aug 2009
            • 10

            #6
            I changed the name of the zabbix server from "Zabbix Server" to "Zabbix"
            and didn't see the error message anymore
            hth, kai

            Comment

            • zxxc
              Member
              • Oct 2009
              • 50

              #7
              You rename in zabbix_agentd.conf only?
              I wrote "Hostname=Zabbix" in zabbix_agentd.conf, then restart agent and server
              It dosn't change, in log file i see
              Active parameter [log[....]] is not supported by agent on host [ZABBIX Server]

              Comment

              • Kai
                Junior Member
                • Aug 2009
                • 10

                #8
                you have to change the name also in the GUI (Configuration -> Hosts -> Zabbix Server
                regards, k

                Comment

                • zxxc
                  Member
                  • Oct 2009
                  • 50

                  #9
                  Thanks, works)

                  Comment

                  • aic
                    Member
                    • Oct 2010
                    • 50

                    #10
                    log file monitoring on the ZABBIX Server

                    Hi All,

                    I tried all things with any lucks

                    Any other idea to apply and fix this issue?

                    I have Zabbix server and agent running 1.8.3 in the same machine.

                    Thanks in advance.
                    AIC

                    Comment

                    Working...