Answer the question
In order to leave comments, you need to log in
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"
Answer the question
In order to leave comments, you need to log in
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 :)
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 questionAsk a Question
731 491 924 answers to any question