Bug 225956

Summary: net-mgmt/zabbix*-[server|proxy]: Fix fping location
Product: Ports & Packages Reporter: markhamb
Component: Individual Port(s)Assignee: Danilo G. Baio <dbaio>
Status: Closed FIXED    
Severity: Affects Many People CC: dbaio, pg
Priority: --- Flags: dbaio: maintainer-feedback+
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
zabbix-fping.patch pg: maintainer-approval+

Description markhamb 2018-02-16 15:56:53 UTC
On a new install, the zabbix 3.4.5 package is filling logs up with:

zabbix_server[44584]: At least one of '/usr/sbin/fping', '/usr/sbin/fping6' must exist. Both are missing in the system.

The fping package was previously installed, but it puts the binaries in the standard FreeBSD location: /usr/local/sbin/.

I have used the obvious work-around:

ln -s /usr/local/sbin/fping /usr/sbin/fping
Comment 1 pg 2018-02-20 11:58:58 UTC
Please find into zabbix_server.conf.sample the following parameters:

$ grep fping /usr/local/etc/zabbix34/zabbix_server.conf.sample
#       Location of fping.
#       Make sure that fping binary has root ownership and SUID flag set.
# FpingLocation=/usr/local/sbin/fping
#       Location of fping6.
#       Make sure that fping6 binary has root ownership and SUID flag set.
#       Make empty if your fping utility is capable to process IPv6 addresses.
# Fping6Location=/usr/local/sbin/fping6
Comment 2 Danilo G. Baio freebsd_committer 2018-02-22 13:53:28 UTC
Created attachment 190895 [details]
zabbix-fping.patch

Humm, the ports are patching fping location only in the config file, so the default location is wrong.

The attached patch fixes this.
Comment 3 commit-hook freebsd_committer 2018-02-22 17:09:19 UTC
A commit references this bug:

Author: dbaio
Date: Thu Feb 22 17:08:47 UTC 2018
New revision: 462615
URL: https://svnweb.freebsd.org/changeset/ports/462615

Log:
  net-mgmt/zabbix*: Fix fping location

  Zabbix ports were patching fping location only in the config file,
  so the default location of fping was wrong.

  PR:		225956
  Reported by:	markham_breitbach@ssimicro.com
  Approved by:	Pakhom Golynga <pg@pakhom.spb.ru> (maintainer)

Changes:
  head/net-mgmt/zabbix2-server/Makefile
  head/net-mgmt/zabbix22-server/Makefile
  head/net-mgmt/zabbix3-server/Makefile
  head/net-mgmt/zabbix32-server/Makefile
  head/net-mgmt/zabbix34-server/Makefile
Comment 4 Danilo G. Baio freebsd_committer 2018-02-22 17:14:34 UTC
Committed, thanks!