Commit Graph

63 Commits

Author SHA1 Message Date
Tony Ambardar 3cf17ad130 zabbix: zabbix_helper_mac80211.c: use POSIX <libgen.h> header
The musl libc only implements POSIX basename() but provided a GNU header
kludge in <string.h>, which was removed in musl 1.2.5 [1]. Use the standard
<libgen.h> header to avoid compilation warnings like:

zabbix-6.4.7/zabbix-extra-mac80211/zabbix_helper_mac80211.c:37:11: warning:
 implicit declaration of function 'basename' [-Wimplicit-function-declaration]
   37 |     phy = basename(phy);
      |           ^~~~~~~~
zabbix-6.4.7/zabbix-extra-mac80211/zabbix_helper_mac80211.c:37:9: warning:
 assignment to 'char *' from 'int' makes pointer from integer without a cast
 [-Wint-conversion]
   37 |     phy = basename(phy);
      |         ^
zabbix-6.4.7/zabbix-extra-mac80211/zabbix_helper_mac80211.c:38:10: warning:
 assignment to 'char *' from 'int' makes pointer from integer without a cast
 [-Wint-conversion]
   38 |     stat = basename(stat);
      |          ^

Link 1: https://git.musl-libc.org/cgit/musl/log/?qt=grep&q=basename

Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
2024-03-06 05:44:46 -08:00
Florian Eckert 4f9ced5cf9 zabbix: update to version 6.4.7
Switch to current stable version 6.4.7.
See release notes:
https://www.zabbix.com/rn/rn6.4.7

So that the new version builds cleanly. The 'libevent2-pthreads' must be
added as dependency.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2023-10-31 11:57:20 +01:00
Christian Marangi 3dfb00c6c6
zabbix: move to PCRE2 library
Move to PCRE2 library as PCRE is not EOL and won't receive any security
updates anymore.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2023-10-29 15:45:45 +01:00
Jeffery To c196aac4b1
zabbix: Add "oldstable" source URL
Zabbix moved the 6.2 directory from "stable" into "oldstable". This adds
the "oldstable" URL to PKG_SOURCE_URL.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-06-02 21:51:57 +08:00
Florian Eckert 3c11092560 zabbix: add sqlite3 support
This change makes it possible to build zabbix with sqlite3 support.

Attention:
By selecting "SQLite" as "Database Software" you are not able
to build the zabbix-server and zabbix-server-frontend package anymore.
This database is not supported for this service.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2022-10-17 13:50:42 +02:00
Scott Roberts cd48d03f01 zabbix: add variants for SSL support
opkg does not offer ssl varients:
zabbix-agentd
zabbix-sender
zabbix-get
zabbix-proxy
zabbix-server

resolve this by adding ssl varients.

Signed-off-by: Scott Roberts <ttocsr@gmail.com>
2022-10-06 06:44:03 -06:00
Scott Roberts 475d1cc0e9 zabbix: update to 6.2.3
Refreshed patches.

Signed-off-by: Scott Roberts <ttocsr@gmail.com>
2022-09-26 09:41:21 -06:00
Florian Eckert 672a655d6b zabbix: add fping dependency
If fping is not installed on the system the following message is show if
hosts should be monitored via icmp.

Log-Message:
"At least one of '/usr/sbin/fping', '/usr/sbin/fping6' must exist. Both
are missing in the system."

To fix this also, add a dependency to 'fping' for 'zabbix-server' and
'zabbix-proxy' for installation to allow icmp hosts monitoring.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2022-08-03 09:40:59 +02:00
Sergey V. Lobanov 2d680d787f zabbix: update to 5.0.18
Updated to latest 5.0 LTS minor release

Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
2021-12-21 21:38:54 +01:00
Jacek Konieczny 30007d3804 zabbix: fix 6in4 network interface discovery
Those devices don't have 'device' propery, only 'l3_device', which
causes 'attempt to concatenate field 'device' (a nil value)' lua error.

Use 'l3_device' as a fallback in this case.

Signed-off-by: Jacek Konieczny <jajcus@jajcus.net>
2021-11-21 11:00:53 -05:00
Michael Heimpold ceb4c2b2df zabbix: switch dependencies to php8
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2021-10-05 23:19:09 +02:00
Jan Baier 641f75d98a zabbix: Call killall with the -s
Some versions of killall do support the `killall -SIGNAL` syntax and
have only `-s SIGNAL` which should be supported everywhere.

I see the problem with *killall (PSmisc) 23.3* on latest TurrisOS 5.2

Signed-off-by: Jan Baier <jan.baier@amagical.net>
2021-08-18 10:37:40 -04:00
Rosen Penev 0ce5d5e203 zabbix: update to 5.0.7
Remove pointless uClibc-ng dependency as it's gone now.

Refreshed patches.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-01-17 15:08:28 -08:00
Rosen Penev 889676ecc7
zabbix: do not build with uClibc-ng
It's missing functionality necessary for zabbix.

Remove now pointless patch.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-08-13 21:41:33 -07:00
Scott Roberts 9694ae7afa zabbix: update to 5.0 LTS
Updated to 5.0 LTS version.

Removed 120-uclibc-res.patch
Frontend moved from frontend to ui
zabbix-proxy added libevent dependencie
refresh patches

Compile tested: aarch64 cortex-a53
Run tested: aarch64 cortex-a53

Signed-off-by: Scott Roberts <ttocsr@gmail.com>
2020-06-19 07:55:35 -06:00
Rosen Penev f846ced1c8
zabbix: remove configure patch
Allows removing autoreconf.

Added PKG_BUILD_PARALLEL for faster compilation.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-02-06 12:44:24 -08:00
Rosen Penev 8bc32479ea
zabbix: Fix compilation with uClibc-ng
This is similar to a patch that was previously carried.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-12-30 16:37:36 -08:00
Krystian Kozak e6303c0290 zabbix: update to 4.0.16
Updated to 4.0.16 LTS version.

Compile tested: Yes, x86_64
Run tested: Yes, x86_64

Signed-off-by: Krystian Kozak <krystian.kozak20@gmail.com>
2019-12-27 00:38:40 +01:00
Leong Hui Wong a6f1ff5a85 treewide: update wiki links
Signed-off-by: Leong Hui Wong <wong.leonghui@gmail.com>
2019-11-29 09:16:02 +08:00
Krystian Kozak 64c9295c34 zabbix: update to 4.0.11
Updated to 4.0.11 LTS version.

Deleted 003-change-user-and-foreground.patch in according to [ZBX-10611] fixed changing process user owner on startup in foreground when AllowRoot disabled.

Compile tested: Yes, lantiq
Run tested: Yes, lantiq

Signed-off-by: Krystian Kozak <krystian.kozak20@gmail.com>
2019-08-20 17:04:22 +02:00
Eneas U de Queiroz 2593eabd6b treewide: Capitalize submenus
Fixed a typo in tcpreplay.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2019-07-25 09:35:40 +08:00
Rosen Penev 7f852fc1aa
zabbix: Specify zlib location to fix buildbots
The buildbots do not have zlib installed and therefore cannot build zabbix

checking for zlib support... no
configure: error: Unable to use zlib (zlib check failed)

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-04-10 15:12:12 -07:00
Josef Schlehofer 5e166b3c63
zabbix: update to version 4.0.6
Refreshed patches

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2019-03-29 20:50:25 +01:00
Krystian Kozak 9aa9107772 zabbix: update to 4.0.3
Updated to 4.0.3 LTS version.

Compile tested: Yes, ar71xx
Run tested: Yes, ar71xx

Signed-off-by: Krystian Kozak <krystian.kozak20@gmail.com>
2019-01-08 09:09:11 +01:00
Krystian Kozak 23c7d6a6d5 zabbix: update to 4.0 LTS
Updated to 4.0 LTS version.

Compile tested: Yes, brcm2708
Run tested: Yes, brcm2708

Signed-off-by: Krystian Kozak <krystian.kozak20@gmail.com>
2018-12-03 18:49:35 +01:00
Krystian Kozak 18ce68a7cc zabbix: add server frontend
Added zabbix-server-frontend package, which allow to use website
interface.

To make frontend working, it is required to add some options to uhttpd
config witch allow php working.

uci add_list uhttpd.main.index_page='index.html, default.html,
index.php'
uci add_list uhttpd.main.interpreter='.php=/usr/bin/php-cgi'
uci set uhttpd.main.index_file='index.html, default.html, index.php'
uci commit

Compile tested: Yes, brcm2708
Run tested: Yes, brcm2708

Signed-off-by: Krystian Kozak <krystian.kozak20@gmail.com>
2018-10-29 21:13:08 +01:00
Krystian Kozak cee4353f15 zabbix: add mysql support
Allows to choose database management software and adds mysql support.
Proxy gets the same database management software as server, because it
must be the same type.

Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
[Keep postgresl as default / depend on libpq]
Signed-off-by: Krystian Kozak <krystian.kozak20@gmail.com>
2018-10-23 19:55:22 -04:00
Etienne Champetier 5d1aa99648 zabbix: use ubus for zabbix-extra-network
this allow us to stop using uci /var/state,
which is deprecated since forever

Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
2018-10-23 19:26:38 -04:00
Etienne Champetier 2df5d52b9e zabbix: fixup zabbix-extra-wifi dependencies
we use ubus since 2014 (af1fe70acb)
we don't use uci since 2015 (76150309a8)

Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
2018-10-23 18:59:39 -04:00
Etienne Champetier 1afcc61601 zabbix: add proper ubus acl for zabbix-extra-wifi
This allow to run zabbix as non root
Thanks to Adrian Kirchner (@adriankirchner)

Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
2018-10-23 11:14:51 -04:00
Oskari Lemmela dda7a55418 zabbix: Add SSL support for zabbix-agentd.
This fixes #5675.

[Etienne Champetier <champetier.etienne@gmail.com>]
zabbix --with-mbedtls configuration option is sadly for libpolarssl
Attemp at support for mbedtls 2.1+:
https://support.zabbix.com/browse/ZBX-13237
As OpenSSL / GnuTLS are pretty big dependencies, default to no ssl for now

Signed-off-by: Oskari Lemmela <oskari@lemmela.net>
2018-10-01 00:15:11 -04:00
Etienne Champetier caaa7d6c9b zabbix: add PKG_CPE_ID
thanks @neheb (#6814)

Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
2018-09-30 21:28:59 -04:00
Krystian Kozak 41f8c0a2da zabbix: update to latest version
Updated to latest version and refreshed patches.

Compile tested: Yes, brcm2708
Run tested: Yes, brcm2708

Signed-off-by: Krystian Kozak <krystian.kozak20@gmail.com>
2018-09-30 21:13:43 -04:00
Krystian Kozak b211914fd0 zabbix: Bump to latest version
This upgrade zabbix to the newest version. Changing SQLite for PostgreSQL, because of dropping SQLite support for server/frontend.
More info:https://www.zabbix.com/documentation/3.4/manual/installation/upgrade_notes_340#dropping_sqlite_support_for_serverfrontend
In addition added required dependencies.
More info:https://www.zabbix.com/documentation/3.4/manual/installation/requirements

Compile tested: Yes, brcm2708
Run tested: Yes, brcm2708

Signed-off-by: Krystian Kozak <krystian.kozak20@gmail.com>
2018-06-07 14:46:33 +02:00
Alexander Couzens 8d4814c26d
zabbix: remove build timestamp
Build timestamp prevents reproducible builds [0].

[0] https://reproducible-builds.org/docs/timestamps/

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
2017-12-06 22:08:12 +01:00
Etienne Champetier bd4fd07f1b zabbix: update to 3.2.7
https://www.zabbix.com/rn3.2.7

Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
2017-08-13 14:51:46 -07:00
Etienne Champetier dbab191dce zabbix: update to 3.2.6
Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
2017-07-08 11:56:26 -07:00
Etienne Champetier 547f30b468 zabbix: partially fix zabbix-extra-mac80211
In kernel commit f1160434c7658af3f7b0926b88df49a66cb3c3e0 many stats
that we read with zabbix-extra-mac80211 have been renamed
One commit after (c206ca670974cefec7ac3732db5c8156e8081a8d) those renamed
stats have been hidden behind MAC80211_DEBUG_COUNTERS compile flag

For now you have to edit mac80211 Makefile / do a custom build to access
most of these stats

Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
2017-07-08 08:30:14 -07:00
Etienne CHAMPETIER 9b55b020a3 zabbix: update to 3.2.4, use PKG_HASH
Signed-off-by: Etienne CHAMPETIER <champetier.etienne@gmail.com>
2017-03-04 09:32:28 -08:00
Etienne CHAMPETIER 18e9f6e1d0 zabbix: update to 3.0.3
Signed-off-by: Etienne CHAMPETIER <champetier.etienne@gmail.com>
2016-06-28 23:07:05 +00:00
Etienne CHAMPETIER fe88e0447a zabbix: update to zabbix 3.0.1
zabbix-agent doesn't exist anymore since 3.0

'-f' option (foreground) is now in zabbix-agentd

003-change-user-and-foreground.patch fixes pending
issue https://support.zabbix.com/browse/ZBX-10611

you might need to update your config file to add
LogType=system

Signed-off-by: Etienne CHAMPETIER <champetier.etienne@gmail.com>
2016-04-09 17:24:17 +00:00
Stefan Weil cce7d58269 admin/zabbix: Fix typos (found by codespell)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2016-03-27 11:57:33 +02:00
Etienne CHAMPETIER 8dfc434b3c zabbix: add missing dependency on libiconv ($(ICONV_DEPENDS))
this fixes #2507
thanks @gilfrade and @Noltari

Signed-off-by: Etienne CHAMPETIER <champetier.etienne@gmail.com>
2016-03-22 21:47:46 +00:00
Etienne CHAMPETIER 41a8f2d63b zabbix: enable IPv6 support
compile tested on trunk, run tested on CC (ar71xx)

size before:
 96757 zabbix-agentd_2.4.6-1_ar71xx.ipk
 29180 zabbix-get_2.4.6-1_ar71xx.ipk
258979 zabbix-proxy_2.4.6-1_ar71xx.ipk
 35121 zabbix-sender_2.4.6-1_ar71xx.ipk
282885 zabbix-server_2.4.6-1_ar71xx.ipk

size after:
 97359 zabbix-agentd_2.4.6-2_ar71xx.ipk
 29841 zabbix-get_2.4.6-2_ar71xx.ipk
259948 zabbix-proxy_2.4.6-2_ar71xx.ipk
 35801 zabbix-sender_2.4.6-2_ar71xx.ipk
284019 zabbix-server_2.4.6-2_ar71xx.ipk

original PR by Thomas Bahn <thomas-bahn@gmx.net>

Signed-off-by: Etienne CHAMPETIER <champetier.etienne@gmail.com>
2015-10-19 22:24:44 +00:00
Etienne CHAMPETIER 03b5af288e zabbix: update to 2.4.6 (and refresh patches)
Signed-off-by: Etienne CHAMPETIER <champetier.etienne@gmail.com>
2015-08-23 21:56:05 +00:00
Etienne CHAMPETIER 70a741cb33 zabbix: increase PKG_RELEASE
Signed-off-by: Etienne CHAMPETIER <champetier.etienne@gmail.com>
2015-07-11 00:28:17 +02:00
Etienne CHAMPETIER f58e0a6407 zabbix: switch zabbix_agentd to procd
run tested on ar71xx

Signed-off-by: Etienne CHAMPETIER <champetier.etienne@gmail.com>
2015-07-11 00:26:30 +02:00
Etienne CHAMPETIER e3576f3d0f zabbix: add option to run daemon in foreground
this will allow us to switch to procd and use jailing ...
this patch come from https://support.zabbix.com/browse/ZBXNEXT-611
big thanks to Boris Manojlovic

Signed-off-by: Etienne CHAMPETIER <champetier.etienne@gmail.com>
2015-07-10 22:22:56 +02:00
Jo-Philipp Wich c3f0347649 zabbix: fix musl compatibility
Under musl a compilation unit cannot include both linux/kernel.h
and sys/sysinfo.h at the same time since that leads to a redefinition
of `struct sysinfo`.

Change the autoconf template to include linux/kernel.h while testing
for sys/sysinfo.h to test for that conflict.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-06-17 19:13:44 +02:00
Etienne CHAMPETIER ea28ae05dc zabbix: update to 2.4.5
run tested on ar71xx

Signed-off-by: Etienne CHAMPETIER <champetier.etienne@gmail.com>
2015-05-27 08:10:02 +02:00