A
A
abc xyz2014-07-18 19:44:22
linux
abc xyz, 2014-07-18 19:44:22

Zabbix - how to set up file content monitoring?

Hey!
I didn’t have to use Zabbix before, they set me the task of setting up monitoring of file content changes. There is a file containing a number that is constantly changing. It is necessary to display this in the form of a graph through zabbix.
My actions:
- I create a host and a group for it. I specify the IP of the server on which the zabbix agent is located and the file itself that needs to be monitored is stored. After creating the node, zabbix successfully connects to the agent and the green light is on, everything is ok.
- I create a data element. On Habré I found an article about setting up CPU temperature monitoring. I decided to do it by analogy:
1) In the configuration file of the zabbix agent, I added the line

UserParameter=count[*], "cat /home/user/file.log"

2) In the Zabbix web interface I add a data element: Type - Zabbix agent, Key: UserParameter=count[0], Data type: numeric (decimal).
And, in fact, after the item is created, its status becomes Not supported (Zabbix agent not support).
What could be the matter, how to fix it, and am I working in the right direction at all? Tell me please.
Thank you!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
abc xyz, 2014-07-19
@Philippov

The morning is wiser than the evening. Instead of UserParameter, I used the built-in key vfs.file.contents and the problem was solved by itself :)

P
Puma Thailand, 2014-07-18
@opium

it is logical to go into the agent and server logs and find out the answer

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question