Hello, I wanted to consult you about a problem that I am having with the hosts that I am adding to the Zabbix, after installing the agent and adding the templates. The agent configuration is the same as on old occasions but for some reason it is not correct, it tells me that the host is unreachable and when I go to the hosts section it does not mark the ZBX option as available as if it does with the rest. It is worth narrowing that I mean local host behind a zabbix proxy. Do you have any idea what might be going on? Thank you
Ad Widget
Collapse
Zabbix Agent unreachable
Collapse
X
-
If you have the new hosts in different network segments there might not be a route to the appropriate hosts.
And double check your zabbix_agentd.conf for entries in "Server" and "ServerActive" - zabbix server - if multiple network interfaces there - could probably send from a different ip with your host and hence not accepted by the destination host(s). Further:- On the zabbix server try:
Code:telnet monitoredhost 10050
- On the monitored host try:
Code:telnet zabbixserver 10051
- Test agent on monitored machine (show all known items):
Code:zabbix_agentd -p
Code:zabbix_agentd -t system.hostname
- From server to remote agent:
Code:zabbix_get -s monitoredhost -k agent.hostname
- On the zabbix server try:
-
Hi,
Thank you for your answer, here is what I've got, I don't know if I've done it right because don't have much knowledge about Zabbix really:
1.On the zabbix server (my zabbix proxy) try:
Code: telnet monitoreshost (my monitored host IP) 10051
Result: Trying 192.168.75.61...
Connected to 192.168.75.61.
Escape character is '^]'.
Connection closed by foreign host.
2.On the monitored host try:
Code: telnet zabbixserver (my zabbix proxy IP) 10051
Result: Successful connection
3.Test agent on monitored machine
Code: zabbix_agentd -p
Result: C:\Program Files\Zabbix Agent>zabbix_agentd -p
agent.hostname [s|ALEVM]
agent.ping [u|1]
agent.version [s|3.4.7]
system.localtime[utc] [u|1617726021]
system.run[echo test] [m|ZBX_NOTSUPPORTED] [Remote commands are not enabled.]
web.page.get[localhost,,80] [t|HTTP/1.1 200 OK
Content-Type: text/html
Last-Modified: Tue, 29 Oct 2019 14:59:11 GMT
Accept-Ranges: bytes
ETag: "8061e36b698ed51:0"
Server: Microsoft-IIS/10.0
X-Powered-By: ASP.NET
Date: Tue, 06 Apr 2021 16:20:22 GMT
Connection: close
Content-Length: 703...
... and so on
4.From server (my zabbix proxy) to remote agent:
Code: zabbix_get -s monitoredhost(my monitored host IP) -k agent.hostname (my monitored host DNS name)
Command 'zabbix_get' not found, but can be installed with:
Result: apt install zabbix-proxy-mysql
apt install zabbix-proxy-pgsql
apt install zabbix-proxy-sqlite3
apt install zabbix-server-mysql
apt install zabbix-server-pgsql
thanks in advance.
RegardsComment
-
1. - 2. is ok - so server can connect to monitored host by network and vice versa.
3. is ok - Agent is working on the monitored host.
4. Not sure if this should work, but try the 4. from the main server (not from the proxy).
And 4a) maybe you can copy just the zabbix_get executable from main server to proxy and then test from the proxy.Comment
-
Hello, yes, it is monitored by Zabbix Proxy as you can see in the attachment. On the other hand I should install the zabbix_get to make possible the testing but I wanted to know if I would have to take anything into account before doing so, because I see that it tells me that it is installed by running any of the following commands: apt install zabbix-proxy-mysql
apt install zabbix-proxy-pgsql
apt install zabbix-proxy-sqlite3
apt install zabbix-server-mysql
apt install zabbix-server-pgsql .
Which should I use in my zabbix proxy in this case? will affect anything you already have installed? thanks
Best regards
Comment
-
Hello, I have looked at my windows host and the zabbix_get comes bundled within the zabbix-agent package, however, on my zabbix proxy or on hosts monitored with ubuntu don't, even though they have the zabbix-agent and the zabbix_sender, how could I add the zabbix_get in this case? thank you.Comment
-
But this is a totally different issue and does not have anything to do with zabbix. Your problem is, that a package manager - such as aptitude or the graphical synaptic or the gnome-software manager - is open and blocking the access to the package manager. Close it and you can proceed with your install.Comment
Comment