Sponsoring - Zabbix Agent für IPFire - Kosten/Aufwand?
-
- Posts: 14
- Joined: February 23rd, 2016, 6:54 pm
Sponsoring - Zabbix Agent für IPFire - Kosten/Aufwand?
Hallo Forum,
hat jemand Zeit und Lust, den aktuellen Zabbix-Client als AddOn in IPfire zu implementieren?
Wichtig ist mindestens Version 3.4,mit libssl (damit Verschlüsselung geht) und updatesicher.
Bei mir läuft aktuell das ganze ohne libssl und manuell ins System gefummelt.
Ich wäre bereit, einen Teil der "Entwicklungskosten" zu übernehmen, wenn das jemand beziffern kann.
Danke. VG.
Siegmar
hat jemand Zeit und Lust, den aktuellen Zabbix-Client als AddOn in IPfire zu implementieren?
Wichtig ist mindestens Version 3.4,mit libssl (damit Verschlüsselung geht) und updatesicher.
Bei mir läuft aktuell das ganze ohne libssl und manuell ins System gefummelt.
Ich wäre bereit, einen Teil der "Entwicklungskosten" zu übernehmen, wenn das jemand beziffern kann.
Danke. VG.
Siegmar
Re: Sponsoring - Zabbix Agent für IPFire - Kosten/Aufwand?
Hallo Siegmar,
Bauen lässt sich das alles denke ich es braucht wie immer Leute die das dann auch Testen, Rückmeldung geben und auch mit am Ball bleiben
.
Eine Idee könnte sein:
1) Gebaut, getestet und entwickelt wird im Forum.
2) Wenn das geklappt hat, wird ein Paket in der Dev. Mailinglist --> https://lists.ipfire.org/pipermail/development/ vorgestellt.
3) Bei Akzeptanz, LFS/ROOTFILE/CONFIG etc. pushen und ein Wiki schreiben, wenn nicht wird das halt ein inoffizielles Paket.
Oder halt anders
A) Formulieren was schön wäre und an die Wishlist --> https://wishlist.ipfire.org/ schreiben vielleicht gibt es da ja auch Resonanz für diese Feature... <-- hab gerade gesehen das die Wishlist derzeit nicht aktiv ist !! OK dann halt anders
.
So als schnelle Idee mal.
Wenn du Lust auf Prozedur 1..3 hast wäre eine erster Schritt die compile options, config für Zabbix mal zu finden bzw. was soll das Paket denn alles können ?
Grüsse,
UE
wo hast du denn diese Version her ?sb@plzk.de wrote: ↑January 6th, 2018, 10:16 pmBei mir läuft aktuell das ganze ohne libssl und manuell ins System gefummelt.
Zeit und Lust gab es zu dem Thema schon mal --> viewtopic.php?t=8158 allerdings waren die Testings (bzw. Unterstützung) irgendwann nicht mehr gegeben.sb@plzk.de wrote: ↑January 6th, 2018, 10:16 pmhat jemand Zeit und Lust, den aktuellen Zabbix-Client als AddOn in IPfire zu implementieren?
Wichtig ist mindestens Version 3.4,mit libssl (damit Verschlüsselung geht) und updatesicher.
Bauen lässt sich das alles denke ich es braucht wie immer Leute die das dann auch Testen, Rückmeldung geben und auch mit am Ball bleiben

Eine Idee könnte sein:
1) Gebaut, getestet und entwickelt wird im Forum.
2) Wenn das geklappt hat, wird ein Paket in der Dev. Mailinglist --> https://lists.ipfire.org/pipermail/development/ vorgestellt.
3) Bei Akzeptanz, LFS/ROOTFILE/CONFIG etc. pushen und ein Wiki schreiben, wenn nicht wird das halt ein inoffizielles Paket.
Oder halt anders
A) Formulieren was schön wäre und an die Wishlist --> https://wishlist.ipfire.org/ schreiben vielleicht gibt es da ja auch Resonanz für diese Feature... <-- hab gerade gesehen das die Wishlist derzeit nicht aktiv ist !! OK dann halt anders

So als schnelle Idee mal.
Wenn du Lust auf Prozedur 1..3 hast wäre eine erster Schritt die compile options, config für Zabbix mal zu finden bzw. was soll das Paket denn alles können ?
Grüsse,
UE
-
- Posts: 14
- Joined: February 23rd, 2016, 6:54 pm
Re: Sponsoring - Zabbix Agent für IPFire - Kosten/Aufwand?
Hi,
ich hab das pre-compiled Binary genommen von zabbix.com
https://www.zabbix.com/downloads/3.2.0/ ... d64.tar.gz
Dem fehlt jedoch libssl.
ich hab das pre-compiled Binary genommen von zabbix.com
https://www.zabbix.com/downloads/3.2.0/ ... d64.tar.gz
Dem fehlt jedoch libssl.
Re: Sponsoring - Zabbix Agent für IPFire - Kosten/Aufwand?
Guten Abend,
schau dir mal den configure durch:
configure help sieht so aus:
wenn noch was fehlt müsstest du bescheid geben allerdings brauch ich noch weitere Infos von dir z.b. wie startet Zabbix (Initscript) ? Die Privilegien müssten noch reduziert werden (extra User eigene Gruppe) ?
UE
schau dir mal den configure durch:
Code: Select all
Configuration:
Detected OS: linux-gnu
Install path: /usr
Compilation arch: linux
Compiler: gcc
Compiler flags: -O2 -pipe -Wall -fexceptions -fPIC -m64 -mtune=generic -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4
Library-specific flags:
TLS: -I/usr/include
Enable server: no
Enable proxy: no
Enable agent: yes
Agent details:
TLS: OpenSSL
Linker flags: -L/usr/lib -rdynamic
Libraries: -lssl -lcrypto -lm -ldl -lresolv -lpcreposix -lpcre
Enable Java gateway: no
LDAP support: no
IPv6 support: no
Code: Select all
`configure' configures Zabbix 3.4.5 to adapt to many kinds of systems.
Usage: ./configure [OPTION]... [VAR=VALUE]...
To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE. See below for descriptions of some of the useful variables.
Defaults for the options are specified in brackets.
Configuration:
-h, --help display this help and exit
--help=short display options specific to this package
--help=recursive display the short help of all the included packages
-V, --version display version information and exit
-q, --quiet, --silent do not print `checking ...' messages
--cache-file=FILE cache test results in FILE [disabled]
-C, --config-cache alias for `--cache-file=config.cache'
-n, --no-create do not create output files
--srcdir=DIR find the sources in DIR [configure dir or `..']
Installation directories:
--prefix=PREFIX install architecture-independent files in PREFIX
[/usr/local]
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
[PREFIX]
By default, `make install' will install all the files in
`/usr/local/bin', `/usr/local/lib' etc. You can specify
an installation prefix other than `/usr/local' using `--prefix',
for instance `--prefix=$HOME'.
For better control, use the options below.
Fine tuning of the installation directories:
--bindir=DIR user executables [EPREFIX/bin]
--sbindir=DIR system admin executables [EPREFIX/sbin]
--libexecdir=DIR program executables [EPREFIX/libexec]
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
--runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
--libdir=DIR object code libraries [EPREFIX/lib]
--includedir=DIR C header files [PREFIX/include]
--oldincludedir=DIR C header files for non-gcc [/usr/include]
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
--infodir=DIR info documentation [DATAROOTDIR/info]
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
--mandir=DIR man documentation [DATAROOTDIR/man]
--docdir=DIR documentation root [DATAROOTDIR/doc/zabbix]
--htmldir=DIR html documentation [DOCDIR]
--dvidir=DIR dvi documentation [DOCDIR]
--pdfdir=DIR pdf documentation [DOCDIR]
--psdir=DIR ps documentation [DOCDIR]
Program names:
--program-prefix=PREFIX prepend PREFIX to installed program names
--program-suffix=SUFFIX append SUFFIX to installed program names
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
System types:
--build=BUILD configure for building on BUILD [guessed]
--host=HOST cross-compile to build programs to run on HOST [BUILD]
Optional Features:
--disable-option-checking ignore unrecognized --enable/--with options
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--enable-silent-rules less verbose build output (undo: "make V=1")
--disable-silent-rules verbose build output (undo: "make V=0")
--enable-dependency-tracking
do not reject slow dependency extractors
--disable-dependency-tracking
speeds up one-time build
--disable-largefile omit support for large files
--enable-static Build statically linked binaries
--enable-server Turn on build of Zabbix server
--enable-proxy Turn on build of Zabbix proxy
--enable-agent Turn on build of Zabbix agent and client utilities
--enable-java Turn on build of Zabbix Java gateway
--enable-ipv6 Turn on support of IPv6
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
--with-ibm-db2=[ARG] use IBM DB2 CLI from given sqllib directory
(ARG=path); use /home/db2inst1/sqllib (ARG=yes);
disable IBM DB2 support (ARG=no)
--with-ibm-db2-include=[DIR]
use IBM DB2 CLI headers from given path
--with-ibm-db2-lib=[DIR]
use IBM DB2 CLI libraries from given path
--with-mysql[=ARG] use MySQL client library [default=no], optionally
specify path to mysql_config
--with-oracle=[ARG] use Oracle OCI API from given Oracle home
(ARG=path); use existing ORACLE_HOME (ARG=yes);
disable Oracle OCI support (ARG=no)
--with-oracle-include=[DIR]
use Oracle OCI API headers from given path
--with-oracle-lib=[DIR] use Oracle OCI API libraries from given path
--with-postgresql[=ARG] use PostgreSQL library [default=no], optionally
specify path to pg_config
--with-sqlite3[=ARG] use SQLite 3 library [default=no], optionally
specify the prefix for sqlite3 library
If you want to use Jabber protocol for messaging:
--with-jabber[=DIR] Include Jabber support [default=no]. DIR is the
iksemel library install directory.
If you want to use XML library:
--with-libxml2[=ARG] use libxml2 client library [default=no], optionally
specify path to xml2-config
If you want to use unixODBC library:
--with-unixodbc[=ARG] use ODBC driver against unixODBC package
[default=no], optionally specify full path to
odbc_config binary.
If you want to use Net-SNMP library:
--with-net-snmp[=ARG] use Net-SNMP package [default=no], optionally
specify path to net-snmp-config
If you want to use SSH2 based checks:
--with-ssh2[=DIR] use SSH2 package [default=no], DIR is the SSH2
library install directory.
If you want to check IPMI devices:
--with-openipmi[=DIR] Include OPENIPMI support [default=no]. DIR is the
OPENIPMI base install directory, default is to
search through a number of common places for the
OPENIPMI files.
If you want to specify libevent installation directories:
--with-libevent[=DIR] use libevent from given base install directory
(DIR), default is to search through a number of
common places for the libevent files.
--with-libevent-include[=DIR]
use libevent include headers from given path.
--with-libevent-lib[=DIR]
use libevent libraries from given path.
If you want to specify libpcre installation directories:
--with-libpcre[=DIR] use libpcre from given base install directory (DIR),
default is to search through a number of common
places for the libpcre files.
--with-libpcre-include[=DIR]
use libpcre include headers from given path.
--with-libpcre-lib[=DIR]
use libpcre libraries from given path.
If you want to use encryption provided by mbed TLS (PolarSSL) library:
--with-mbedtls[=DIR] use mbed TLS (PolarSSL) package [default=no], DIR is
the libpolarssl install directory.
If you want to use encryption provided by GnuTLS library:
--with-gnutls[=DIR] use GnuTLS package [default=no], DIR is the
libgnutls install directory.
If you want to use encryption provided by OpenSSL library:
--with-openssl[=DIR] use OpenSSL package [default=no], DIR is the libssl
and libcrypto install directory.
If you want to check LDAP servers:
--with-ldap[=DIR] Include LDAP support [default=no]. DIR is the LDAP
base install directory, default is to search through
a number of common places for the LDAP files.
If you want to use cURL library:
--with-libcurl[=DIR] use cURL package [default=no], optionally specify
path to curl-config
If you want to specify iconv installation directories:
--with-iconv[=DIR] use iconv from given base install directory (DIR),
default is to search through a number of common
places for the iconv files.
--with-iconv-include[=DIR]
use iconv include headers from given path.
--with-iconv-lib[=DIR] use iconv libraries from given path.
Some influential environment variables:
CC C compiler command
CFLAGS C compiler flags
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
nonstandard directory <lib dir>
LIBS libraries to pass to the linker, e.g. -l<library>
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
you have headers in a nonstandard directory <include dir>
CPP C preprocessor
PKG_CONFIG path to pkg-config utility
PKG_CONFIG_PATH
directories to add to pkg-config's search path
PKG_CONFIG_LIBDIR
path overriding pkg-config's built-in search path
IKSEMEL_CFLAGS
C compiler flags for IKSEMEL, overriding pkg-config
IKSEMEL_LIBS
linker flags for IKSEMEL, overriding pkg-config
Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.
Report bugs to the package provider.
UE
-
- Posts: 14
- Joined: February 23rd, 2016, 6:54 pm
Re: Sponsoring - Zabbix Agent für IPFire - Kosten/Aufwand?
sieht gut aus. Ja zabbix läuft nicht als root. Eigener Benutzer zabbix.
Start per Init-Skript muss nicht sein. Es reicht ein su zabbix -c "agent -c agent.conf"
Start per Init-Skript muss nicht sein. Es reicht ein su zabbix -c "agent -c agent.conf"
Re: Sponsoring - Zabbix Agent für IPFire - Kosten/Aufwand?
Hi sb@ plzk.de,
sieht gerade so aus:
Neues IPFire Zabbix Paket installiert:
Prozess:
Netstat:
Verzeichnisse und permissions:
Log:
Habe derzeit keinen Zabbix Server weswegen er sich auch nicht verbinden kann.
User und Gruppe 'zabbix' werden bei Installation gesetzt -->
. Initskript hab ich auch mal geschrieben
und Runlevels gesetzt
. Meta File für´s WUI ist auch da -->

und die config mal auf das nötigste angepasst... Sieht bis jetzt eigentlich ganz gut aus hab aber auch nicht grossartig weiter getestet.
Zwei Fragen an dich:
1) Was für eine Maschine hast du
und
2) Was stellst du dir unter "Sponsoring" - "Kosten/Aufwand" vor ?
Grüsse,
UE
sieht gerade so aus:
Neues IPFire Zabbix Paket installiert:
Code: Select all
[Sun Jan 21 18:11:41] [root@ipfire-prime] ~
-> cd /opt/pakfire/tmp/
[Sun Jan 21 18:11:45] [root@ipfire-prime] /opt/pakfire/tmp
-> ls
zabbix-3.4.5-1.ipfire
[Sun Jan 21 18:11:46] [root@ipfire-prime] /opt/pakfire/tmp
-> tar xvf zabbix-3.4.5-1.ipfire
files.tar.xz
install.sh
uninstall.sh
update.sh
ROOTFILES
[Sun Jan 21 18:11:48] [root@ipfire-prime] /opt/pakfire/tmp
-> ./install.sh
Extracting files...
etc/
etc/rc.d/
etc/rc.d/init.d/
etc/rc.d/init.d/zabbix
etc/zabbix/
etc/zabbix/zabbix_agentd.conf
etc/zabbix/zabbix_agentd.conf.example
etc/zabbix/zabbix_agentd.conf.d/
usr/
usr/sbin/
usr/sbin/zabbix_agentd
usr/bin/
usr/bin/zabbix_get
usr/bin/zabbix_sender
var/
var/log/
var/log/zabbix/
...Finished.
Starting Zabbix agent daemon: zabbix_agentd
[ OK ]
Code: Select all
-> ps aux | grep -v grep | grep zabbix
zabbix 26473 0.0 0.0 25788 1100 ? S 18:11 0:00 zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf
zabbix 26474 0.0 0.0 25788 1396 ? S 18:11 0:00 zabbix_agentd: collector [idle 1 sec]
zabbix 26475 0.0 0.0 27924 1636 ? S 18:11 0:00 zabbix_agentd: listener #1 [waiting for connection]
zabbix 26476 0.0 0.0 27924 1636 ? S 18:11 0:00 zabbix_agentd: listener #2 [waiting for connection]
zabbix 26477 0.0 0.0 27924 1636 ? S 18:11 0:00 zabbix_agentd: listener #3 [waiting for connection]
zabbix 26478 0.0 0.0 28056 1880 ? S 18:11 0:00 zabbix_agentd: active checks #1 [idle 1 sec]
Code: Select all
-> netstat -tulpn | grep zabbix
tcp 0 0 0.0.0.0:10050 0.0.0.0:* LISTEN 26473/zabbix_agentd
Code: Select all
-> ll /etc/zabbix/ /var/run/zabbix/ /var/log/zabbix/
/etc/zabbix/:
total 24
-rw-r--r-- 1 root root 10532 Jan 21 14:37 zabbix_agentd.conf
drwxr-xr-x 2 root root 6 Jan 17 09:03 zabbix_agentd.conf.d
-rw-r--r-- 1 root root 10438 Jan 20 12:21 zabbix_agentd.conf.example
/var/log/zabbix/:
total 4
-rw-rw-r-- 1 zabbix zabbix 915 Jan 21 18:11 zabbix_agentd.log
/var/run/zabbix/:
total 4
-rw-rw-r-- 1 zabbix zabbix 5 Jan 21 18:11 zabbix_agent.pid
Code: Select all
[Sun Jan 21 18:13:47] [root@ipfire-prime] /
-> cat /var/log/zabbix/zabbix_agentd.log
26473:20180121:181151.443 Starting Zabbix Agent [Zabbix server]. Zabbix 3.4.5 (revision 76340).
26473:20180121:181151.444 **** Enabled features ****
26473:20180121:181151.444 IPv6 support: NO
26473:20180121:181151.444 TLS support: YES
26473:20180121:181151.444 **************************
26473:20180121:181151.444 using configuration file: /etc/zabbix/zabbix_agentd.conf
26473:20180121:181151.445 agent #0 started [main process]
26474:20180121:181151.446 agent #1 started [collector]
26475:20180121:181151.448 agent #2 started [listener #1]
26477:20180121:181151.449 agent #4 started [listener #3]
26478:20180121:181151.449 agent #5 started [active checks #1]
26476:20180121:181151.450 agent #3 started [listener #2]
26478:20180121:181151.466 active check configuration update from [127.0.0.1:10051] started to fail (cannot connect to [[127.0.0.1]:10051]: [111] Connection refused)
User und Gruppe 'zabbix' werden bei Installation gesetzt -->
Code: Select all
-> cat /etc/passwd /etc/group | grep zabbix && ll /home/zabbix
zabbix:x:1006:1006::/home/zabbix:/bin/false
zabbix:x:1006:
ls: cannot access '/home/zabbix': No such file or directory
Code: Select all
-> /etc/init.d/zabbix
Usage: /etc/init.d/zabbix_agentd {start|stop|restart|status}
Code: Select all
-> ls /etc/rc.d/rc*.d | grep zabbix
K71zabbix
S14zabbix
K71zabbix

und die config mal auf das nötigste angepasst... Sieht bis jetzt eigentlich ganz gut aus hab aber auch nicht grossartig weiter getestet.
Zwei Fragen an dich:
1) Was für eine Maschine hast du
Code: Select all
uname -m
2) Was stellst du dir unter "Sponsoring" - "Kosten/Aufwand" vor ?
Grüsse,
UE
-
- Posts: 14
- Joined: February 23rd, 2016, 6:54 pm
Re: Sponsoring - Zabbix Agent für IPFire - Kosten/Aufwand?
Hi,
das sieht ja sehr gut aus. Es würde ein x64-Paket reichen.
Wichtig wäre für das Sponsoring, dass es den Weg in die offiziellen IPFire-Quellen findet und dort auch mehr oder weniger aktuell gehalten wird. Spricht dass es dauerhaft einfach installiert werden kann ohne manuelle Arbeit.
Kannst du deinen Aufwand in Stunden/Kosten beziffern? Wenn du eine Zahl nennen kannst, klär ich das intern.
Gern auch per E-Mail - ist mein Benutzername.
das sieht ja sehr gut aus. Es würde ein x64-Paket reichen.
Wichtig wäre für das Sponsoring, dass es den Weg in die offiziellen IPFire-Quellen findet und dort auch mehr oder weniger aktuell gehalten wird. Spricht dass es dauerhaft einfach installiert werden kann ohne manuelle Arbeit.
Kannst du deinen Aufwand in Stunden/Kosten beziffern? Wenn du eine Zahl nennen kannst, klär ich das intern.
Gern auch per E-Mail - ist mein Benutzername.
Re: Sponsoring - Zabbix Agent für IPFire - Kosten/Aufwand?
Hi UE,
geiler Scheiß
Ich hab auch grade ein Zabbix in der Firma. Würde mich auch brennend interessieren 
Da ich aber noch auf der 111er und noch nicht aktuell auf der 118er bin stellt sich mir die Frage würde dies auch noch funktionieren?
Ich bleib zwar nicht mehr lang auf der 111er aber ich muss erst gocard mailproxy setting für mich umändern bevor ich aktiv schwenken kann. Dies kann noch a bissal dauern.
Schreib mir auch gern eine PM oder Mail, falls du ein kleines sponsoring benötigst.
Ach ja, sponsoring. Muss den Chef anhauen wegen IPFire Spende. Habe ich dieses Jahr noch nicht angeleiert.
VG, 5p9
geiler Scheiß


Da ich aber noch auf der 111er und noch nicht aktuell auf der 118er bin stellt sich mir die Frage würde dies auch noch funktionieren?
Ich bleib zwar nicht mehr lang auf der 111er aber ich muss erst gocard mailproxy setting für mich umändern bevor ich aktiv schwenken kann. Dies kann noch a bissal dauern.

Schreib mir auch gern eine PM oder Mail, falls du ein kleines sponsoring benötigst.
Ach ja, sponsoring. Muss den Chef anhauen wegen IPFire Spende. Habe ich dieses Jahr noch nicht angeleiert.
VG, 5p9
-
- Posts: 11
- Joined: November 16th, 2017, 9:44 am
Re: Sponsoring - Zabbix Agent für IPFire - Kosten/Aufwand?
Hallo,
gibt es jetzt das Zabbix Paket? Kostenlos oder Kostenpflichtig? Was soll es kosten?
Danke im Voraus.
Gruß
Der Rocker
gibt es jetzt das Zabbix Paket? Kostenlos oder Kostenpflichtig? Was soll es kosten?
Danke im Voraus.
Gruß
Der Rocker
-
- Posts: 7
- Joined: November 16th, 2015, 4:04 pm
Re: Sponsoring - Zabbix Agent für IPFire - Kosten/Aufwand?
Hallo,
ich möchte das Thema gerne einmal aufwärmen. Ich hatte mir mal selbst im April 2017 den Agent in der Version 3.2.5 gebaut und dabei angefangen das ipfire-Build-System zu lernen. Ich wollte das eigentlich auch mal in Richtung offizielles Addon vorran bringen. Leider bin ich da alleine (noch) nicht kompetent genug für und dann irgendwo unterwegs abgestorben... es lief ja lokal bei mir erstmal auf den beiden Büchsen aus meiner Signatur
Den TLS-Support habe ich nur nicht hinbekommen. Habe wohl irgendwie nicht den richten Pfad für openssl mitgegeben.
Dann kam ein Core-Update (120 --> 122) im August 2018 und nix ging mehr (Fehlermeldung: zabbix_agentd[12976] vsyscall attempted with vsyscall=none ip:ffffffffff600000 cs:33 sp:7ffdf5f745d8 ax:ffffffffff600000 si:0 di:7ffdf5f745f0). Ich hab dann nochmal versucht den im aktuellen Core neu zu bauen, hab mich aber irgendwo zu doof angestellt und das Thema dann erstmal aus den Augen verloren.
Wenn ich den letzten Stand im Thread richtig verstehe, war das Pakfire-Paket (Version 3.4.5) eigentlich fertig und es fehlte im wesentlichen "nur" noch Testen, Doku und dann in die Mailingliste schreiben. Aber an der nötigen Unterstützung fehlte es dann wohl leider. Ich habe zwei Zabbix-Server (1x Produktiv auf Arbeit, einmal Zuhause zum Eigenbedarf) laufen und kann gerne testen bis der Arzt kommt.
Das sind meine letzten Dateien (wie gesagt, meine ersten Gehversuche ... bestimmt auch Müll drin):
LFS (ohne TLS-Support):
Initscript (von netsnmpd abgekupfert):
Minimalconfig zabbix_agentd.conf-Muster mit TLS-Support (PSK):
Magst du den Agent nochmal in der aktuellen LTS-Version 4.0 (vom 01.10.18, Laufzeit i.d.R. 1,5 Jahre) durchcompilieren und mir zum Testen geben? Den Wiki-Beitrag schreiben könnte ich dann ggf. auch schreiben, wenn es soweit ist. Der Pflegeaufwand müsste bei dem LTS-Paket eigentlich relativ gering sein.
ich möchte das Thema gerne einmal aufwärmen. Ich hatte mir mal selbst im April 2017 den Agent in der Version 3.2.5 gebaut und dabei angefangen das ipfire-Build-System zu lernen. Ich wollte das eigentlich auch mal in Richtung offizielles Addon vorran bringen. Leider bin ich da alleine (noch) nicht kompetent genug für und dann irgendwo unterwegs abgestorben... es lief ja lokal bei mir erstmal auf den beiden Büchsen aus meiner Signatur

Dann kam ein Core-Update (120 --> 122) im August 2018 und nix ging mehr (Fehlermeldung: zabbix_agentd[12976] vsyscall attempted with vsyscall=none ip:ffffffffff600000 cs:33 sp:7ffdf5f745d8 ax:ffffffffff600000 si:0 di:7ffdf5f745f0). Ich hab dann nochmal versucht den im aktuellen Core neu zu bauen, hab mich aber irgendwo zu doof angestellt und das Thema dann erstmal aus den Augen verloren.
Wenn ich den letzten Stand im Thread richtig verstehe, war das Pakfire-Paket (Version 3.4.5) eigentlich fertig und es fehlte im wesentlichen "nur" noch Testen, Doku und dann in die Mailingliste schreiben. Aber an der nötigen Unterstützung fehlte es dann wohl leider. Ich habe zwei Zabbix-Server (1x Produktiv auf Arbeit, einmal Zuhause zum Eigenbedarf) laufen und kann gerne testen bis der Arzt kommt.
Das sind meine letzten Dateien (wie gesagt, meine ersten Gehversuche ... bestimmt auch Müll drin):
LFS (ohne TLS-Support):
Code: Select all
###############################################################################
# #
# IPFire.org - A linux based firewall #
# Copyright (C) 2015 IPFire Team <info@ipfire.org> #
# #
# This program is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
# the Free Software Foundation, either version 3 of the License, or #
# (at your option) any later version. #
# #
# This program is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# GNU General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with this program. If not, see <http://www.gnu.org/licenses/>. #
# #
###############################################################################
###############################################################################
# Definitions
###############################################################################
include Config
VER = 3.2.5
THISAPP = zabbix-$(VER)
DL_FILE = $(THISAPP).tar.gz
DL_FROM = $(URL_IPFIRE)
DIR_APP = $(DIR_SRC)/$(THISAPP)
TARGET = $(DIR_INFO)/$(THISAPP)
PROG = zabbix_agentd
PAK_VER = 1
DEPS = ""
###############################################################################
# Top-level Rules
###############################################################################
objects = $(DL_FILE)
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
$(DL_FILE)_MD5 = f11b81316b07ebb7665b1a003a8a16e0
install : $(TARGET)
check : $(patsubst %,$(DIR_CHK)/%,$(objects))
download :$(patsubst %,$(DIR_DL)/%,$(objects))
md5 : $(subst %,%_MD5,$(objects))
dist:
@$(PAK)
###############################################################################
# Downloading, checking, md5sum
###############################################################################
$(patsubst %,$(DIR_CHK)/%,$(objects)) :
@$(CHECK)
$(patsubst %,$(DIR_DL)/%,$(objects)) :
@$(LOAD)
$(subst %,%_MD5,$(objects)) :
@$(MD5)
###############################################################################
# Installation Details
###############################################################################
$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
@$(PREBUILD)
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axvf $(DIR_DL)/$(DL_FILE)
cd $(DIR_APP) && ./configure \
--prefix=/usr \
--enable-agent \
--enable-static \
--sysconfdir="/etc/zabbix"
cd $(DIR_APP) && make
cd $(DIR_APP) && make install
# Create config directory and create files.
-mkdir -pv /etc/zabbix/zabbix_agentd.d
install -v -m 644 $(DIR_SRC)/config/zabbix/zabbix_agentd.conf /etc/zabbix/zabbix_agentd.conf
# Create directory and file for logging.
-mkdir -pv /var/log/zabbix
chown zabbix.zabbix /var/log/zabbix
touch /var/log/zabbix/zabbix_agentd.log
chown zabbix.zabbix /var/log/zabbix/zabbix_agentd.log
# Create directory for pid.
-mkdir -pv /var/run/zabbix
chown zabbix.zabbix /var/run/zabbix
#install initscripts
$(call INSTALL_INITSCRIPT,zabbix_agentd)
# Create symlinks for runlevel interaction.
ln -sf ../init.d/zabbix_agentd /etc/rc.d/rc3.d/S65zabbix_agentd
ln -sf ../init.d/zabbix_agentd /etc/rc.d/rc0.d/K02zabbix_agentd
ln -sf ../init.d/zabbix_agentd /etc/rc.d/rc6.d/K02zabbix_agentd
# ToDo: Install include file for backup.
# ToDo: Logrotate.
@rm -rf $(DIR_APP)
@$(POSTBUILD)
Code: Select all
#!/bin/sh
########################################################################
# Begin $rc_base/init.d/zabbix_agentd
#
# Description : This is a script that starts zabbix_agent as deamon
#
# Authors : Starkstromkonsument (...@...)
#
# Version : 01.00
#
# Notes :
#
########################################################################
. /etc/sysconfig/rc
. ${rc_functions}
NAME=zabbix_agentd
DAEMON=/usr/sbin/$NAME
DESC="Zabbix agent"
test -x $DAEMON || exit 0
case "${1}" in
start)
boot_mesg "Starting $NAME ..."
loadproc $DAEMON -c /etc/zabbix/zabbix_agentd.conf > /dev/null
evaluate_retval
;;
stop)
boot_mesg "Stopping $NAME ..."
killproc $DAEMON
;;
restart)
${0} stop
sleep 1
${0} start
;;
status)
statusproc $DAEMON
;;
*)
echo "Usage: ${0} {start|stop|restart|status}"
exit 1
;;
esac
# End $rc_base/init.d/zabbix_agentd
Code: Select all
# This is a configuration file for Zabbix agent daemon (Unix)
# To get more information about Zabbix, visit http://www.zabbix.com
PidFile=/var/run/zabbix/zabbix_agentd.pid
LogFile=/var/log/zabbix/zabbix_agentd.log
Server=<CHANGE ME TO SERVER IP>
ServerActive=<CHANGE ME TO SERVER IP>
Hostname=<CHANGE ME>
Include=/etc/zabbix/zabbix_agentd.d/*.conf
TLSConnect=psk
TLSAccept=psk
TLSPSKIdentity=<CHANGE ME>
TLSPSKFile=/etc/zabbix/zabbix_agentd.psk
-
- Posts: 7
- Joined: November 16th, 2015, 4:04 pm
Re: Sponsoring - Zabbix Agent für IPFire - Kosten/Aufwand?
Oh, ähm Entschuldigung. Habe gerade erst dieses Thema gefunden: viewtopic.php?f=52&t=22039 Da wäre mein Post wohl besser platziert gewesen ...