Hi
I have a zabbix agent item:
The result is "1" as expected.
Let's simulate failure. I've changed port number to 81 which is closed:
So because port 81 is closed I supposed to get result "0", right?
Instead of returning "0", zabbix agent is waiting for result of port checking and because the port is closed it doesn't get any result and hit timeout. When zabbix agent hit timeout then zabbix server makes whole host as unavailable and stops further processing:
So please somebody explain me how to make this item to work as expected? Am I missing something obvious?
How to make it return "1" when TCP port is open and "0" when it's closed?
I have a zabbix agent item:
Code:
net.tcp.port[173.194.70.138,80]
Let's simulate failure. I've changed port number to 81 which is closed:
Code:
net.tcp.port[173.194.70.138,81]
Instead of returning "0", zabbix agent is waiting for result of port checking and because the port is closed it doesn't get any result and hit timeout. When zabbix agent hit timeout then zabbix server makes whole host as unavailable and stops further processing:
Code:
1007:20140203:003358.475 Zabbix agent item "net.tcp.port[173.194.70.138,81]" on host "host" failed: first network error, wait for 15 seconds 1010:20140203:003443.823 temporarily disabling Zabbix agent checks on host "host": host unavailable
How to make it return "1" when TCP port is open and "0" when it's closed?