Ad Widget

Collapse

Actual win32 agent crashes with keyword >hostname< in conf-file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • 753713
    Senior Member
    • Apr 2006
    • 137

    #1

    Actual win32 agent crashes with keyword >hostname< in conf-file

    Problem: We use the latest zabbix 1.1 beta 12 win32 agent and want to check the eventlog-files.
    So we use the >hostname< keyword, because to get the eventlog-files
    you need this keyword. The eventlog is read line by line, but after a while
    the agent crashes!
    The agent works 100% fine when we don´t use the keyword >hostname< without function eventlog.

    Agent working perfektly without function eventlog:
    server = 10.200.221.38
    ServerPort=10051
    #Hostname=i1jess011
    ListenPort = 10050
    LogFile = c:\zabbix_agentd.log
    LogLevel = 0x07
    TimeOut = 10
    MaxCollectorProcessingTime = 500

    function eventlog working and Agent crashes
    server = 10.200.221.38
    ServerPort=10051
    Hostname=i1jess011
    ListenPort = 10050
    LogFile = c:\zabbix_agentd.log
    LogLevel = 0x07
    TimeOut = 10
    MaxCollectorProcessingTime = 500

    here the logfile:
    C:\>zabbixw32 version
    Zabbix Win32 Agent Version 1.1beta12-debug Build of May 31 2006

    C:\>zabbixw32 standalone
    Using configuration file "C:\zabbix_agentd.conf"
    Configuration file OK
    [31-May-2006 21:24:53] *************** Log file opened ****************
    [31-May-2006 21:24:53] 3308 Debug Info: AddAlias == OK
    [31-May-2006 21:24:53] 3436 Debug Info: CollectorThread start
    [31-May-2006 21:24:53] 3436 Debug Info: counterPath1
    [31-May-2006 21:24:53] 3436 Debug Info: \Prozessor(_Total)\Prozessorzeit (%)
    [31-May-2006 21:24:53] 3436 Debug Info: counterPath2
    [31-May-2006 21:24:53] 3436 Debug Info: \Prozessor(0)\Prozessorzeit (%)
    [31-May-2006 21:24:54] 3436 Debug Info: counterPath3
    [31-May-2006 21:24:54] 3436 Debug Info: \System\Prozessor-Warteschlangenlõnge
    [31-May-2006 21:24:54] Collector thread initialized successfully
    [31-May-2006 21:24:54] [31-May-2006 21:24:54] Zabbix Win32 Agent started

    *** Zabbix Win32 agent operational. Press ESC to terminate. ***
    [31-May-2006 21:24:54] 240 Debug Info: In ListenerThread()
    [31-May-2006 21:24:54] 2228 Debug Info: Out of refresh_metrics()
    Information: 1128 : Listen thread is Started.
    [31-May-2006 21:24:54] 1128 Debug Info: In AcceptThread()
    [31-May-2006 21:24:54] [31-May-2006 21:24:54] Information: 2880 : Listen thread
    is Started.
    [31-May-2006 21:24:54] 2880 Debug Info: In AcceptThread()
    Information: 3284 : Listen thread is Started.
    [31-May-2006 21:24:54] [31-May-2006 21:24:54] 3284 Debug Info: In AcceptThread(

    [31-May-2006 21:24:54] Information: 1056 : Listen thread is Started.
    1056 Debug Info: In AcceptThread()
    [31-May-2006 21:24:54] Information: 3748 : Listen thread is Started.
    [31-May-2006 21:24:54] [31-May-2006 21:24:54] 3748 Debug Info: In AcceptThread(

    Information: 120 : Listen thread is Started.
    [31-May-2006 21:24:54] 120 Debug Info: In AcceptThread()
    [31-May-2006 21:24:54] [31-May-2006 21:24:54] Information: 3728 : Listen thread
    is Started.
    3728 Debug Info: In AcceptThread()
    [31-May-2006 21:24:54] Information: 3880 : Listen thread is Started.
    [31-May-2006 21:24:54] 3880 Debug Info: In AcceptThread()
    [31-May-2006 21:24:54] [31-May-2006 21:24:54] Information: 3684 : Listen thread
    is Started.
    3684 Debug Info: In AcceptThread()
    [31-May-2006 21:24:54] [31-May-2006 21:24:54] Information: 3832 : Listen thread
    is Started.
    3832 Debug Info: In AcceptThread()

    any ideas???

    Christian
    Last edited by 753713; 31-05-2006, 21:29.
    ______________________________
    Version : 2.0.x
    Server OS: Ubuntu 12.04
    Zabbix Servers: 12
    Monitored Windows Server: ~ 1000
    ______________________________
  • 753713
    Senior Member
    • Apr 2006
    • 137

    #2
    are there any special parameters in the configuration file for monitoring eventlog?

    Christian
    ______________________________
    Version : 2.0.x
    Server OS: Ubuntu 12.04
    Zabbix Servers: 12
    Monitored Windows Server: ~ 1000
    ______________________________

    Comment

    • Alexei
      Founder, CEO
      Zabbix Certified Trainer
      Zabbix Certified SpecialistZabbix Certified Professional
      • Sep 2004
      • 5654

      #3
      Where do you use the "hostname"? In configuration file? What for?
      Alexei Vladishev
      Creator of Zabbix, Product manager
      New York | Tokyo | Riga
      My Twitter

      Comment

      • 753713
        Senior Member
        • Apr 2006
        • 137

        #4
        We want to monitor Windows-Server eventlog-files

        without "hostname" we get no data from eventlog -> agent works
        with "hostname" we get data from eventlog -> agent crashes after a while


        we use it in the configuration-file:
        server = 10.200.221.38
        ServerPort=10051
        #Hostname=i1jess011
        ListenPort = 10050
        LogFile = c:\zabbix_agentd.log
        LogLevel = 0x07
        TimeOut = 10
        MaxCollectorProcessingTime = 500

        we use it in the item configuration:
        Last edited by 753713; 05-01-2008, 23:22.
        ______________________________
        Version : 2.0.x
        Server OS: Ubuntu 12.04
        Zabbix Servers: 12
        Monitored Windows Server: ~ 1000
        ______________________________

        Comment

        • bbrendon
          Senior Member
          • Sep 2005
          • 870

          #5
          We use hostname in our configs as well. The hostname we use in the zabbix console is slightly differrent from the system hostname. We also use active only checks. I'm also experiencing some agents crashing.
          Unofficial Zabbix Expert
          Blog, Corporate Site

          Comment

          • 753713
            Senior Member
            • Apr 2006
            • 137

            #6
            How can I monitor windows eventlog?

            Eventlog monitoring doesn`t work without hostname in the config-file.

            Christian
            ______________________________
            Version : 2.0.x
            Server OS: Ubuntu 12.04
            Zabbix Servers: 12
            Monitored Windows Server: ~ 1000
            ______________________________

            Comment

            • rjk
              Junior Member
              Zabbix Certified Specialist
              • Apr 2006
              • 11

              #7
              Also problems with &quot;hostname&quot; keyword :-((

              Hello,

              I have got exact the same problem :-(
              And I am very interested on a solution for that,
              because we are monitoring more than 100 servers
              and we need this feature!

              May be there is a step-by-step-HowTo to get this
              working?!?!

              In the old version (-> Beta 1.9) it was working!

              Thx for any answers on that!


              Friendly regards


              Ralf

              Comment

              • RohrbaGe
                Senior Member
                • Aug 2005
                • 167

                #8
                windows agent / hostname

                Hi,

                on my test system 1.12b running on Suse 9.2 I have exactly the same problem.

                After putting in the hostname=xxx in the agent-config file,
                setting up the eventlog monitoring and restarting the agent, the agent starts working and monitoring the eventlog for some minutes.

                Then the agent died, and only after the remove of the hostname line I`m
                able to run the agent again.

                The Windows server is a 2003/ UK version, with actual patches.

                I´m note sure, if the agent is creating the problem, or if the zabbix_server
                has some problems with getting the eventlog only, and this causes the agent to die.


                Regards

                Gerald

                Comment

                • har
                  Junior Member
                  • Jun 2006
                  • 2

                  #9
                  same symptoms

                  Hi,

                  this really seams to be a problem of beta 12. In former versions we couldnt see this behaviour.

                  Would be glad to have a solution

                  Thanx

                  Harald

                  Comment

                  • Alexei
                    Founder, CEO
                    Zabbix Certified Trainer
                    Zabbix Certified SpecialistZabbix Certified Professional
                    • Sep 2004
                    • 5654

                    #10
                    I believe the problem is already fixed in CVS thanks to a patch posted in Forums Patches. Please wait for 1.1.
                    Alexei Vladishev
                    Creator of Zabbix, Product manager
                    New York | Tokyo | Riga
                    My Twitter

                    Comment

                    • 753713
                      Senior Member
                      • Apr 2006
                      • 137

                      #11
                      Thanx,

                      I have tested the Patch, Funktion is OK

                      Christian
                      ______________________________
                      Version : 2.0.x
                      Server OS: Ubuntu 12.04
                      Zabbix Servers: 12
                      Monitored Windows Server: ~ 1000
                      ______________________________

                      Comment

                      • befortin
                        Member
                        • Jul 2005
                        • 48

                        #12
                        Same problem here!

                        Hi,

                        I have the same problem, but only with a Windows NT 4.0 SP6 host. I already got Psapi.dll registered. When I put the hostname in the zabbix_agentd.conf file, the service won't start.

                        Please see the attached JPEG for more details.
                        Attached Files

                        Comment

                        Working...