I've been trying to troubleshoot this for hours but running out of ideas.
In a nutshell: net.tcp.service[ssh,,2020] is always returning 0. The service is running on port 2020 and using zabbix_get or zabbix_agent manually on the host both return 1 for the same command.
Anyone any ideas?
Everything works fine on all but 2 of my hosts and it is driving me nuts.
The long story:
I am using the following item to monitor SSH and then setting the user macro {$SSH_PORT} globally as 22 and at host level depending on the server:
The trigger is the standard trigger from the shipped template:
I have confirmed the {$SSH_PORT} macro is working correctly as I can see this set correctly (port 2020) in latest data details:
I can even run zabbix_get command as follows and this returns 1 as expected:
And manually running zabbix_agentd with the same command:
Zabix 3.2 on both Agent and Server.
Edit: This happens across 2 hosts on CentOS 6 and CentOS 7 with a CentOS 7 server. SELinux is disabled on clients. SSH is bound to 0.0.0.0:2020
In a nutshell: net.tcp.service[ssh,,2020] is always returning 0. The service is running on port 2020 and using zabbix_get or zabbix_agent manually on the host both return 1 for the same command.
Anyone any ideas?
Everything works fine on all but 2 of my hosts and it is driving me nuts.
The long story:
I am using the following item to monitor SSH and then setting the user macro {$SSH_PORT} globally as 22 and at host level depending on the server:
Code:
net.tcp.service[ssh,,{$SSH_PORT}]
Code:
{Template App SSH Service:net.tcp.service[ssh,,{$SSH_PORT}].max(#3)}=0
Code:
net.tcp.service[ssh,,2020]
Code:
# zabbix_get -s 127.0.0.1 -k "net.tcp.service[ssh,,2020]" --tls-connect=psk --tls-psk-identity="PSK ID 1" --tls-psk-file=/etc/zabbix/zabbix_agentd.psk 1
Code:
# sudo -u zabbix /usr/sbin/zabbix_agentd -t net.tcp.service[ssh,,2020] net.tcp.service[ssh,,2020] [u|1]
Edit: This happens across 2 hosts on CentOS 6 and CentOS 7 with a CentOS 7 server. SELinux is disabled on clients. SSH is bound to 0.0.0.0:2020
Comment