Ad Widget

Collapse

Windows agent log file location

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jzondervan
    Junior Member
    • Jul 2010
    • 19

    #1

    Windows agent log file location

    Hello,

    I'm trying to set the log file location of a windows agent to "c:\Program Files\Zabbix". This doens't seem to work. No problems when I point it to e.g. C:\Zabbix.

    Checked the ACL, same as on C:\Zabbix so it isn't a rights problem. My guess is the agent doesn't work with a " " (space) in the folder name. Is this correct/is there a fix for this?

    Regards,
    Jasper
  • ruswold
    Senior Member
    • Mar 2010
    • 210

    #2
    Originally posted by jzondervan
    Hello,

    I'm trying to set the log file location of a windows agent to "c:\Program Files\Zabbix". This doens't seem to work. No problems when I point it to e.g. C:\Zabbix.

    Checked the ACL, same as on C:\Zabbix so it isn't a rights problem. My guess is the agent doesn't work with a " " (space) in the folder name. Is this correct/is there a fix for this?

    Regards,
    Jasper
    Try set LogFile=c:\Progra~1\Zabbix\zabbix_agent.log

    Comment

    • tchjts1
      Senior Member
      • May 2008
      • 1605

      #3
      And just to state the obvious... you are restarting your agent after you make the change to the conf file, right?

      Comment

      • jzondervan
        Junior Member
        • Jul 2010
        • 19

        #4
        I tried with C:\progra~1 and it works smootly, thanks!

        Comment

        • zalex_ua
          Senior Member
          Zabbix Certified Trainer
          Zabbix Certified SpecialistZabbix Certified Professional
          • Oct 2009
          • 1286

          #5
          Originally posted by jzondervan
          I'm trying to set the log file location of a windows agent to "c:\Program Files\Zabbix". This doens't seem to work. No problems when I point it to e.g. C:\Zabbix.
          You yourself then noticed a difference in the second case you do not use the quotation marks ""?
          This is the main difference, but not in the path and ACL !!!
          Do not use "" in the path to log file !!!

          Originally posted by jzondervan
          Hello,
          My guess is the agent doesn't work with a " " (space) in the folder name. Is this correct/is there a fix for this?
          There is no problem if the folder names or file contains spaces.
          Here, for example in conf file:
          Code:
          LogFile=c:\Program Files\Zabbix Agent\zabbix agentd.log
          is no problems.

          Tested on agent version 1.9.

          p.s. always post version of tested components

          Comment

          • jzondervan
            Junior Member
            • Jul 2010
            • 19

            #6
            There is no problem if the folder names or file contains spaces.
            Here, for example in conf file:
            I tried with agent version 1.8.2. It didn't work with spaces in the folder name, with or without the quotation marks.

            But I solved it by using C:\progra~1\Zabbix\zabbix_agentd.log and it works fine. Didn't use quotation marks "".

            Comment

            • bsriship
              Junior Member
              • Jul 2015
              • 1

              #7
              Use escape characters

              I had the same issue for Windows path with spaces
              d:\my path
              If you change it to "d:\\my path" it works

              Comment

              Working...