0
I have Zabbix server installed in a Ubuntu virtual machine (hyper-visor is VMware Workstation Pro 15). My goal is to monitor a text file containing floating point numbers (the numbers are written in a text file after completion of some simulation). This text file resides on my Windows machine. I have installed Zabbix agent on Windows and I am monitoring resources of my Windows machine successfully from Zabbix front end in browser. But upon adding an item to read log file, the graph does not show anything. I am using Zabbix agent (active) and my key is:
log[c:\Agent\Try.log,,,,skip,,]
Type of information is float. Does any one know that why values aren't getting plotted?
Contents of log file:
7.7
4.8
7.7
5.9
1.3
6.8
Zabbix server's IP address: 192.168.19.128
Windows machine's IP address: 192.168.0.13
Windows agent's configuration file changed parameters:
LogFile=c:\Agent\zabbix_agentd.log
Server=192.168.0.13,127.0.0.1
ServerActive=192.168.0.13,127.0.0.1
Hostname=FQDN from system properties
Yes agent connects to server on default port as I can see CPU usage etc. of Windows machine in front end. Host name matches with FQDN on Windows machine. Error in agent's log is 9392:20190814:132510.203 active check configuration update from [192.168.0.13:10051] started to fail (cannot connect to [[192.168.0.13]:10051]: Connection refused.) – hhj8i – 2019-08-14T08:46:40.037
New values are added periodically – hhj8i – 2019-08-14T08:49:33.113
The error message should help you to fix it. Agent is unable to connect to the server port. Note that FQDN does not matter directly, the value in the agent configuration file does. – Richlv – 2019-08-14T12:21:41.727
What could be the causes of agent being unable to connect to the server port? I have already added inbound and outbound rules in Windows firewall to open port number 10050 and 10051. What else is needed to be done? – hhj8i – 2019-08-14T15:17:09.013
It would be a lot of guesswork to answer that. Incorrect server address in the agent config, incorrect DNS, server not running, local firewall on the server, network firewall, routing issues and other things. You'll have to test connectivity to the TCP port, perhaps with a telnet client, and work on it until that works - nobody can say for sure what is the cause for you. – Richlv – 2019-08-14T19:08:34.647
As I mentioned in my question, Zabbix server is successfully monitoring resources like CPU usage, free disk space, network usage etc. of the Windows machine on which text file is present. So most of the things which you mentioned in your comment aren't the problems here! E.g. if server address was incorrect in agent config, how is Windows machine getting monitored properly? Same goes for incorrect DNS, server not running and routing issues. As far as firewall is considered, my previous comment states that relevant ports have been opened in firewall. Pinging both servers succeeds as well. – hhj8i – 2019-08-17T07:38:20.363
Those working items are of the passive type. – Richlv – 2019-08-18T12:10:21.050