Install Zabbix on CentOS 7
-
@Sparkum Agents listen on port 10050 and apparently the server listens on port 10051;
so runnning the following on the server:
firewall-cmd --permanent --add-port=10051/tcp
systemctl restart firewalld
Should get the agents connecting properly to the server, I haven't tested it because I have not set any agents to monitor yet in the lab, but from reading the documentation is should work.
-
@Romo
Hmm still no, silly Z doesnt wanna turn green.I assume if I added a linux box I would be up in second.
-
@Sparkum Can you post your dashboard please =). Did you activate the host,
Configuration>hosts>yourhost>enable
? -
Sorry just a screenshot of my dashboard?
Yep, host is enabled.
I'm getting stats from the Zabbix agent, just now windows agent.
-
@Sparkum So its working now, right?
-
I'm going to try this tonight.
-
Zabbix is working, zabbix agent on the server is working, just cant get any communication from windows agent, so not sure if you have any experience with the windows agent or not.
-
@Sparkum said in Install Zabbix on CentOS 7:
Zabbix is working, zabbix agent on the server is working, just cant get any communication from windows agent, so not sure if you have any experience with the windows agent or not.
Have you checked the windows firewall? There's Zabbix is usually blocked by it.
Also, check the zabbix_agentd.conf file on your Windows box and make sure the Server and ServerActive IP addresses are set to your Zabbix Server's ip?
-
Both are set to 192.168.1.167 (which is internal IP of zabbix server)
And I created inbound and outbound rules for 10050 and 10051
-
@Sparkum said in Install Zabbix on CentOS 7:
Both are set to 192.168.1.167 (which is internal IP of zabbix server)
And I created inbound and outbound rules for 10050 and 10051
Got the 10050 and 10051 open on your Zabbix server?
-
Well I did this
firewall-cmd --permanent --add-port=10051/tcp
firewall-cmd --permanent --add-port=10050/tcpSo I assume yes?
How exactly would I check, sorry
-
@Sparkum said in Install Zabbix on CentOS 7:
Well I did this
firewall-cmd --permanent --add-port=10051/tcp
firewall-cmd --permanent --add-port=10050/tcpSo I assume yes?
How exactly would I check, sorry
Did you
firewall-cmd --reload ?
Edit: That's a good question... I'm not sure about how to do that with firewalld.
-
Yep I've reloaded and rebooted.
-
@dafyre said in Install Zabbix on CentOS 7:
@Sparkum said in Install Zabbix on CentOS 7:
Well I did this
firewall-cmd --permanent --add-port=10051/tcp
firewall-cmd --permanent --add-port=10050/tcpSo I assume yes?
How exactly would I check, sorry
Did you
firewall-cmd --reload ?
Edit: That's a good question... I'm not sure about how to do that with firewalld.
sudo firewall-cmd --permanent --list-all
-
sparkum@Zabbix:~$ sudo firewall-cmd --permanent --list-all public (default) interfaces: sources: services: dhcpv6-client ssh ports: 10050/tcp http/tcp 10051/tcp masquerade: no forward-ports: icmp-blocks: rich rules:
-
@Sparkum Your ports are open
-
Anyone have anymore ideas on what I should try to get the windows agent to communicate with my server?
Want any config files?
-
@Sparkum yes post your windows agent config.
-
-
@Sparkum Finally got a windows vm setup and got the agent working.
This are the steps I took to get it working:
Download windows pre-compiled agent:
http://www.zabbix.com/downloads/3.0.0/zabbix_agents_3.0.0.win.zipFrom an elevated cmd promt
I went inside the extracted folders to install the zabbix agent as a service:
zabbix_agents_3.0.0.win\bin\win64\
Executed the following command to install the service and point to the config file:
zabbix_agent_d.exe --config "..\..\conf\zabbix_agentd.win.conf" --install
Now we need to edit the config file to point to our zabbix server:
zabbix_agents_3.0.0.win\conf\zabbix_agentd.win.conf
Modify the following options:
Server=Zabbix Server IP Address ServerActive=Zabbix Server IP Address Hostname= FQDN of windows host
Went back to the bin folder and started the service:
..\zabbix_agents_3.0.0.win\bin\win64\zabbix_agent_d.exe --start
Allow the
zabbix_agentd.exe
executable throught the windows firewall.Add the host to the Zabbix Server
In new host settings add:
# HOST TAB Host name = FQDN of your windows host Groups = Use a preset group or create a new one Agent Interfaces = IP address of Windows Host Enabled = Checked. #Templates Tab Link new templates = Template OS Windows
Save your newly created host and wait for a couple of minutes to get it talking to your server
Its done and reporting =).