Ad Widget

Collapse

Agent no reading the configuration file with '-t'

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • osoh
    Junior Member
    • May 2007
    • 11

    #1

    Agent no reading the configuration file with '-t'

    I don't know if it's the intended behaviour, but when I launch the zabbix_agentd using the '-t' option, it doesn't read the configuration file. So, if I define some "user parameters", I couldn't get access to those parameters.

    Code:
    $ zabbix_agentd -t system.test
    system.test[]                                 [m|ZBX_NOTSUPPORTED]
    However, if I call it using the '-c' option it works just fine:

    Code:
    $ zabbix_agentd -t system.test -c /etc/zabbix/zabbix_agentd.conf
    system.test                                   [t|1]
    Taking a look at the zabbix_agentd code, I saw that when started with '-t', the CONFIG_FILE isn't initialized when calling load_user_parameters(). So this functions loads nothing.

    Is this the intended behaviour or just a little bug?
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    It is just a little bug Thanks for reporting!
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    Working...