Hello,
need a little help (I'm new to zabbix).
I have 2 linux hosts.. on one the checks works on the other not.
Host 1:
Ubuntu 20.04.1 LTS
Zabbix-Agent2 5.2.3
php7.4-fpm 7.4.3
Nginx 1.18.0
Host 2:
Ubuntu 18.04.4 LTS
Zabbix-Agent2 5.2.3
php7.2-fpm 7.2.24
apache2 2.4.29
So on Host 1 it failes.. see manual tests:
Zabbix takes the "0" and means, service is down.
But if I use curl directly, the answer is correct:
On Host 2 it works:
And curl says the same:
need a little help (I'm new to zabbix).
I have 2 linux hosts.. on one the checks works on the other not.
Host 1:
Ubuntu 20.04.1 LTS
Zabbix-Agent2 5.2.3
php7.4-fpm 7.4.3
Nginx 1.18.0
Host 2:
Ubuntu 18.04.4 LTS
Zabbix-Agent2 5.2.3
php7.2-fpm 7.2.24
apache2 2.4.29
So on Host 1 it failes.. see manual tests:
Code:
# zabbix_agent2 -t web.page.get["localhost","/ping","80"] web.page.get[localhost,/ping,80] [s|HTTP/1.1 200 OK Connection: close Transfer-Encoding: chunked Cache-Control: no-cache, no-store, must-revalidate, max-age=0 Content-Type: text/plain;charset=UTF-8 Date: Sun, 10 Jan 2021 12:19:34 GMT Expires: Thu, 01 Jan 1970 00:00:00 GMT Server: nginx/1.18.0 (Ubuntu) 4 pong 0]
But if I use curl directly, the answer is correct:
Code:
# curl localhost/ping pong
Code:
# zabbix_agent2 -t web.page.get["localhost","/ping","80"] web.page.get[localhost,/ping,80] [s|HTTP/1.1 200 OK Connection: close Cache-Control: no-cache, no-store, must-revalidate, max-age=0 Content-Type: text/plain Date: Sun, 10 Jan 2021 12:19:24 GMT Expires: Thu, 01 Jan 1970 00:00:00 GMT Server: Apache/2.4.29 (Ubuntu) Vary: Accept-Encoding pong]
Code:
# curl localhost/ping pong
Comment