Ad Widget

Collapse

howwwww to configure server Active check ......?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • valerie gurshman
    Junior Member
    • Mar 2015
    • 11

    #1

    howwwww to configure server Active check ......?


    Hi!
    i tried to configure active check in order zabbix to scan alert log of oracle system ,it should alert when it crossing by a error code in that log.

    the server_agent.conf in oracle server side look like this

    ############ GENERAL PARAMETERS #################
    Server=172.20.10.21
    StartAgents=5
    EnableRemoteCommands=1
    DebugLevel=3
    ServerActive=172.20.10.59:10050

    LogFile=c:\zabbix\zabbix_agentd.log
    Timeout=30


    i cunfigured the server_agentd.conf in zabbix server side looks like that


    ##### Active checks related
    ### Option: ServerActive
    # Example: ServerActive=127.0.0.1:20051,zabbix.domain,[::1]:30051,::1,[12fc::1]
    # ServerActive=
    ServerActive=172.20.10.59:10050


    i'm getting those error in agent_log of my oracle server


    15956:20150315:111831.095 active check configuration update from [172.20.10.59:10050] started to fail (ZBX_TCP_READ() failed: [0x00002746] An existing connection was forcibly closed by the remote host.)
    15956:20150315:112131.592 active check configuration update from [172.20.10.59:10050] is working again
    15956:20150315:112131.592 cannot parse list of active checks:
    15956:20150315:112331.247 active check configuration update from [172.20.10.59:10050] started to fail (ZBX_TCP_READ() failed: [0x00002746] An existing connection was forcibly closed by the remote host.)

    all ports open between the two servers.
    and telnet been checked and found OK.


    the item that i tring to create suppose to read the log with "logrt" function and read the log from the last point it's stops.

    the command in the item look like that

    logrt["C:\Oracle\diag\rdbms\jda74\jda74\trace\alert_jda7 4.log","ORA-",UTF-8,10,skip]

    it will help me a lot if someone will post the right way to configure it in a few steps.
    is there anyone who was able to configure that corectly ?
    is anyone can provide me examples or the right way to do that step by step configuration?

    thanks to you all

    Valerie
  • aib
    Senior Member
    • Jan 2014
    • 1615

    #2
    1) You have two parts of equation: zabbix_server and zabbix_agent
    2) zabbix_agent installed on Oracle server (ex. 44.33.22.11)
    3) zabbix_server installed on different server (ex. 11.22.33.44)

    4) in zabbix_agent.conf on Oracle server you need line with IP-address of zabbix_server:
    ServerActive=11.22.33.44

    5) in zabbix_server.conf you don't need anything, related with IP-address of Oracle. nothing. OK?

    6) In Frontend configuration for Oracle host you have to create an Item "Log Item" with type "Zabbix agent (active)", as it explained here

    Then, restart zabbix_server AND zabbix_agent on both servers and check log-files on both servers. To get more verbose output you can increase DebugLevel to 4.
    Tell us about results.
    Sincerely yours,
    Aleksey

    Comment

    • valerie gurshman
      Junior Member
      • Mar 2015
      • 11

      #3
      HI, I edited the parameters as:

      1. in oracle server ---> zabbix_agentd.conf:

      ############ GENERAL PARAMETERS #################
      Server=172.20.10.21
      StartAgents=5
      EnableRemoteCommands=1
      DebugLevel=3
      ServerActive=172.20.10.21:10051


      2. in zabbix server ---> /etc/zabbix/zabbix_agentd.conf:

      ### Option: ServerActive
      # Example: ServerActive=127.0.0.1:20051,zabbix.domain,[::1]:30051,::1,[12fc::1]
      # ServerActive=
      ServerActive=127.0.0.1:10051

      3. restart both agents

      4. now the log is on oracle server :

      14636:20150316:163217.943 Zabbix Agent stopped. Zabbix 2.2.1 (revision 40801).
      8148:20150316:163218.287 Starting Zabbix Agent [CENTERJDAWINTST]. Zabbix 2.2.1 (revision 40801).
      8148:20150316:163218.287 using configuration file: c:\zabbix\conf\zabbix_agentd.conf
      12400:20150316:163218.287 agent #0 started [collector]
      7784:20150316:163218.287 agent #1 started[listener #1]
      6600:20150316:163218.287 agent #2 started[listener #2]
      13920:20150316:163218.287 agent #3 started[listener #3]
      8064:20150316:163218.287 agent #4 started[listener #4]
      11584:20150316:163218.287 agent #5 started[listener #5]
      11656:20150316:163218.287 agent #6 started [active checks #1]
      11656:20150316:163218.349 no active checks on server [172.20.10.21:10051]: host [CENTERJDAWINTST] not found


      5. log on zabbix server:

      23862:20150316:162959.753 Starting Zabbix Agent [centerzabbixbe.center]. Zabbix 2.2.3 (revision 44105).
      23862:20150316:162959.753 using configuration file: /etc/zabbix/zabbix_agentd.conf
      23864:20150316:162959.754 agent #0 started [collector]
      23865:20150316:162959.754 agent #1 started[listener #1]
      23866:20150316:162959.755 agent #2 started[listener #2]
      23867:20150316:162959.755 agent #3 started[listener #3]
      23868:20150316:162959.755 agent #4 started [active checks #1]
      23868:20150316:162959.771 no active checks on server [127.0.0.1:10051]: host [centerzabbixbe.center] not found
      23868:20150316:163159.798 no active checks on server [127.0.0.1:10051]: host [centerzabbixbe.center] not found


      so I still have a problem


      6. when I checked zabbix_agentd -p on zabbix server:

      log[logfile] [m|ZBX_NOTSUPPORTED]
      logrt[logfile] [m|ZBX_NOTSUPPORTED]
      eventlog[system] [m|ZBX_NOTSUPPORTED]

      Hope you can advice,
      Valerie

      Comment

      • aib
        Senior Member
        • Jan 2014
        • 1615

        #4
        OK.
        It looks like you read only part of my message.
        Did I tell you to configure ServerActive= parameter on both ends?
        Nope.
        ServerActive=xx.xx.xx.xx means that "There is IP-address where I (agent) will ask about my parameters"
        So - what is the meaning of ServerActive= parameter on Zabbix Server?
        Do you really need server to ask himself about parameters?

        Then, when you configure Items in web-configuration for Host CENTERJDAWINTST - How many Items have a type = Zabbix Agent(active)?
        I assume that you have zero(0) Items with that type.
        So, Zabbix server has empty list of Active checks and has nothing to sell to Agent.

        Is it clear?

        Step-by-step:
        1) Leave the line ServerActive=172.20.10.21 in zabbix_agent.conf as it is, if the IP-address of Zabbix Server = 172.20.10.21
        2) Comment out the line ServerActive=127.0.0.1:10051 on Zabbix server (in zabbix_agentd.conf)
        3) Change the Type some Items for CENTERJDAWINTST to Zabbix Agent(active)
        4) Check log-files and show it to us, when you have any problem.

        Have a nice day!
        Sincerely yours,
        Aleksey

        Comment

        • valerie gurshman
          Junior Member
          • Mar 2015
          • 11

          #5
          Hi!

          I followed the steps.

          now the log looks :

          11188:20150318:152941.658 Starting Zabbix Agent [CENTERJDAWINTST]. Zabbix 2.2.1 (revision 40801).
          11188:20150318:152941.658 using configuration file: c:\zabbix\conf\zabbix_agentd.conf
          14412:20150318:152941.658 agent #0 started [collector]
          13768:20150318:152941.658 agent #1 started[listener #1]
          16308:20150318:152941.658 agent #2 started[listener #2]
          15584:20150318:152941.658 agent #3 started[listener #3]
          5104:20150318:152941.658 agent #4 started[listener #4]
          10980:20150318:152941.658 agent #5 started[listener #5]
          16488:20150318:152941.658 agent #6 started [active checks #1]
          16488:20150318:152941.674 no active checks on server [172.20.10.21:10051]: host [CENTERJDAWINTST] not found

          no latest data on the monitor

          and somehow I get an email every 2 minutes :

          autoregistration

          Host name: CENTERJDAWINTST
          Host IP: 172.20.10.59
          Agent port: 10050

          it comes in parallel with logging to log file

          please explain

          Comment

          • valerie gurshman
            Junior Member
            • Mar 2015
            • 11

            #6
            hi,

            I followed the steps.
            the log looks :

            12772:20150318:153959.013 agent #0 started [collector]
            14428:20150318:153959.013 agent #1 started[listener #1]
            9024:20150318:153959.013 agent #2 started[listener #2]
            14688:20150318:153959.013 agent #3 started[listener #3]
            7664:20150318:153959.013 agent #4 started[listener #4]
            13360:20150318:153959.013 agent #5 started[listener #5]
            14412:20150318:153959.013 agent #6 started [active checks #1]
            14412:20150318:153959.029 no active checks on server [172.20.10.21:10051]: host [CENTERJDAWINTST] not found
            14412:20150318:154159.713 no active checks on server [172.20.10.21:10051]: host [CENTERJDAWINTST] not found


            the monitoring is not working

            please advice

            Comment

            • aib
              Senior Member
              • Jan 2014
              • 1615

              #7
              Hi!
              When you check .log file, pay attention for the line like this one
              Originally posted by valerie gurshman
              16488:20150318:152941.674 no active checks on server [172.20.10.21:10051]: host [CENTERJDAWINTST] not found
              It means:
              1) host CENTERJDAWINTST doesn't exist, or
              2) host CENTERJDAWINTST exist, but doesn't have any Zabbix Agent(Active) Items.

              Do you mind to show the list of items, like mine:
              Attached Files
              Sincerely yours,
              Aleksey

              Comment

              • valerie gurshman
                Junior Member
                • Mar 2015
                • 11

                #8
                my purpose is to monitor alert.log file ,
                so the only active server item we have is logrt item


                Oracle_Log_monitoring logrt["C:\app\diag\rdbms\jda74test\jda74test\trace\alert _jda74test.log","ORA-",,10] 300 90 Zabbix agent (active) Filesystems

                Comment

                • aib
                  Senior Member
                  • Jan 2014
                  • 1615

                  #9
                  Perfect!
                  And one last check - do you completely sure that your Host has a name "CENTERJDAWINTST" ? The all letters capital?

                  It has to be completely the same name in zabbix_agentd.conf AND in web-interface Host configuration.
                  Sincerely yours,
                  Aleksey

                  Comment

                  • valerie gurshman
                    Junior Member
                    • Mar 2015
                    • 11

                    #10
                    Good day, Alexey!
                    Finally, I got the point.
                    The hostname and DSN were different. I knew that it makes sence in zabbix,
                    but there were no parameter in agent conf file that configures the hostmane.
                    After checking Latest Data, I found that it turns the real hostname to capital letters. So I added new line to conf file :
                    Hostname=CenterJdaWinTst
                    and restarted the service. It started to check!!!

                    I am so thankfull to you!

                    It shoud be written more clearly in zabbix documantation- exactly the steps I did in order to configure active checks, it is lack of information .

                    Thank you,
                    Valerie

                    Comment

                    • aib
                      Senior Member
                      • Jan 2014
                      • 1615

                      #11
                      Good news!
                      Have fun with Zabbix
                      Sincerely yours,
                      Aleksey

                      Comment

                      • valerie gurshman
                        Junior Member
                        • Mar 2015
                        • 11

                        #12
                        oh, how much fun... if you speek russian, I would tell you the right word to express my customer experience.

                        But while we solved one problem, another rushed to come.
                        I have already posted a new discussion, so take a look on it, if you can

                        Thanks!

                        Comment

                        • aib
                          Senior Member
                          • Jan 2014
                          • 1615

                          #13
                          Джаст до ит!
                          Донт кип ит, телл ит лаудли.

                          Как вы можете догадаться, русский - мой родной язык.
                          Пойду, поищу следующую тему.
                          Sincerely yours,
                          Aleksey

                          Comment

                          • valerie gurshman
                            Junior Member
                            • Mar 2015
                            • 11

                            #14
                            Спасибо, Лёша!

                            Comment

                            • aib
                              Senior Member
                              • Jan 2014
                              • 1615

                              #15
                              А по второй теме - с серверными крашами - надо ждать, пока разработчики заглянут и ответят. Вряд ли кто-то из обычных пользователей знает, как "это" решить
                              Sincerely yours,
                              Aleksey

                              Comment

                              Working...