LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   zabbix_agent: unknown parameter [LogFile] in config file (https://www.linuxquestions.org/questions/linux-server-73/zabbix_agent-unknown-parameter-%5Blogfile%5D-in-config-file-4175452975/)

eantoranz 03-06-2013 09:49 AM

zabbix_agent: unknown parameter [LogFile] in config file
 
Hi!

I have this ubuntu 12.10 server (on a qemu virtual machine). I'm testing zabbix (from packages) on it and have been having no major problems till now with it. Up until yesterday, zabbix_agent was working normally but today I boot the VM and agent won't come online.

When I run it manually. it was complaining about PidFile:

Code:

cps@zabbix:~$ zabbix_agent -c /etc/zabbix/zabbix_agentd.conf
zabbix_agent [1631]: unknown parameter [PidFile] in config file [/etc/zabbix/zabbix_agentd.conf], line 13

I comment out that option and now it's LogFile:

Code:

cps@zabbix:~$ zabbix_agent -c /etc/zabbix/zabbix_agentd.conf
zabbix_agent [1704]: unknown parameter [LogFile] in config file [/etc/zabbix/zabbix_agentd.conf], line 23

I think it doesn't make much sense. Who can tell me what's going on? Thanks in advance.

Code:

cps@zabbix:~$ zabbix_agent --version
Zabbix agent v2.0.2 (revision 29214) (31 July 2012)
Compilation time: Aug 13 2012 14:27:37


eantoranz 03-06-2013 10:11 AM

Ok.... problem was that I had a not-directly-related-to-zabbix file in /etc/zabbix/zabbix_agentd.conf.d/. Moved it out and it's working now.

virussx 03-03-2015 07:00 PM

Quote:

Originally Posted by eantoranz (Post 4906054)
Ok.... problem was that I had a not-directly-related-to-zabbix file in /etc/zabbix/zabbix_agentd.conf.d/. Moved it out and it's working now.

Sorry i kindda have the same problem now, i´m trying out zabbix and the same error pop out.. do u mind telling me waht did u do to solve this problem???

eantoranz 03-03-2015 08:12 PM

You have a file that's not relatad to Zabbix in the configuration directory? Move it out of that directory.

virussx 03-04-2015 09:46 AM

Quote:

Originally Posted by eantoranz (Post 5326539)
You have a file that's not relatad to Zabbix in the configuration directory? Move it out of that directory.

so far i had these files in the directory /etc/zabbix

sdi:/etc/zabbix$ ls -l
total 36
-rw-r--r-- 1 root root 1152 Feb 25 11:30 apache.conf
drwxr-xr-x 2 www-data root 4096 Feb 25 11:46 web
-rw-r--r-- 1 root root 8187 Mar 3 16:28 zabbix_agentd.conf
drwxr-xr-x 2 root root 4096 Feb 25 10:56 zabbix_agentd.d
-rw-r----- 1 root root 13588 Feb 27 10:00 zabbix_server.conf

i checked the Pidfile in /var/run/zabbix and the pid file was created sucessfully, so i dont understand what´s going on?? u mean theres a wrong file??

eantoranz 03-04-2015 04:08 PM

The problem for me was that I had a file not related to zabbix configuration inside /etc/zabbix/zabbix_agentd.conf.d/. My guess is that zabbix goes through all the files in that directory assuming they are all related to zabbix. Chevere? ;-) (yo soy venezolano)


All times are GMT -5. The time now is 12:22 PM.