- update to 6.0.33
- New Features and Improvements + ZBXNEXT-9000 Changed query table for ASM disk group metrics in Oracle Database plugin and Oracle by ODBC template Agent Templates + ZBXNEXT-9217 Added AWS Lambda by HTTP template Templates + ZBXNEXT-9293 Updated max supported MySQL version to 9.0 Proxy Server + ZBXNEXT-8657 Updated Zabbix health templates with new visualization Templates + ZBXNEXT-9143 Added index on auditlog recordsetid Server + ZBXNEXT-9081 Added Small Computer System Interface (SCSI) device type support to Zabbix agent 2 Smart plugin Agent + ZBXNEXT-6445 Added recovery expression for fuzzytime triggers in Linux and Windows templates, removed fuzzytime triggers from active agent templates Templates + ZBXNEXT-9201 Updated max supported MySQL version to 8.4 Proxy Server + ZBXNEXT-9225 Updated max supported TimescaleDB version to 2.15 Server + ZBXNEXT-9226 Updated max supported MariaDB version to 11.4 Proxy Server + ZBXNEXT-8868 Added discovery and template for Azure VM Scale Sets Templates - Bug Fixes + BX-24947 Fixed PHP runtime errors while processing frontend notifications Frontend + ZBX-24824 Improved loadable plugin connection broker Agent + ZBX-24583 Fixed inability to export/import web scenario with digest authentication API + ZBX-23905 Fixed double scroll in script dialogs Frontend + ZBX-18767 Fixed word breaks in flexible text input fields and trigger expressions Frontend + ZBX-24909 Fixed resolving of macro functions in the "Item value" widget Frontend + ZBX-24859 Fixed JavaScript in S3 buckets discovery rule Templates + ZBX-24617 Fixed hardcoded region in AWS by HTTP template Templates + ZBX-24524 Fixed "New values per second" statistic to include dependent items in calculation Proxy Server + ZBX-24821 Made 'execute_on' value being recorded in audit only for shell scripts Server + ZBX-23312 Fixed discovery edit form being saved incorrectly after dcheck update Frontend + ZBX-24773 Fixed duplicate item preprocessing in Kubernetes Kubelet by HTTP template Templates + ZBX-24514 Fixed standalone Zabbix server and Zabbix proxy not stopping when database is read-only Proxy Server + ZBX-23936 Fixed state and styling of readonly fields Frontend + ZBX-24520 Fixed an issue with incorrect translations used in several frontend places Frontend + ZBX-21815 Fixed issue with undefined offset for media type when it was deleted before saving the user Frontend + ZBX-24108 Fixed error in dashboard if Map widget contains map element that user doesn't have access to Frontend + ZBX-24569 Fixed old and added new items to Azure Virtual Machine template Templates + ZBX-24537 Fixed tags subfilter in Latest data kiosk mode Frontend + ZBX-24167 Fixed template linkage when item prototype collision is found Server + ZBX-23770 Improved monitoring user permissions documentation for Zabbix agent 2 Oracle plugin and Oracle by ODBC template Documentation + ZBX-24565 Removed redundant kernel header include, fixed musl compatibility issues (thanks to Alpine Linux maintainers for spotting this) + ZBX-24610 Fixed interface field appearance for discovered items without interface set Frontend + ZBX-24562 Fixed incorrect problem order in Problems by severity widget's hintbox Frontend + ZBX-23751 Fixed inability to pass an action filter condition without an "operator" property, implying a default value of "Equal" API + ZBX-21429 Prevented ability to disable all UI element access via role.update API API + ZBX-19271 Fixed inconsistent tag row rendering in different edit forms Frontend + ZBX-24539 Fixed incorrect threshold in trigger expression of Check Point Next Generation Firewall by SNMP template Templates + ZBX-24667 Fixed vm.memory.size[pused] item on Solaris Agent + ZBX-23781 Added storage volumes check in HPE iLO by HTTP template Templates + ZBX-24391 Fixed Zabbix agent to return net.tcp.socket.count result without error if IPv6 is disabled Agent + ZBX-24235 Fixed value misalignment in Item value widget Frontend + ZBX-24352 Fixed custom severity name usage in Geomap widget Frontend + ZBX-24665 Fixed potential problem with deprecated GCE Integrity feature Templates + ZBX-20993 Fixed Zabbix agent 2 MQTT plugin clientID to be generated by strict requirements Agent + ZBX-23426 Added dependent item with JavaScript preprocessing for edges SD-WAN in VMWare SD-WAN VeloCloud by HTTP template Templates + ZBX-24566 Fixed crash when expression macro is used in unsupported location Server + ZBX-24450 Fixed issue where graph could differ for data gathered from PostgreSQL and other databases Frontend + ZBX-24513 Fixed real-time export of rarely updated trends Server + ZBX-24163 Fixed submap addition in Map navigation tree widget to not append same submaps repeatedly Frontend + ZBX-23398 Fixed trigger expression constructor incorrectly showing '<' and '>' operators Frontend + ZBX-23584 Fixed error message being displayed when updating host after changing item status Frontend + ZBX-24635 Fixed datastore triggers in VMware templates Templates OBS-URL: https://build.opensuse.org/package/show/server:monitoring:zabbix/zabbix?expand=0&rev=63
This commit is contained in:
commit
5818960de9
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
README-SSL.SUSE
Normal file
3
README-SSL.SUSE
Normal file
@ -0,0 +1,3 @@
|
||||
It is recommended to use SSL in the communication between agents and server, but it is not enabled by default.
|
||||
To configure it, please follow https://www.zabbix.com/documentation/4.0/manual/encryption/using_certificates.
|
||||
In other case you are putting yourself into huge risk of leaking sensitive data.
|
13
README.SUSE
Normal file
13
README.SUSE
Normal file
@ -0,0 +1,13 @@
|
||||
zabbix-phpfrontend:
|
||||
To enable zabbix frontend in apache
|
||||
type in console:
|
||||
# a2enflag ZABBIX
|
||||
or if you want to remove it from apache configuration
|
||||
type in console:
|
||||
# a2enflag -d ZABBIX
|
||||
# service apache2 restart
|
||||
or reload if apache restart is too disrupting
|
||||
|
||||
Please, make sure SSL is enabled and up in Apache2 config.
|
||||
You can get inspired by https://www.zabbix.com/documentation/4.0/manual/installation/requirements/best_practices.
|
||||
If you have Apache 2.4.30 or newer, it is even more simple: https://httpd.apache.org/docs/trunk/mod/mod_md.html.
|
19
apache2-zabbix.conf
Normal file
19
apache2-zabbix.conf
Normal file
@ -0,0 +1,19 @@
|
||||
# please read how to enable zabbix frontend and SSL encryption in
|
||||
# /usr/share/doc/packages/zabbix-phpfrontend/README.SUSE
|
||||
<IfDefine ZABBIX>
|
||||
Alias /zabbix "/usr/share/zabbix/"
|
||||
<DirectoryMatch "/usr/share/zabbix/(conf/|include/)>
|
||||
<IfModule mod_authz_core.c>
|
||||
# Apache 2.4
|
||||
Require all denied
|
||||
</IfModule>
|
||||
|
||||
<IfModule !mod_authz_core.c>
|
||||
Order deny,allow
|
||||
Deny from all
|
||||
</IfModule>
|
||||
</DirectoryMatch>
|
||||
</IfDefine>
|
||||
<IfDefine !ZABBIX>
|
||||
Redirect 403 /zabbix
|
||||
</IfDefine>
|
6238
rn6.0.0.html
Normal file
6238
rn6.0.0.html
Normal file
File diff suppressed because it is too large
Load Diff
7
system-user-zabbix.conf
Normal file
7
system-user-zabbix.conf
Normal file
@ -0,0 +1,7 @@
|
||||
#Type Name ID GECOS Home directory Shell
|
||||
g zabbix -
|
||||
g zabbixs -
|
||||
u zabbix - "Zabbix agent" /var/lib/zabbix -
|
||||
u zabbixs - "Zabbix agent" /var/lib/zabbixs -
|
||||
m zabbix zabbix
|
||||
m zabbixs zabbixs
|
45
zabbix-6.0.12-netsnmp-fixes.patch
Normal file
45
zabbix-6.0.12-netsnmp-fixes.patch
Normal file
@ -0,0 +1,45 @@
|
||||
Index: m4/netsnmp.m4
|
||||
===================================================================
|
||||
--- m4/netsnmp.m4.orig 2023-09-25 12:26:59.951273749 +0200
|
||||
+++ m4/netsnmp.m4 2023-10-17 22:18:29.154010921 +0200
|
||||
@@ -169,7 +169,22 @@ session.securityAuthProto = usmHMAC384SH
|
||||
],[
|
||||
AC_MSG_RESULT(no)
|
||||
])
|
||||
-
|
||||
+################## monkey patching....
|
||||
+ dnl Check if MD5 auth is removed
|
||||
+ AC_MSG_CHECKING(for disabled MD5 auth protocol support)
|
||||
+ AC_TRY_LINK([
|
||||
+#include <net-snmp/net-snmp-config.h>
|
||||
+#include <net-snmp/net-snmp-includes.h>
|
||||
+ ],[
|
||||
+struct snmp_session session;
|
||||
+session.securityAuthProto = usmHMACMD5AuthProtocol;
|
||||
+ ],[
|
||||
+ AC_DEFINE(HAVE_NETSNMP_NO_MD5_AUTH, 1, [Define to 1 if MD5 auth protocols is disabled.])
|
||||
+ AC_MSG_RESULT(yes)
|
||||
+ ],[
|
||||
+ AC_MSG_RESULT(no)
|
||||
+ ])
|
||||
+################## end monkey patching....
|
||||
dnl Check for AES192/256 protocol support for privacy
|
||||
AC_MSG_CHECKING(for strong AES privacy protocol support)
|
||||
AC_LINK_IFELSE([AC_LANG_PROGRAM([[
|
||||
Index: src/zabbix_server/poller/checks_snmp.c
|
||||
===================================================================
|
||||
--- src/zabbix_server/poller/checks_snmp.c.orig 2023-09-25 12:27:00.031274243 +0200
|
||||
+++ src/zabbix_server/poller/checks_snmp.c 2023-10-17 22:18:29.154010921 +0200
|
||||
@@ -356,10 +356,12 @@ static int zbx_snmpv3_set_auth_protocol(
|
||||
|
||||
switch (item->snmpv3_authprotocol)
|
||||
{
|
||||
+#ifdef usmHMACMD5AuthProtocol
|
||||
case ITEM_SNMPV3_AUTHPROTOCOL_MD5:
|
||||
session->securityAuthProto = usmHMACMD5AuthProtocol;
|
||||
session->securityAuthProtoLen = USM_AUTH_PROTO_MD5_LEN;
|
||||
break;
|
||||
+#endif
|
||||
case ITEM_SNMPV3_AUTHPROTOCOL_SHA1:
|
||||
session->securityAuthProto = usmHMACSHA1AuthProtocol;
|
||||
session->securityAuthProtoLen = USM_AUTH_PROTO_SHA_LEN;
|
3
zabbix-6.0.31.tar.gz
Normal file
3
zabbix-6.0.31.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:27d2d453ead41a251131cf1c66300175386355879f6d605de5d88dbb57ab82f9
|
||||
size 45176869
|
3
zabbix-6.0.33.tar.gz
Normal file
3
zabbix-6.0.33.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e229b08edace4071b4fdecb0a08aebd83fccb6f0e7350a384bb059507f9e1887
|
||||
size 45392256
|
13
zabbix-agentd.service
Normal file
13
zabbix-agentd.service
Normal file
@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=Zabbix Monitor Agent
|
||||
After=syslog.target network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/sbin/zabbix_agentd -f
|
||||
User=zabbix
|
||||
Group=zabbix
|
||||
PrivateTmp=yes
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
25
zabbix-java-gateway.service
Normal file
25
zabbix-java-gateway.service
Normal file
@ -0,0 +1,25 @@
|
||||
[Unit]
|
||||
Description=Zabbix Server
|
||||
After=syslog.target network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/zabbix-java-gateway run
|
||||
User=zabbixs
|
||||
PrivateTmp=yes
|
||||
# added automatically, for details please see
|
||||
# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
|
||||
ProtectSystem=full
|
||||
ProtectHome=true
|
||||
PrivateDevices=true
|
||||
ProtectHostname=true
|
||||
ProtectClock=true
|
||||
ProtectKernelTunables=true
|
||||
ProtectKernelModules=true
|
||||
ProtectKernelLogs=true
|
||||
ProtectControlGroups=true
|
||||
RestrictRealtime=true
|
||||
# end of automatic additions
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
121
zabbix-java-gateway.sh
Normal file
121
zabbix-java-gateway.sh
Normal file
@ -0,0 +1,121 @@
|
||||
#!/bin/bash
|
||||
|
||||
CMD=$1
|
||||
NOHUP=${NOHUP:=$(which nohup)}
|
||||
|
||||
# resolve links - $0 may be a softlink
|
||||
ZBXJAVAGWCTL="$0"
|
||||
|
||||
while [ -h "$ZBXJAVAGWCTL" ]; do
|
||||
ls=$(ls -ld "$ZBXJAVAGWCTL")
|
||||
link=$(expr "$ls" : '.*-> \(.*\)$')
|
||||
if expr "$link" : '/.*' > /dev/null; then
|
||||
ZBXJAVAGWCTL="$link"
|
||||
else
|
||||
ZBXJAVAGWCTL=$(dirname "$ZBXJAVAGWCTL")/"$link"
|
||||
fi
|
||||
done
|
||||
|
||||
SERVICE_NAME="zabbix-java-gateway"
|
||||
JAVA=${JAVA:-java}
|
||||
JAVA_OPTIONS="-server"
|
||||
JAVA_OPTIONS="$JAVA_OPTIONS -Dlogback.configurationFile=/etc/zabbix/zabbix-java-gateway-log.xml"
|
||||
ZABBIX_OPTIONS=${ZABBIX_OPTIONS:=}
|
||||
ZABBIX_JAVA_DIR=${ZABBIX_JAVA_DIR:=$(dirname "$ZBXJAVAGWCTL")}
|
||||
ZABBIX_JAVA_CONF=${ZABBIX_JAVA_CONF:=/etc/zabbix/zabbix-java-gateway.conf}
|
||||
ZABBIX_JAVA_GW_PID=${ZABBIX_JAVA_GW_PID:=/run/zabbixs/zabbix-java-gateway.pid}
|
||||
ZABBIX_JAVA_GW_LOGFILE=${ZABBIX_JAVA_GW_LOGFILE:=/var/log/zabbixs/zabbix-java-gateway.log}
|
||||
# source configuration...
|
||||
. ${ZABBIX_JAVA_CONF}
|
||||
|
||||
# Build classpath
|
||||
CLASSPATH=$(echo $(find /usr/lib/zabbix-java-gateway/ -name "*jar" -type f -print)|sed -e 's/ /:/g')
|
||||
if [ -n "$PID_FILE" ]; then
|
||||
ZABBIX_OPTIONS="$ZABBIX_OPTIONS -Dzabbix.pidFile=$PID_FILE"
|
||||
fi
|
||||
if [ -n "$LISTEN_IP" ]; then
|
||||
ZABBIX_OPTIONS="$ZABBIX_OPTIONS -Dzabbix.listenIP=$LISTEN_IP"
|
||||
fi
|
||||
if [ -n "$LISTEN_PORT" ]; then
|
||||
ZABBIX_OPTIONS="$ZABBIX_OPTIONS -Dzabbix.listenPort=$LISTEN_PORT"
|
||||
fi
|
||||
if [ -n "$START_POLLERS" ]; then
|
||||
ZABBIX_OPTIONS="$ZABBIX_OPTIONS -Dzabbix.startPollers=$START_POLLERS"
|
||||
fi
|
||||
|
||||
COMMAND_LINE="$JAVA $JAVA_OPTIONS -classpath $CLASSPATH $ZABBIX_OPTIONS com.zabbix.gateway.JavaGateway"
|
||||
|
||||
start() {
|
||||
status
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Starting ${SERVICE_NAME} ..."
|
||||
cd "$ZBXJAVAGWCTL_DIR"
|
||||
(/bin/bash -c "$COMMAND_LINE > /dev/null 2>&1 & echo \$!") > ${ZABBIX_JAVA_GW_PID}
|
||||
fi
|
||||
}
|
||||
|
||||
run() {
|
||||
echo "Running ${SERVICE_NAME} ..."
|
||||
cd "$ZBXJAVAGWCTL_DIR"
|
||||
exec $COMMAND_LINE
|
||||
}
|
||||
|
||||
stop() {
|
||||
pid=$(cat ${ZABBIX_JAVA_GW_PID})
|
||||
echo "Stopping ${SERVICE_NAME} ($pid) ..."
|
||||
if kill $pid; then
|
||||
rm ${ZABBIX_JAVA_GW_PID}
|
||||
fi
|
||||
}
|
||||
|
||||
restart() {
|
||||
echo "Restarting ${SERVICE_NAME} ..."
|
||||
stop
|
||||
start
|
||||
}
|
||||
|
||||
status() {
|
||||
pid=$(get_pid)
|
||||
if [ ! -z $pid ]; then
|
||||
if pid_running $pid; then
|
||||
echo "${SERVICE_NAME} running as pid $pid"
|
||||
return 0
|
||||
else
|
||||
echo "Stale pid file with $pid - removing..."
|
||||
rm ${ZABBIX_JAVA_GW_PID}
|
||||
return 1
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "${SERVICE_NAME} not running"
|
||||
return 3
|
||||
}
|
||||
|
||||
get_pid() {
|
||||
cat ${ZABBIX_JAVA_GW_PID} 2> /dev/null
|
||||
}
|
||||
|
||||
pid_running() {
|
||||
kill -0 $1 2> /dev/null
|
||||
}
|
||||
|
||||
case "$CMD" in
|
||||
start)
|
||||
start
|
||||
;;
|
||||
stop)
|
||||
stop
|
||||
;;
|
||||
restart)
|
||||
restart
|
||||
;;
|
||||
status)
|
||||
status
|
||||
;;
|
||||
run)
|
||||
run
|
||||
;;
|
||||
*)
|
||||
echo "Usage $0 {start|stop|restart|status}"
|
||||
RETVAL=1
|
||||
esac
|
8
zabbix-logrotate.in
Normal file
8
zabbix-logrotate.in
Normal file
@ -0,0 +1,8 @@
|
||||
/var/log/USER/zabbix_COMPONENT.log {
|
||||
missingok
|
||||
monthly
|
||||
notifempty
|
||||
compress
|
||||
copytruncate
|
||||
su USER USER
|
||||
}
|
12
zabbix-proxy.service
Normal file
12
zabbix-proxy.service
Normal file
@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=Zabbix Proxy
|
||||
After=syslog.target network.target mysql.service postgresql.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/sbin/zabbix_proxy -f
|
||||
User=zabbixs
|
||||
PrivateTmp=yes
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
13
zabbix-server.service
Normal file
13
zabbix-server.service
Normal file
@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=Zabbix Server
|
||||
After=syslog.target network.target mysql.service postgresql.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecReload=/usr/sbin/zabbix_server -R config_cache_reload
|
||||
ExecStart=/usr/sbin/zabbix_server -f
|
||||
User=zabbixs
|
||||
PrivateTmp=yes
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
1
zabbix-tmpfiles.conf
Normal file
1
zabbix-tmpfiles.conf
Normal file
@ -0,0 +1 @@
|
||||
D /run/zabbix 0770 root zabbix -
|
2014
zabbix.changes
Normal file
2014
zabbix.changes
Normal file
File diff suppressed because it is too large
Load Diff
654
zabbix.spec
Normal file
654
zabbix.spec
Normal file
@ -0,0 +1,654 @@
|
||||
#
|
||||
# spec file for package zabbix
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%define server_user zabbixs
|
||||
%define server_group zabbixs
|
||||
%define agent_user zabbix
|
||||
%define agent_group zabbix
|
||||
|
||||
Name: zabbix
|
||||
Version: 6.0.33
|
||||
Release: 0
|
||||
Summary: Distributed monitoring system
|
||||
License: Apache-2.0 AND GPL-2.0-or-later AND EPL-2.0 AND MPL-2.0 AND BSD-3-Clause
|
||||
Group: System/Monitoring
|
||||
URL: https://www.zabbix.com
|
||||
Source0: https://cdn.zabbix.com/zabbix/sources/stable/6.0/zabbix-%{version}.tar.gz
|
||||
Source1: rn6.0.0.html
|
||||
Source2: zabbix-tmpfiles.conf
|
||||
Source3: zabbix-java-gateway.sh
|
||||
Source4: zabbix-logrotate.in
|
||||
Source5: apache2-zabbix.conf
|
||||
Source6: README.SUSE
|
||||
Source11: zabbix-proxy.service
|
||||
Source12: zabbix-agentd.service
|
||||
Source13: zabbix-server.service
|
||||
Source14: zabbix-java-gateway.service
|
||||
Source15: README-SSL.SUSE
|
||||
Source16: system-user-zabbix.conf
|
||||
# PATCH-FIX-OPENSUSE zabbix-6.0.12-netsnmp-fixes.patch fix for removed md5 auth protocol
|
||||
Patch3: zabbix-6.0.12-netsnmp-fixes.patch
|
||||
BuildRequires: apache-rpm-macros
|
||||
BuildRequires: apache2-devel
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: automake
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: firewall-macros
|
||||
BuildRequires: gcc
|
||||
BuildRequires: java-devel >= 1.6
|
||||
BuildRequires: libmysqlclient-devel
|
||||
BuildRequires: libtool
|
||||
BuildRequires: logrotate
|
||||
BuildRequires: net-snmp-devel
|
||||
BuildRequires: openldap2-devel
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: systemd-rpm-macros
|
||||
BuildRequires: sysuser-tools
|
||||
BuildRequires: unixODBC-devel
|
||||
BuildRequires: update-alternatives
|
||||
BuildRequires: pkgconfig(OpenIPMI)
|
||||
BuildRequires: pkgconfig(libcurl)
|
||||
BuildRequires: pkgconfig(libevent)
|
||||
BuildRequires: pkgconfig(libpcre)
|
||||
BuildRequires: pkgconfig(libpq)
|
||||
BuildRequires: pkgconfig(libssh2)
|
||||
BuildRequires: pkgconfig(libxml-2.0)
|
||||
BuildRequires: pkgconfig(openssl)
|
||||
BuildRequires: pkgconfig(sqlite3)
|
||||
BuildRequires: pkgconfig(zlib)
|
||||
%sysusers_requires
|
||||
|
||||
%{?systemd_requires}
|
||||
%if 0%{?suse_version} >= 1600 || 0%{?sle_version} > 150100
|
||||
BuildRequires: postgresql-server-devel
|
||||
%endif
|
||||
|
||||
%description
|
||||
Zabbix is a distributed monitoring system.
|
||||
|
||||
Zabbix is software that monitors numerous parameters of a network and the
|
||||
health and integrity of servers. Zabbix uses a flexible notification mechanism
|
||||
that allows users to configure e-mail based alerts for virtually any event.
|
||||
This allows a fast reaction to server problems. Zabbix offers excellent
|
||||
reporting and data visualisation features based on the stored data. This makes
|
||||
Zabbix ideal for capacity planning.
|
||||
|
||||
Zabbix supports both polling and trapping. All Zabbix reports and statistics,
|
||||
as well as configuration parameters, are accessed through a web-based frontend.
|
||||
A web-based frontend ensures that the status of your network and the health of
|
||||
your servers can be assessed from any location. Properly configured, Zabbix can
|
||||
play an important role in monitoring IT infrastructure. This is equally true
|
||||
for small organisations with a few servers and for large companies with a
|
||||
multitude of servers.
|
||||
|
||||
%package agent
|
||||
Summary: Local resource monitor agent for Zabbix
|
||||
Group: System/Monitoring
|
||||
Requires: logrotate
|
||||
Requires(pre): %fillup_prereq
|
||||
Requires(pre): shadow
|
||||
Requires: update-alternatives
|
||||
Requires: group(%{agent_group})
|
||||
Requires: user(%{agent_user})
|
||||
Conflicts: zabbix-agent
|
||||
|
||||
%description agent
|
||||
The Zabbix agent monitors local resources and relays information to the server.
|
||||
|
||||
%package server
|
||||
Summary: System files for the Zabbix server
|
||||
Group: System/Monitoring
|
||||
Requires: fping
|
||||
Requires: logrotate
|
||||
Requires: update-alternatives
|
||||
Requires: zabbix_server_binary = %{version}-%{release}
|
||||
Requires(pre): %fillup_prereq
|
||||
Requires(pre): shadow
|
||||
Requires: group(%{server_group})
|
||||
Requires: user(%{server_user})
|
||||
Conflicts: zabbix-server
|
||||
|
||||
%description server
|
||||
The Zabbix server component.
|
||||
|
||||
%package proxy
|
||||
Summary: System files for the Zabbix proxy
|
||||
Group: System/Monitoring
|
||||
Requires: fping
|
||||
Requires: logrotate
|
||||
Requires: update-alternatives
|
||||
Requires: zabbix_proxy_binary = %{version}-%{release}
|
||||
Requires(pre): %fillup_prereq
|
||||
Requires(pre): shadow
|
||||
Requires: group(%{server_group})
|
||||
Requires: user(%{server_user})
|
||||
Conflicts: zabbix-proxy
|
||||
|
||||
%description proxy
|
||||
The Zabbix proxy component.
|
||||
|
||||
%package ui
|
||||
Summary: Zabbix web frontend (php)
|
||||
Group: Productivity/Networking/Web/Frontends
|
||||
Requires: apache2
|
||||
Requires: php8
|
||||
Requires: php8-bcmath
|
||||
Requires: php8-ctype
|
||||
Requires: php8-gd
|
||||
Requires: php8-gettext
|
||||
Requires: php8-ldap
|
||||
Requires: php8-mbstring
|
||||
Requires: php8-sockets
|
||||
Requires: php8-xmlreader
|
||||
Requires: php8-xmlwriter
|
||||
Suggests: php8-mysqli
|
||||
Suggests: php8-pgsql
|
||||
Conflicts: zabbix-phpfrontend
|
||||
Provides: zabbix-phpfrontend
|
||||
Obsoletes: zabbix-phpfrontend < 6.0.0
|
||||
BuildArch: noarch
|
||||
|
||||
%description ui
|
||||
The Zabbix PHP frontend allows access via standard web browsers.
|
||||
|
||||
NOTE: You still have to install the PHP package which contains your db driver!
|
||||
|
||||
%package server-mysql
|
||||
Summary: Zabbix server with MySQL support
|
||||
Group: System/Monitoring
|
||||
Requires: %{name}-server = %{version}-%{release}
|
||||
Requires: mariadb
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
Conflicts: zabbix-server-mysql
|
||||
Provides: %{name} = %{version}-%{release}
|
||||
Provides: zabbix_server_binary = %{version}-%{release}
|
||||
|
||||
%description server-mysql
|
||||
The Zabbix server compiled with MySQL support.
|
||||
|
||||
%package server-postgresql
|
||||
Summary: Zabbix server with PostgreSQL support
|
||||
Group: System/Monitoring
|
||||
Requires: %{name}-server = %{version}-%{release}
|
||||
Requires: postgresql
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
Conflicts: zabbix-server-postgresql
|
||||
Provides: %{name} = %{version}-%{release}
|
||||
Provides: zabbix_server_binary = %{version}-%{release}
|
||||
|
||||
%description server-postgresql
|
||||
The Zabbix server compiled with PostgreSQL support.
|
||||
|
||||
%package proxy-mysql
|
||||
Summary: Zabbix proxy with MySQL support
|
||||
Group: System/Monitoring
|
||||
Requires: %{name}-proxy = %{version}-%{release}
|
||||
Requires: mariadb
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
Conflicts: zabbix-proxy-mysql
|
||||
Provides: %{name} = %{version}-%{release}
|
||||
Provides: zabbix_proxy_binary = %{version}-%{release}
|
||||
|
||||
%description proxy-mysql
|
||||
The Zabbix proxy compiled with MySQL support.
|
||||
|
||||
%package proxy-postgresql
|
||||
Summary: Zabbix proxy with PostgreSQL support
|
||||
Group: System/Monitoring
|
||||
Requires: %{name}-proxy = %{version}-%{release}
|
||||
Requires: postgresql
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
Conflicts: zabbix-proxy-postgresql
|
||||
Provides: %{name} = %{version}-%{release}
|
||||
Provides: zabbix_proxy_binary = %{version}-%{release}
|
||||
|
||||
%description proxy-postgresql
|
||||
The Zabbix proxy compiled with PostgreSQL support.
|
||||
|
||||
%package proxy-sqlite
|
||||
Summary: Zabbix proxy with SQLite support
|
||||
Group: System/Monitoring
|
||||
Requires: %{name}-proxy = %{version}-%{release}
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
Conflicts: zabbix-proxy-sqlite
|
||||
Provides: %{name} = %{version}-%{release}
|
||||
Provides: zabbix_proxy_binary = %{version}-%{release}
|
||||
|
||||
%description proxy-sqlite
|
||||
The Zabbix proxy compiled with SQLite support.
|
||||
|
||||
%package java-gateway
|
||||
Summary: Zabbix Java gateway
|
||||
Group: System/Monitoring
|
||||
Requires: jre
|
||||
Requires(pre): shadow
|
||||
Conflicts: zabbix-java-gateway
|
||||
Provides: %{name} = %{version}-%{release}
|
||||
Requires: group(%{server_group})
|
||||
Requires: user(%{server_user})
|
||||
BuildArch: noarch
|
||||
|
||||
%description java-gateway
|
||||
JMX monitoring can be used to monitor JMX counters of a Java
|
||||
application. To retrieve the value of a particular JMX counter on a
|
||||
host, the Zabbix server queries the Zabbix Java gateway, which in
|
||||
turn uses the JMX management API to query the application of interest
|
||||
remotely.
|
||||
|
||||
%package -n system-user-zabbix
|
||||
Summary: Users and groups
|
||||
Group: System
|
||||
Requires(pre): pwdutils
|
||||
Provides: group(%{agent_group})
|
||||
Provides: group(%{server_group})
|
||||
Provides: user(%{agent_user})
|
||||
Provides: user(%{server_user})%define server_user zabbixs
|
||||
BuildArch: noarch
|
||||
|
||||
%description -n system-user-zabbix
|
||||
Zabbix users and groups required by zabbix packages
|
||||
|
||||
%prep
|
||||
%autosetup -p0 -n zabbix-%{version}
|
||||
|
||||
cp %{SOURCE6} .
|
||||
# fix source & config files to respect adapted names
|
||||
for file in src/zabbix_java/settings.sh src/zabbix_java/lib/logback.xml %{SOURCE3} conf/*.conf misc/init.d/suse/*/zabbix_* src/zabbix_server/server.c \
|
||||
src/zabbix_server/alerter/alerter.c src/zabbix_agent/zbxconf.c src/zabbix_agent/zabbix_agentd.c src/zabbix_proxy/proxy.c ChangeLog; do
|
||||
sed -i -e "s@/home/zabbix/bin@%{_bindir}@g" \
|
||||
-e "s@^[# ]*PidFile=/tmp/zabbix_@PidFile=%{_rundir}/%{agent_user}/zabbix_@g" \
|
||||
-e "s@^[# ]*LogFile=/tmp/zabbix_@LogFile=%{_localstatedir}/log/%{agent_user}/zabbix_@g" \
|
||||
-e "s@^[# ]*DBSocket=/tmp/mysql.sock@DBSocket=%{_rundir}/mysql/mysql.sock@g" \
|
||||
-e "s@^[# ]*SocketDir=/tmp@SocketDir=%{_rundir}/%{agent_user}@g" \
|
||||
-e "s@DBUser=root@DBUser=zabbix@g" \
|
||||
-e "s@^[# ]*DBPassword=.*@DBPassword=zabbix@g" \
|
||||
-e "s@Hostname=Zabbix Server@Hostname=Zabbix_Server@" \
|
||||
-e "s@GW_PID:=%{_localstatedir}/run/zabbix/zabbix-java-gateway.pid@GW_PID:=%{_rundir}/%{server_user}/zabbix-java-gateway.pid@g" \
|
||||
-e "s@GW_LOGFILE:=%{_localstatedir}/log/zabbix/zabbix-java-gateway.log@GW_LOGFILE:=%{_localstatedir}/log/%{server_user}/zabbix-java-gateway.log@g" $file
|
||||
done
|
||||
|
||||
# fix server, java and proxy (again) config for log and run location...
|
||||
for file in src/zabbix_java/settings.sh conf/zabbix_proxy.conf conf/zabbix_server.conf ; do
|
||||
sed -i -e "s#^[# ]*LogFile=%{_localstatedir}/log/.*/zabbix_#LogFile=%{_localstatedir}/log/%{server_user}/zabbix_#g" \
|
||||
-e "s#^[# ]*PidFile=%{_rundir}/.*/zabbix_#PidFile=%{_rundir}/%{server_user}/zabbix_#g" \
|
||||
-e "s#^[# ]*SocketDir=%{_rundir}/%{agent_user}#SocketDir=%{_rundir}/%{server_user}#g" \
|
||||
-e 's#PID_FILE="%{_rundir}/.*/zabbix_#PID_FILE="%{_rundir}/%{server_user}/zabbix_#g' $file
|
||||
done
|
||||
|
||||
# fix db content to respect adapted names and suse naming conventions
|
||||
for file in database/*/data.sql; do
|
||||
sed -i -e "s#syslogd#syslog-ng#g" \
|
||||
-e "s#Syslogd#Syslog-ng#g" \
|
||||
-e "s#httpd#httpd2-prefork#g" $file
|
||||
done
|
||||
##### Fix for date time macros
|
||||
REF_DATE=$(LANG=C date -r configure +"%%b %%d %%Y")
|
||||
REF_TIME=$(LANG=C date -r configure +"%%H:%%M:%%S")
|
||||
sed -i -e "s/__DATE__/\"${REF_DATE}\"/g" -e "s/__TIME__/\"${REF_TIME}\"/g" src/libs/zbxcommon/str.c
|
||||
#####
|
||||
##### Fix location of zabbix java gateway location
|
||||
sed -ri 's@^(ZABBIX_JAVA_CONF=.\{ZABBIX_JAVA_CONF:=).*@\1%{_sysconfdir}/zabbix/zabbix-java-gateway.conf}@g' %{SOURCE3}
|
||||
|
||||
# Remove prebuilt Windows binaries
|
||||
rm -rf bin
|
||||
|
||||
#make separate directories for each config
|
||||
cd ..
|
||||
cp -r zabbix-%{version} zabbix-%{version}-postgresql
|
||||
cp -r zabbix-%{version} zabbix-%{version}-sqlite
|
||||
cd -
|
||||
|
||||
%build
|
||||
%sysusers_generate_pre %{SOURCE16} zabbix system-user-zabbix.conf
|
||||
ZABBIX_BASIC_CONFIG="--enable-proxy --enable-server --enable-agent --sysconfdir=%{_sysconfdir}/zabbix \
|
||||
--with-openipmi --enable-java --enable-ipv6 --with-ssh2 --with-ldap --with-unixodbc \
|
||||
--with-libcurl --with-net-snmp --with-libxml2 --with-openssl --with-libpcre --with-libevent"
|
||||
|
||||
# configure MySQL repo (here)
|
||||
autoreconf -fvi
|
||||
%configure $ZABBIX_BASIC_CONFIG --with-mysql --without-postgresql --without-sqlite3
|
||||
%make_build
|
||||
|
||||
# configure PostgreSQL repo
|
||||
cd ../zabbix-%{version}-postgresql
|
||||
autoreconf -fvi
|
||||
%configure $ZABBIX_BASIC_CONFIG --with-postgresql --without-mysql --without-sqlite3
|
||||
%make_build
|
||||
cd -
|
||||
|
||||
# configure SQLite repo
|
||||
cd ../zabbix-%{version}-sqlite
|
||||
autoreconf -fvi
|
||||
%configure $ZABBIX_BASIC_CONFIG --disable-server --enable-proxy --with-sqlite3 --without-postgresql --without-mysql
|
||||
%make_build
|
||||
cd -
|
||||
|
||||
%install
|
||||
install -D -m 0644 %{SOURCE16} %{buildroot}%{_sysusersdir}/system-user-zabbix.conf
|
||||
# install the binaries
|
||||
|
||||
%make_install -C ../zabbix-%{version}-sqlite
|
||||
mv %{buildroot}%{_sbindir}/zabbix_proxy %{buildroot}%{_sbindir}/zabbix_proxy-sqlite
|
||||
|
||||
%make_install -C ../zabbix-%{version}-postgresql
|
||||
mv %{buildroot}%{_sbindir}/zabbix_server %{buildroot}%{_sbindir}/zabbix_server-postgresql
|
||||
mv %{buildroot}%{_sbindir}/zabbix_proxy %{buildroot}%{_sbindir}/zabbix_proxy-postgresql
|
||||
|
||||
%make_install
|
||||
mv %{buildroot}%{_sbindir}/zabbix_server %{buildroot}%{_sbindir}/zabbix_server-mysql
|
||||
mv %{buildroot}%{_sbindir}/zabbix_proxy %{buildroot}%{_sbindir}/zabbix_proxy-mysql
|
||||
|
||||
mv %{buildroot}%{_bindir}/zabbix_sender %{buildroot}%{_sbindir}/zabbix_sender
|
||||
|
||||
# create directory structure
|
||||
install -d %{buildroot}%{_localstatedir}/log/%{server_user}
|
||||
install -d %{buildroot}%{_localstatedir}/log/%{agent_user}
|
||||
|
||||
# move java gateway files
|
||||
mkdir -p %{buildroot}/%{_prefix}/lib/zabbix-java-gateway
|
||||
mv %{buildroot}%{_sbindir}/zabbix_java/lib/*.jar %{buildroot}%{_prefix}/lib/zabbix-java-gateway
|
||||
mv %{buildroot}%{_sbindir}/zabbix_java/bin/*.jar %{buildroot}%{_prefix}/lib/zabbix-java-gateway
|
||||
mv %{buildroot}%{_sbindir}/zabbix_java/settings.sh %{buildroot}%{_sysconfdir}/zabbix/zabbix-java-gateway.conf
|
||||
mv %{buildroot}%{_sbindir}/zabbix_java/lib/logback.xml %{buildroot}%{_sysconfdir}/zabbix/zabbix-java-gateway-log.xml
|
||||
install -m 0755 %{SOURCE3} %{buildroot}%{_bindir}/zabbix-java-gateway
|
||||
# we do not need the rest
|
||||
rm -r %{buildroot}%{_sbindir}/zabbix_java
|
||||
|
||||
# install the php frontend
|
||||
mkdir -p %{buildroot}%{_datadir}/zabbix
|
||||
cp -r ui/* %{buildroot}%{_datadir}/zabbix
|
||||
install -Dm 0644 %{SOURCE5} %{buildroot}%{apache_sysconfdir}/conf.d/zabbix.conf
|
||||
# remove .htaccess files as access rules are moved to zabbix.conf
|
||||
find %{buildroot}%{_datadir}/zabbix -name .htaccess -exec rm -v {} \;
|
||||
|
||||
# Install log rotation
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d
|
||||
sed -e 's|COMPONENT|agentd|g; s|USER|zabbix|g' %{SOURCE4} > \
|
||||
%{buildroot}%{_sysconfdir}/logrotate.d/%{name}-agent
|
||||
sed -e 's|COMPONENT|server|g; s|USER|zabbixs|g' %{SOURCE4} > \
|
||||
%{buildroot}%{_sysconfdir}/logrotate.d/%{name}-server
|
||||
sed -e 's|COMPONENT|proxy|g; s|USER|zabbixs|g' %{SOURCE4} > \
|
||||
%{buildroot}%{_sysconfdir}/logrotate.d/%{name}-proxy
|
||||
|
||||
%fdupes %{buildroot}
|
||||
|
||||
# install systemd unit files
|
||||
install -Dm 0644 %{SOURCE11} %{buildroot}%{_unitdir}/zabbix_proxy.service
|
||||
install -Dm 0644 %{SOURCE12} %{buildroot}%{_unitdir}/zabbix_agentd.service
|
||||
install -Dm 0644 %{SOURCE13} %{buildroot}%{_unitdir}/zabbix_server.service
|
||||
install -Dm 0644 %{SOURCE14} %{buildroot}%{_unitdir}/zabbix-java-gateway.service
|
||||
install -dm 0755 %{buildroot}/%{_unitdir}/zabbix_server.service.requires
|
||||
install -dm 0755 %{buildroot}/%{_unitdir}/zabbix_proxy.service.requires
|
||||
|
||||
# set the rc sym links
|
||||
ln -s service %{buildroot}%{_sbindir}/rczabbix_agentd
|
||||
ln -s service %{buildroot}%{_sbindir}/rczabbix_server
|
||||
ln -s service %{buildroot}%{_sbindir}/rczabbix_proxy
|
||||
ln -s service %{buildroot}%{_sbindir}/rczabbix-java-gateway
|
||||
|
||||
# this stupidity is required because i do not wanna create separate zabbix-common
|
||||
# in case i ever do it will put it under one scope...
|
||||
install -Dm 0644 %{SOURCE2} %{buildroot}%{_tmpfilesdir}/zabbix_agentd.conf
|
||||
# here I suppose server_user==server_group (and agent_user==agent_group, which is for compatibility reasons)
|
||||
sed -i 's@%{agent_user}@%{server_user}@g' %{SOURCE2}
|
||||
install -Dm 0644 %{SOURCE2} %{buildroot}%{_tmpfilesdir}/zabbix_server.conf
|
||||
install -Dm 0644 %{SOURCE2} %{buildroot}%{_tmpfilesdir}/zabbix_proxy.conf
|
||||
install -Dm 0644 %{SOURCE2} %{buildroot}%{_tmpfilesdir}/zabbix-java-gateway.conf
|
||||
###################################################################################
|
||||
|
||||
# update-alternatives
|
||||
install -d -m 0755 %{buildroot}%{_sysconfdir}/alternatives
|
||||
touch -r /bin/true %{buildroot}%{_sysconfdir}/alternatives/zabbix_server
|
||||
touch -r /bin/true %{buildroot}%{_sysconfdir}/alternatives/zabbix_proxy
|
||||
ln -s %{_sysconfdir}/alternatives/zabbix_server %{buildroot}%{_sbindir}/zabbix_server
|
||||
ln -s %{_sysconfdir}/alternatives/zabbix_proxy %{buildroot}%{_sbindir}/zabbix_proxy
|
||||
|
||||
# set links zabbix-* -> zabbix_* (to avoid confusion among users)
|
||||
ln -s %{_sbindir}/zabbix_server %{buildroot}%{_sbindir}/zabbix-server
|
||||
ln -s %{_sbindir}/zabbix_server %{buildroot}%{_sbindir}/zabbix-proxy
|
||||
ln -s %{_sbindir}/zabbix_agentd %{buildroot}%{_sbindir}/zabbix-agentd
|
||||
ln -s %{_sbindir}/zabbix_sender %{buildroot}%{_sbindir}/zabbix-sender
|
||||
ln -s %{_bindir}/zabbix_get %{buildroot}%{_bindir}/zabbix-get
|
||||
|
||||
# Remove Makefiles from database directories so they don't get picked up by %%doc
|
||||
rm database/*/Makefile*
|
||||
|
||||
# Release Notes - what has changed against Zabbix 3.x
|
||||
cp %{SOURCE1} .
|
||||
|
||||
# SSL README
|
||||
cp %{SOURCE15} .
|
||||
|
||||
%pre server
|
||||
# Server daemon
|
||||
%service_add_pre zabbix_server.service
|
||||
|
||||
%pre proxy
|
||||
# Proxy daemon
|
||||
%service_add_pre zabbix_proxy.service
|
||||
|
||||
%pre agent
|
||||
# Agent daemon
|
||||
%service_add_pre zabbix_agentd.service
|
||||
|
||||
%pre java-gateway
|
||||
# Java daemon
|
||||
%service_add_pre zabbix-java-gateway.service
|
||||
|
||||
%pre -n system-user-zabbix -f zabbix.pre
|
||||
|
||||
%post server
|
||||
%firewalld_reload
|
||||
%service_add_post zabbix_server.service
|
||||
%tmpfiles_create %{_tmpfilesdir}/zabbix_server.conf
|
||||
echo "Please read %{_docdir}/%{name}-server/README-SSL.SUSE to set up SSL on Zabbix server."
|
||||
|
||||
%post proxy
|
||||
%firewalld_reload
|
||||
%service_add_post zabbix_proxy.service
|
||||
%tmpfiles_create %{_tmpfilesdir}/zabbix_proxy.conf
|
||||
echo "Please read %{_docdir}/%{name}-proxy/README-SSL.SUSE to set up SSL on Zabbix proxy."
|
||||
|
||||
%post java-gateway
|
||||
%firewalld_reload
|
||||
%service_add_post zabbix-java-gateway.service
|
||||
%tmpfiles_create %{_tmpfilesdir}/zabbix-java-gateway.conf
|
||||
|
||||
%post agent
|
||||
%firewalld_reload
|
||||
%service_add_post zabbix_agentd.service
|
||||
%tmpfiles_create %{_tmpfilesdir}/zabbix_agentd.conf
|
||||
echo "Please read %{_docdir}/%{name}-agent/README-SSL.SUSE to set up SSL on Zabbix agent."
|
||||
|
||||
%post server-mysql
|
||||
%{_sbindir}/update-alternatives --install %{_sbindir}/zabbix_server zabbix_server %{_sbindir}/zabbix_server-mysql 12
|
||||
|
||||
%post server-postgresql
|
||||
%{_sbindir}/update-alternatives --install %{_sbindir}/zabbix_server zabbix_server %{_sbindir}/zabbix_server-postgresql 11
|
||||
|
||||
%post proxy-mysql
|
||||
%{_sbindir}/update-alternatives --install %{_sbindir}/zabbix_proxy zabbix_proxy %{_sbindir}/zabbix_proxy-mysql 12
|
||||
|
||||
%post proxy-postgresql
|
||||
%{_sbindir}/update-alternatives --install %{_sbindir}/zabbix_proxy zabbix_proxy %{_sbindir}/zabbix_proxy-postgresql 11
|
||||
|
||||
%post proxy-sqlite
|
||||
%{_sbindir}/update-alternatives --install %{_sbindir}/zabbix_proxy zabbix_proxy %{_sbindir}/zabbix_proxy-sqlite 10
|
||||
|
||||
%preun server
|
||||
%service_del_preun zabbix_server.service
|
||||
|
||||
%preun proxy
|
||||
%service_del_preun zabbix_proxy.service
|
||||
|
||||
%preun java-gateway
|
||||
%service_del_preun zabbix-java-gateway.service
|
||||
|
||||
%preun agent
|
||||
%service_del_preun zabbix_agentd.service
|
||||
|
||||
%postun server
|
||||
%service_del_postun zabbix_server.service
|
||||
|
||||
%postun proxy
|
||||
%service_del_postun zabbix_proxy.service
|
||||
|
||||
%postun java-gateway
|
||||
%service_del_postun zabbix-java-gateway.service
|
||||
|
||||
%postun agent
|
||||
%service_del_postun zabbix_agentd.service
|
||||
|
||||
%postun server-mysql
|
||||
if [ "$1" = 0 ] ; then
|
||||
%{_sbindir}/update-alternatives --remove zabbix_server %{_sbindir}/zabbix_server-mysql
|
||||
fi
|
||||
|
||||
%postun server-postgresql
|
||||
if [ "$1" = 0 ] ; then
|
||||
%{_sbindir}/update-alternatives --remove zabbix_server %{_sbindir}/zabbix_server-postgresql
|
||||
fi
|
||||
|
||||
%postun proxy-mysql
|
||||
if [ "$1" = 0 ] ; then
|
||||
%{_sbindir}/update-alternatives --remove zabbix_proxy %{_sbindir}/zabbix_proxy-mysql
|
||||
fi
|
||||
|
||||
%postun proxy-postgresql
|
||||
if [ "$1" = 0 ] ; then
|
||||
%{_sbindir}/update-alternatives --remove zabbix_proxy %{_sbindir}/zabbix_proxy-postgresql
|
||||
fi
|
||||
|
||||
%postun proxy-sqlite
|
||||
if [ "$1" = 0 ] ; then
|
||||
%{_sbindir}/update-alternatives --remove zabbix_proxy %{_sbindir}/zabbix_proxy-sqlite
|
||||
fi
|
||||
|
||||
%files server
|
||||
%doc AUTHORS ChangeLog database/mysql database/oracle database/postgresql database/sqlite3 rn6.0.0.html README-SSL.SUSE
|
||||
%dir %{_sysconfdir}/zabbix
|
||||
%config(noreplace) %attr(0640, root, %{server_group}) %{_sysconfdir}/zabbix/zabbix_server.conf
|
||||
%{_bindir}/zabbix_get
|
||||
%{_bindir}/zabbix-get
|
||||
%{_bindir}/zabbix_js
|
||||
%{_sbindir}/zabbix_server
|
||||
%{_sbindir}/zabbix-server
|
||||
%{_sbindir}/rczabbix_server
|
||||
%attr(0770,root,%{server_group}) %dir %{_localstatedir}/log/%{server_user}
|
||||
%ghost %attr(0770,root,%{server_group}) %dir %{_rundir}/%{server_user}
|
||||
%{_mandir}/man1/zabbix_get.1%{?ext_man}
|
||||
%{_mandir}/man8/zabbix_server.8%{?ext_man}
|
||||
%{_unitdir}/zabbix_server.service
|
||||
%{_unitdir}/zabbix_server.service.requires
|
||||
%{_tmpfilesdir}/zabbix_server.conf
|
||||
%ghost %{_sysconfdir}/alternatives/zabbix_server
|
||||
%ghost %{_sysconfdir}/alternatives/zabbix_server.service
|
||||
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}-server
|
||||
|
||||
%files proxy
|
||||
%doc README-SSL.SUSE
|
||||
%{_sbindir}/zabbix_proxy
|
||||
%{_sbindir}/zabbix-proxy
|
||||
%{_sbindir}/rczabbix_proxy
|
||||
%dir %{_sysconfdir}/zabbix
|
||||
%config(noreplace) %attr(0640, root, %{server_group}) %{_sysconfdir}/zabbix/zabbix_proxy.conf
|
||||
%attr(0770,root,%{server_group}) %dir %{_localstatedir}/log/%{server_user}
|
||||
%ghost %attr(0770,root,%{server_group}) %dir %{_rundir}/%{server_user}
|
||||
%{_mandir}/man8/zabbix_proxy.8%{?ext_man}
|
||||
%{_unitdir}/zabbix_proxy.service
|
||||
%{_unitdir}/zabbix_proxy.service.requires
|
||||
%{_tmpfilesdir}/zabbix_proxy.conf
|
||||
%ghost %{_sysconfdir}/alternatives/zabbix_proxy
|
||||
%ghost %{_sysconfdir}/alternatives/zabbix_proxy.service
|
||||
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}-proxy
|
||||
|
||||
%files agent
|
||||
%doc README-SSL.SUSE
|
||||
%dir %{_sysconfdir}/zabbix
|
||||
%config(noreplace) %attr(0640, root, %{agent_group}) %{_sysconfdir}/zabbix/zabbix_agent*.conf
|
||||
%{_sbindir}/rczabbix_agentd
|
||||
%{_sbindir}/zabbix_agentd
|
||||
%{_sbindir}/zabbix-agentd
|
||||
%{_sbindir}/zabbix_sender
|
||||
%{_sbindir}/zabbix-sender
|
||||
%attr(0770,root,%{agent_group}) %dir %{_localstatedir}/log/%{agent_user}
|
||||
%ghost %attr(0770,root,%{agent_group}) %dir %{_rundir}/%{agent_user}
|
||||
%{_mandir}/man8/zabbix_agentd.8%{?ext_man}
|
||||
%{_mandir}/man1/zabbix_sender.1%{?ext_man}
|
||||
%{_unitdir}/zabbix_agentd.service
|
||||
%{_tmpfilesdir}/zabbix_agentd.conf
|
||||
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}-agent
|
||||
|
||||
%files ui
|
||||
%doc README.SUSE
|
||||
%dir %{apache_sysconfdir}
|
||||
%dir %{apache_sysconfdir}/conf.d
|
||||
%config(noreplace) %{apache_sysconfdir}/conf.d/zabbix.conf
|
||||
%{_datadir}/zabbix
|
||||
|
||||
%files server-mysql
|
||||
%{_sbindir}/zabbix_server-mysql
|
||||
%{_sbindir}/zabbix_server
|
||||
%ghost %{_sysconfdir}/alternatives/zabbix_server
|
||||
|
||||
%files server-postgresql
|
||||
%{_sbindir}/zabbix_server-postgresql
|
||||
%{_sbindir}/zabbix_server
|
||||
%ghost %{_sysconfdir}/alternatives/zabbix_server
|
||||
|
||||
%files proxy-mysql
|
||||
%{_sbindir}/zabbix_proxy-mysql
|
||||
%{_sbindir}/zabbix_proxy
|
||||
%ghost %{_sysconfdir}/alternatives/zabbix_proxy
|
||||
|
||||
%files proxy-postgresql
|
||||
%{_sbindir}/zabbix_proxy-postgresql
|
||||
%{_sbindir}/zabbix_proxy
|
||||
%ghost %{_sysconfdir}/alternatives/zabbix_proxy
|
||||
|
||||
%files proxy-sqlite
|
||||
%{_sbindir}/zabbix_proxy-sqlite
|
||||
%{_sbindir}/zabbix_proxy
|
||||
%ghost %{_sysconfdir}/alternatives/zabbix_proxy
|
||||
|
||||
%files java-gateway
|
||||
%dir %{_sysconfdir}/zabbix
|
||||
%config(noreplace) %attr(0640, root, %{server_group}) %{_sysconfdir}/zabbix/zabbix-java-gateway.conf
|
||||
%config(noreplace) %attr(0640, root, %{server_group}) %{_sysconfdir}/zabbix/zabbix-java-gateway-log.xml
|
||||
%dir %{_prefix}/lib/zabbix-java-gateway
|
||||
%{_bindir}/zabbix-java-gateway
|
||||
%{_prefix}/lib/zabbix-java-gateway/zabbix-java-gateway-%{version}%{?rclevel}.jar
|
||||
%{_prefix}/lib/zabbix-java-gateway/android-json-4.3_r3.1.jar
|
||||
%{_prefix}/lib/zabbix-java-gateway/slf4j-api-1.7.32.jar
|
||||
%{_prefix}/lib/zabbix-java-gateway/logback-core-1.2.9.jar
|
||||
%{_prefix}/lib/zabbix-java-gateway/logback-classic-1.2.9.jar
|
||||
%{_sbindir}/rczabbix-java-gateway
|
||||
%attr(0770,root,%{server_group}) %dir %{_localstatedir}/log/%{server_user}
|
||||
%ghost %attr(0770,root,%{server_group}) %dir %{_rundir}/%{server_user}
|
||||
%{_unitdir}/zabbix-java-gateway.service
|
||||
%{_tmpfilesdir}/zabbix-java-gateway.conf
|
||||
|
||||
%files -n system-user-zabbix
|
||||
%{_sysusersdir}/system-user-zabbix.conf
|
||||
|
||||
%changelog
|
Loading…
x
Reference in New Issue
Block a user