marcocaberletti / zabbix-plugins

Zabbix Plugins
7 stars 4 forks source link

Invalid entry "<!DOCTYPE html> #2

Open Zlatokosa opened 8 years ago

Zlatokosa commented 8 years ago

Hello, I am having issues while setting config files on zabbix client, on my CentOS 7.2 system. After I've installed zabbix client with yum, it is positioned in /etc/zabbix directory, with the following folder and files: [root@zabbixdejana zabbix]# ls -al total 40 drwxr-xr-x. 4 root root 88 Apr 10 23:41 . drwxr-xr-x. 83 root root 8192 Aug 11 13:21 .. drwxr-x---. 2 apache apache 54 Apr 11 00:30 web -rw-r--r--. 1 root root 10334 Apr 11 00:07 zabbix_agentd.conf drwxr-xr-x. 2 root root 37 Apr 10 23:41 zabbix_agentd.d -rw-r-----. 1 root zabbix 14885 Apr 11 00:02 zabbix_server.conf

I am having issues and doubts with the following setup related to "Install Script and Add User Parameters" paragraph at your manual:

It seems like zabbix agent is not supposed to read html code?

Please help, I'd really like to monitor my hadoop infrastructure and your template seems the best fit for it.

Thank you.

marcocaberletti commented 8 years ago

Hi. Sorry, the documentation is out of date.

I've the following layout for the /etc/zabbix directory:

zabbix ├── scripts │   ├── hadoop │   │   ├── create-aggr-item.py │   │   └── hadoop-collector.py │   └── iostat │   ├── dev-discovery.sh │   ├── iostat-check.sh │   └── iostat-cron.sh ├── zabbix_agent.conf -> /etc/zabbix_agent.conf └── zabbix_agentd.conf -> /etc/zabbix_agentd.conf

Then, files with user parameters are:

/etc/zabbix_agent.conf.d/ ├── hadoop-params.conf ├── iostat-params.conf

About html error, are you sure you've downloaded the raw version of the file?

Marco

Zlatokosa commented 8 years ago

You were right. I don't have too much experience with the git, so I've downloaded some html version with the wget command. I still don't understand your infrastructure very well. This is infrastructure on my client machine: I've create folder bin.

root@master(/etc/zabbix)$ ll drwxr-xr-x 2 root root 32 Aug 12 04:36 bin -rw-r--r-- 1 root root 10366 Aug 12 05:03 zabbix_agentd.conf drwxr-xr-x 2 root root 62 Aug 12 04:38 zabbix_agentd.d

root@master(/etc/zabbix)$ ll zabbix_agentd.d/ -rw-r--r-- 1 root root 542 Aug 12 04:38 hadoop-params.conf -rw-r--r-- 1 root root 1531 May 23 05:04 userparameter_mysql.conf

It performed restart successfully, but on my Zabbix server dashboard I don't see any data that is received related to the Hadoop template items. Perhaps you can tell me if there is something I've missed? I have Hadoop setup on the zabbix client machine.

Thank you.

marcocaberletti commented 8 years ago

My version of UserParameters uses scripts located in /etc/zabbix/scripts/hadoop/hadoop-collector.py.

If you put the python scripts in another directory, edit hadoop-params.conf with you absolute path and restart zabbix-agent.

Zlatokosa commented 8 years ago

It's clear to me now. I've done as you said. But data is still not received. I've done that on our test servers , where is traffic low, but there is no info about any of the items from the template, except Hadoop Cluster Memory Usage and Hadoop Cluster Processor Load.

marcocaberletti commented 8 years ago

In host configuration, have you added the following macros? NAMENODE_HOST NAMENODE_PORT JOBTRACKER_HOST JOBTRACKER_PORT

Further, you nedd to use iostat template for monitoring disk usage.