Hello,
I know, there is a lot of topic with fping problems, but all I have to read has not helped me.
For begining, my configuration :
zabbix 3.4.2
debian 9.1
fping: Version 3.15
fping => /usr/bin/fping
fping6 => /usr/bin/fping6
zabbix_server.conf :
- FpingLocation=/usr/bin/fping
- Fping6Location=/usr/bin/fping6
ls -l /usr/bin/fping*
-rws--x--- 1 root zabbix 39232 Jan 11 2017 fping
-rws--x--- 1 root zabbix 39232 Jan 11 2017 fping6
My Problem :
I have a lot of servers supervised, with good fping supervision. But, for few servers, I have this error : "fping6 failed: /usr/bin/fping6: can't create socket (must run as root?) : Permission denied"
If I comment Fping6Location in zabbix_server.conf for force use fping and not fping6, I have this error : "fping failed: /usr/bin/fping: can't create socket (must run as root?) : Permission denied"
If I want run this command "su zabbix -c /usr/bin/fping 8.8.8.8", there is no response.
If I connect with zabbix user "su - zabbix", and I run this command "fping 8.8.8.8", I have this response : 8.8.8.8 is alive
So I can deduce the chown and chmod are OK.
My questions :
Why is fping6 used for server with ipv4, and not fping ?
Why I have the error "fping failed: /usr/bin/fping: can't create socket (must run as root?) : Permission denied" while chmod and chown are good ?
Why I can't pass "su zabbix -c /usr/bin/fping 8.8.8.8", while I can passe "fping 8.8.8.8" when I'm connected with zabbix user ?
I know there is a lot of questions, but I realy need your help.
Thanks,
I know, there is a lot of topic with fping problems, but all I have to read has not helped me.
For begining, my configuration :
zabbix 3.4.2
debian 9.1
fping: Version 3.15
fping => /usr/bin/fping
fping6 => /usr/bin/fping6
zabbix_server.conf :
- FpingLocation=/usr/bin/fping
- Fping6Location=/usr/bin/fping6
ls -l /usr/bin/fping*
-rws--x--- 1 root zabbix 39232 Jan 11 2017 fping
-rws--x--- 1 root zabbix 39232 Jan 11 2017 fping6
My Problem :
I have a lot of servers supervised, with good fping supervision. But, for few servers, I have this error : "fping6 failed: /usr/bin/fping6: can't create socket (must run as root?) : Permission denied"
If I comment Fping6Location in zabbix_server.conf for force use fping and not fping6, I have this error : "fping failed: /usr/bin/fping: can't create socket (must run as root?) : Permission denied"
If I want run this command "su zabbix -c /usr/bin/fping 8.8.8.8", there is no response.
If I connect with zabbix user "su - zabbix", and I run this command "fping 8.8.8.8", I have this response : 8.8.8.8 is alive
So I can deduce the chown and chmod are OK.
My questions :
Why is fping6 used for server with ipv4, and not fping ?
Why I have the error "fping failed: /usr/bin/fping: can't create socket (must run as root?) : Permission denied" while chmod and chown are good ?
Why I can't pass "su zabbix -c /usr/bin/fping 8.8.8.8", while I can passe "fping 8.8.8.8" when I'm connected with zabbix user ?
I know there is a lot of questions, but I realy need your help.
Thanks,
Comment