Ad Widget

Collapse

Zabbix Config Files, Inline Comments

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Smoke
    Junior Member
    • Jul 2014
    • 29

    #1

    Zabbix Config Files, Inline Comments

    I was wondering if someone notice this possible bug/error, there seems to be no support for inline comments on the zabbix configuration files.

    I spend about one hour reformating all my config file to include the comments at the end of the line and when restarted the server found that its not supported.

    ie:

    Code:
    ListenPort=10051    # Listen port for trapper.
    ListenPort=10051    // Listen port for trapper.
    ListenPort=10051    ; Listen port for trapper.
    None of the above work, i always get the following:

    Code:
    zabbix_server [1156]: wrong value of[ListenPort] in config file [/apps/zabbix/2.2.3/etc/zabbix_server.conf], line 5
    so i have to remove inline comments in order to make it work

    would this be a candidate for a feature/bug request?
    i think its a pretty common request/feature, its the first time i see a program in unix world that doesnt support it...
  • esawyja
    Member
    Zabbix Certified Specialist
    • Dec 2011
    • 54

    #2
    I can confirm, I have the same, it works with
    ListenPort=10051
    # Listen port for trapper

    But not with
    ListenPort=10051 # Listen port for trapper

    IE, the comment on the same line
    NinjaGen8:~ # /etc/init.d/zabbix-server start
    Starting zabbix_server: zabbix_server [11700]: wrong value of[ListenPort] in config file [/etc/zabbix/zabbix_server.conf], line 22 failed

    Comment

    Working...