Bug 212907 - New port: net-mgmt/naemon-core Naemon monitoring suite based on Nagios (naemon-core)
Summary: New port: net-mgmt/naemon-core Naemon monitoring suite based on Nagios (naemo...
Status: Closed Feedback Timeout
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks: 212906
  Show dependency treegraph
 
Reported: 2016-09-22 19:24 UTC by pcm
Modified: 2024-01-15 17:55 UTC (History)
5 users (show)

See Also:


Attachments
poudriere testport logs and naemon-core.shar (28.06 KB, application/x-xz)
2016-09-22 19:24 UTC, pcm
no flags Details
Added devel/gperf as depedency for FreeBSD >= 1100000 (252 bytes, patch)
2016-10-24 22:46 UTC, pcm
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description pcm 2016-09-22 19:24:09 UTC
Created attachment 175074 [details]
poudriere testport logs and naemon-core.shar

Hi,

Naemon is the new monitoring suite that aims to be fast, stable and innovative while giving you a clear view of the state of your network and applications.

After about a month of work i got a working port of www.naemon.org. This port is the port of naemon-core. It needs on net-mgmt/naemon to run and for a full naemon suite www/thruk needs to be installed.

portlint -AC:
WARN: Makefile: possible use of absolute pathname "/var/spool/naemon".
WARN: Makefile: possible use of absolute pathname "/var/spool/naemon".
WARN: Makefile: no ftp/http mirror in MASTER_SITES for users behind a proxy.
WARN: Makefile: "BUILD_DEPENDS" has to appear earlier.
0 fatal errors and 4 warnings found.

I've attached the poudriere testport logs and also the naemon-core.shar.

Cheers,
Daniel Schossig
Comment 1 Kurt Jaeger freebsd_committer freebsd_triage 2016-10-13 19:08:45 UTC
Fails to build on 12a, 11a with:

checking for gperf... no
configure: error: You need to install gperf <https://www.gnu.org/software/gperf/> before building.
===>  Script "configure" failed unexpectedly.
Please report the problem to pcm@pogotopia.net [maintainer] and attach the
"/wrkdirs/usr/ports/net-mgmt/naemon-core/work/naemon-core-1.0.5/config.log"
including the output of the failure of your make command. Also, it might be
a good idea to provide an overview of all packages installed on your system
(e.g. a /usr/local/sbin/pkg-static info -g -Ea).
*** Error code 1
Comment 2 pcm 2016-10-24 22:46:18 UTC
Created attachment 176125 [details]
Added devel/gperf as depedency for FreeBSD >= 1100000

Added devel/gperf as depedency for FreeBSD >= 1100000
Comment 3 Kurt Jaeger freebsd_committer freebsd_triage 2016-10-25 05:35:16 UTC
testbuilds@work
Comment 4 Kurt Jaeger freebsd_committer freebsd_triage 2016-10-25 19:08:38 UTC
(In reply to Kurt Jaeger from comment #3)
Now 12a and 11a proceed further down the build, but fail with:

http://people.freebsd.org/~pi/logs/net-mgmt__naemon-core-cur-1477373685.txt

Can you investigate ?
Comment 5 pcm 2016-10-26 16:16:01 UTC
I'm on it. Somehow my poudriere testport -i and -I aren't working as expected.
Comment 6 pcm 2016-11-02 21:58:52 UTC
It builds fine without poudriere on FreeBSD 11. It doesn't with. Since it's failing on stage i don't have a running jail (with -i or -I) to see further. Well debug more tomorrow & on Friday.
Comment 7 pcm 2016-11-03 17:35:51 UTC
Update: It builds with poudriere when i add WITH_DEBUG= yes. I'm trying to figure out how to use strip from devel/binutils instead of /usr/bin/strip.
Comment 8 Walter Schwarzenfeld freebsd_triage 2018-01-14 04:29:39 UTC
ping!
Comment 9 dereckson 2024-01-15 17:55:47 UTC
I'm currently looking to a naemon test implementation on a FreeBSD server and checked this port proposal as implementation.

The patch-src_naemon_workers.c is problematic if you read the comment fully:

                * ETIME ("Timer expired") doesn't really happen
                * on any modern systems, so we reuse it to mean
                * "program timed out"
                */

It's used elsewhere in the source code, with this header:

#ifndef ETIME
#define ETIME ETIMEDOUT
#endif

That should be fixed upstream by adding the same header in src/naemon/workers.h

I've opened https://github.com/naemon/naemon-core/pull/441 accordingly.