Ad Widget

Collapse

Zabbix Windows Agent configuration & documentation

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Andreas Bollhalder
    Senior Member
    Zabbix Certified Specialist
    • Apr 2007
    • 144

    #1

    Zabbix Windows Agent configuration & documentation

    Hello

    I installed the Zabbix-Agent on a Windows server and observed a lot of entries in the event log (system) from ZABBIX (all informational). There are so many, that the log went full and all other older events has been gone.

    I read the documentation for the windows agent (1.4 rev7) and there is stated, that the option "DebugLevel" has no effect. But on the windows machine, when setting "DebugLevel=1", I get much less entries in the event log. Is this an undocumented feature ?

    Andreas
    Zabbix statistics
    Total hosts: 380 - Total items: 12190 - Total triggers: 4530 - Required server performance: 224.2
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    What messages you are getting? Please give me some.
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • Andreas Bollhalder
      Senior Member
      Zabbix Certified Specialist
      • Apr 2007
      • 144

      #3
      Hello Alexei

      All messages are informational and from the source "ZABBIX Agent". For example:

      Code:
      [2824]:  zabbix_agentd started. ZABBIX 1.4.
      [2652]:  zabbix_agentd collector started
      [2672]:  zabbix_agentd listener started
      [2776]:  zabbix_agentd listener started
      [1368]:  zabbix_agentd listener started
      [3372]:  zabbix_agentd active check started [xxx.xxx.xxx.xxx:10051]
      [3372]:  In init_active_metrics()
      [3372]:  In refresh_metrics('xxx.xxx.xxx.xxx',10051)
      [3372]:  get_active_checks('xxx.xxx.xxx.xxx',10051)
      [3372]:  Sending [ZBX_GET_ACTIVE_CHECKS foo.bar.net]
      [3372]:  In process_active_checks('xxx.xxx.xxx.xxx',10051)
      ...
      In 2 minutes, I had 30 messages. On a server I have checked after 2 days, ZABBIX has filled the event log with its messages.

      I was only wondering about the documentation on page 63 which states: the "DebugLevel" has no effect. But it seems, that it works for the Windows agent too. So I have to recommend to set the "DebugLevel" to a lower number then the default "Warning".

      Andreas
      Zabbix statistics
      Total hosts: 380 - Total items: 12190 - Total triggers: 4530 - Required server performance: 224.2

      Comment

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

        #4
        I'll amend the manual. Sorry for this.
        Alexei Vladishev
        Creator of Zabbix, Product manager
        New York | Tokyo | Riga
        My Twitter

        Comment

        • NOB
          Senior Member
          Zabbix Certified Specialist
          • Mar 2007
          • 469

          #5
          Hi,

          you can set the logfile to any real file you like.
          In this way you avoid filling the eventlog with ZABBIX messages.

          There was (still is ?) a bug in the agent configuration
          in the NSIS package. The logfile is called zabbix_agentd.pid
          instead of zabbix_agentd.log.
          I fixed it for our installations.

          Norbert.

          Comment

          • tronite
            Senior Member
            • Jun 2007
            • 147

            #6
            Originally posted by NOB
            Hi,

            you can set the logfile to any real file you like.
            In this way you avoid filling the eventlog with ZABBIX messages.

            There was (still is ?) a bug in the agent configuration
            in the NSIS package. The logfile is called zabbix_agentd.pid
            instead of zabbix_agentd.log.
            I fixed it for our installations.

            Norbert.
            I've seen this file as well, when zabbix won't stop I delete this file.

            Comment

            • bill.unger
              Member
              • Jun 2007
              • 79

              #7
              How did you get it to install as a service? I have tried the different command line parameters as outlined in the 1.4 manual (ie., zabbix_agentd install) and the agent just starts up from the command prompt w/o installing as a service...

              tia,
              Bill

              Comment

              • tronite
                Senior Member
                • Jun 2007
                • 147

                #8
                I probably did'nt follow the instructions so well, because I just configured with a few parameters ... make... make install and saw no errors?

                Don't worry my zabbix is not behaiving at all!

                Comment

                • Andreas Bollhalder
                  Senior Member
                  Zabbix Certified Specialist
                  • Apr 2007
                  • 144

                  #9
                  Does ZABBIX log rotation with its log file or is there a limit to confugure ?

                  I install the agent on windows server like this.
                  1. Make the directory on the server
                    Code:
                    C:\Program Files\Zabbix
                  2. Copy the files to the server
                    Code:
                    zabbix-1.4-start.bat
                    zabbix-1.4-stop.bat
                    zabbix_agentd.conf
                    zabbix_agentd.exe
                  3. Edit the configuration file
                    zabbix_agentd.conf:
                    Code:
                    Server=ip-zabbix-server
                    Hostname=hostname.domain.tld
                    DebugLevel=1
                  4. Start or stop them with the batches
                    zabbix-1.4-start.bat:
                    Code:
                    REM change user /install
                    zabbix_agentd.exe --config "C:\Program Files\Zabbix\zabbix_agentd.conf" --install
                    zabbix_agentd.exe --config "C:\Program Files\Zabbix\zabbix_agentd.conf" --start
                    REM change user /execute
                    pause
                    zabbix-1.4-stop.bat:
                    Code:
                    REM change user /install
                    zabbix_agentd.exe --config "C:\Program Files\Zabbix\zabbix_agentd.conf" --stop
                    zabbix_agentd.exe --config "C:\Program Files\Zabbix\zabbix_agentd.conf" --uninstall
                    REM change user /execute
                    pause
                  Zabbix statistics
                  Total hosts: 380 - Total items: 12190 - Total triggers: 4530 - Required server performance: 224.2

                  Comment

                  • Andreas Bollhalder
                    Senior Member
                    Zabbix Certified Specialist
                    • Apr 2007
                    • 144

                    #10
                    Originally posted by Alexei
                    I'll amend the manual. Sorry for this.
                    No problem, ZABBIX is open source and we are here to help to improve it as far each can.

                    Andreas
                    Zabbix statistics
                    Total hosts: 380 - Total items: 12190 - Total triggers: 4530 - Required server performance: 224.2

                    Comment

                    Working...