monitor td-agent using zabbix

585 views
Skip to first unread message

sourav...@avekshaa.com

unread,
Dec 3, 2015, 5:33:57 AM12/3/15
to Fluentd Google Group
i wanted to monitor td-agent using zabbix. I found plug-in on the internet, but i am unable to configure the td-agent.conf file.
what i did was i install the following plug-in "fluent-plugin-zabbix-agent".
I used the following command :

sudo /usr/sbin/td-agent-gem uninstall fluent-plugin-zabbix-agent.

and i get the following output  :  

WARN: Unresolved specs during Gem::Specification.reset:
      json (>= 1.4.3)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.
Fetching: fluent-plugin-zabbix-agent-0.2.0.gem (100%)
Successfully installed fluent-plugin-zabbix-agent-0.2.0
Parsing documentation for fluent-plugin-zabbix-agent-0.2.0
Installing ri documentation for fluent-plugin-zabbix-agent-0.2.0
Done installing documentation for fluent-plugin-zabbix-agent after 0 seconds
1 gem installed

Now i changed the configuration file of td-agent :
added following tag
<source>
  type monitor_agent
  bind 0.0.0.0
  port 24220
</source>

 and then check the output with
curl http://localhost:24220/api/plugins.json
i get the output as :
{"plugins":[{"plugin_id":"object:3fec669d6ac4","type":"forward","output_plugin":false,"config":{"type":"forward"}},{"plugin_id":"object:3fec669daf98","type":"http","output_plugin":false,"config":{"type":"http","port":"8888"}},{"plugin_id":"object:3fec669dfa48","type":"monitor_agent","output_plugin":false,"config":{"type":"monitor_agent","port":"24220"}},{"plugin_id":"object:3fec66a52e94","type":"debug_agent","output_plugin":false,"config":{"type":"debug_agent","port":"24230"}},{"plugin_id":"object:3fec66ae3dcc","type":"stdout","output_plugin":true,"config":{"type":"stdout"}},{"plugin_id":"object:3fec66aead48","type":"forward","output_plugin":true,"buffer_queue_length":0,"buffer_total_queued_size":0,"retry_count":0,"config":{"type":"forward","host":"192.168.0.11"}}]}%

now i change the bind value in the source tag with my zabbix server ip address and port number with zabbix port number. Then i run the following command

curl http://192.168.0.209:10051/api/plugins.json
output :  curl: (52) Empty reply from server

After installing plug-in what we are suppose to do. Please tell me the steps to do.




Mr. Fiber

unread,
Dec 3, 2015, 5:51:14 AM12/3/15
to Fluentd Google Group
You run uninstall command but your result seems to be installed command.
Which is the correct?
Your configuration doesn't include zabbix-agent plugin configuration so
you don't use zabbix-agent, right?

> now i change the bind value in the source tag with my zabbix server ip address and port number with zabbix port number.Then i run the following command 
>  http://192.168.0.209:10051/api/plugins.json

What does this sentence mean?
You launch fluentd's monitor_agent server and zabbix server at the same port?
How to share the port between fluentd and zabbix?


Masahiro


--
You received this message because you are subscribed to the Google Groups "Fluentd Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fluentd+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

sourav...@avekshaa.com

unread,
Dec 3, 2015, 11:46:46 PM12/3/15
to Fluentd Google Group


Sorry, for the wrong post please consider uninstall as install command. Because i tried installing zabbix plug-in two three times.




What does this sentence mean?
You launch fluentd's monitor_agent server and zabbix server at the same port?
How to share the port between fluentd and zabbix?

-> I found this part in its site


<source>
  type monitor_agent
  bind 0.0.0.0
  port 24220
</source>


so i thought bind value is supposed to be replaced with my zabbix server ip address and port is replaced with zabbix port.

Mr. Fiber

unread,
Dec 4, 2015, 9:08:07 AM12/4/15
to Fluentd Google Group
so i thought bind value is supposed to be replaced with my zabbix server ip address and port is replaced with zabbix port.

It means you want to use fluentd instead of zabbix?
I assume you want to collect fluentd's buffer information and send it to zabbix server.


--

Sourav Suman

unread,
Dec 4, 2015, 9:34:48 AM12/4/15
to flu...@googlegroups.com

Yes, I want the  fluentd buffer information and then send it to zabbix. Can you tell me what steps am I suppose to do.

You received this message because you are subscribed to a topic in the Google Groups "Fluentd Google Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/fluentd/EPlMvozDHkQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to fluentd+u...@googlegroups.com.

Mr. Fiber

unread,
Dec 7, 2015, 3:53:38 AM12/7/15
to Fluentd Google Group
I'm not sure which is the best.
I heard one user uses external check feature with simple script which gets json result from monitor_agent


Or you can use tag feature with in_monitor_agent and send these events to zabbix by using plugins.
This is available since v0.12.17.


Reply all
Reply to author
Forward
0 new messages