Nagios is a host and service monitor designed to inform you of network
problems before your clients, end-users or managers do. The monitoring
daemon runs intermittent checks on hosts and services you specify
using external "plugins" which return status information to Nagios.
When problems are encountered, the daemon can send notifications out
to administrative contacts in a variety of different ways (email,
instant message, SMS, etc.). Current status information, historical
logs, and reports can all be accessed via a web browser.
===> The following configuration options are available for nagios-3.5.1_12:
EMBEDDED_PERL=off: Enable embedded Perl [requires Perl 5.8.0+]
EVENT_BROKER=off: Enable event broker functionality
NANOSLEEP=off: Use nanosleep in event timing
UNHANDLED_HACK=off: Display passive checks in unhandled queries
====> Build and/or install plugins: you can only select none or one of them
MONPLUGINS=off: Plugins from monitoring-plugins.org
NAGPLUGINS=on: Plugins from nagios-plugins.org
===> Use 'make config' to modify these settings
net-mgmt/nagios: Add monplugins flavor
Some users asked to add a flavor to permit to have nagios already
packaged with monplugins.
PR: 283977
Sponsored by: Klara, Inc.
Approved by: 0mp (mentor)
Approved by: joneum (maintainer)
Differential Revision: https://reviews.freebsd.org/D48146
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
net-mgmt: remove 'Created by' lines
A big Thank You to the original contributors of these ports:
* @BABOLO <.@babolo.ru>
* Alex Samorukov, samm@freebsd.org
* Alexander Kriventsov <avk@vl.ru>
* Alexander Sulfrian <alexander@sulfrian.net>
* Alexander Y. Grigoryev <alexander.4mail@gmail.com>
* Alexandre Biancalana <ale@biancalanas.net>
* Alexandre Snarskii <snar@paranoia.ru>
* Alexandre Snarskii <snar@snar.spb.ru>
* Alexey Bobkov <mr.deadlystorm@gmail.com>
* Alexey Dokuchaev <danfe@FreeBSD.org>
* Alexey V. Degtyarev
(Only the first 15 lines of the commit message are shown above )
*/*: Remove redundant '-*' from CONFLICTS definitions
The conflict checks compare the patterns first against the package
names without version (as reported by "pkg query "%n"), then - if
there was no match - agsinst the full package names including the
version (as reported by "pkg query "%n-%v").
Approved by: portmgr (blanket)
converters/libiconv:
- Remove const qualifier from iconv(3) to match POSIX:
http://pubs.opengroup.org/onlinepubs/9699919799/functions/iconv.html
- Patch iconv.h to expose more GNU extensions when LIBICONV_PLUG is
defined because the base system iconv supports these extensions too.
Add/remove patches to/from ports to call iconv with non-const arguments.
This breaks some ports on FreeBSD 10 because base system iconv.h still has
the const qualifier. Fix this by letting USES=iconv add a build dependency
on converters/libiconv so ports can use its iconv.h (with LIBICONV_PLUG
defined) instead of the base system iconv.h.
This exposed some ports that link with libiconv when it is available instead
of using libc iconv. In these cases one of the following changes has been
(Only the first 15 lines of the commit message are shown above )
Replace USE_AUTOTOOLS=libltdl with an ordinary LIB_DEPENDS in all ports.
There are only 60 such ports so there doesn't need to be a separate
keyword or USES for this.
Approved by: portmgr (bapt)
- Add OPTIONS to either depend on plugins from nagios-plugins.org,
monitoring-plugins.org or neither at all
- Bump PORTREVISION
Approved by: mat (implicit)
Support LIBS like LDFLAGS.
- Add LIBS="${LIBS}" to MAKE_ENV and CONFIGURE_ENV.
- Add an option helper for LIBS.
- Adjust all ports that already use LIBS. Also remove references to
PTHREAD_CFLAGS and PTHREAD_LIBS while here.
- Some ports did not support having a LIBS environment variable and
required additional patches.
Somewhat simplified a linker command line looks like:
${CC} ${src_LDFLAGS} ${LDFLAGS} ${src_LIBS} ${LIBS}
where src_LDFLAGS and src_LIBS are controlled by upstream and LDFLAGS and
LIBS can be controlled by us. If possible -L and -l flags need to be
(Only the first 15 lines of the commit message are shown above )
* Add a patch from upstream fixing a cgi vulnerability[1]
* Cleanup COMMENT
* Rename patches to follow make makepatch naming
* Incorporate a sed into already patched files.
Poked by: ohauer [1]
Security: CVE-2013-7108 CVE-2013-7205
In the rc.d scripts, change assignments to rcvar to use the
literal name_enable wherever possible, and ${name}_enable
when it's not, to prepare for the demise of set_rcvar().
In cases where I had to hand-edit unusual instances also
modify formatting slightly to be more uniform (and in
some cases, correct). This includes adding some $FreeBSD$
tags, and most importantly moving rcvar= to right after
name= so it's clear that one is derived from the other.
- Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)
- Fix all ports that add {CPP,LD}FLAGS to *_ENV to modify flags instead
PR: 157936
Submitted by: myself
Exp-runs by: pav
Approved by: pav
- update nagios-core to 3.2.3. This is a bugfix update only.
Changelog:
* Fixes problem where disabling all active hosts/services was not taking
effect
* Fixes for compiler warnings (code cleanup by Stephen Gran)
* Fixes for format errors in event handler logging (Guillaume Rousse)
* Fixed incorrect info in sample nagios.cfg file for state_retention_file
(Michael Friedrich)
* Fixed broker_event_handler() to return ERR if data is NULL (Michael
Friedrich)
PR: 151661
Submitted by: Alexander Wittig <alexander _at_ wittig.name>
Approved by: maintainer, glarkin(mentor, implicit)
- The nagios documentation
(http://nagios.sourceforge.net/docs/3_0/faststartup.html) recommends,
for faster startup times, pre-caching the configuration file. This patch
adds a "nagios_precache" rcvar which controls using the pre-cache
startup method.
- also fix a trailing \
PR: ports/139848
Submitted by: kimo <kimor79@yahoo.com>
Approved by: maintainer (Jarrod Sayers <jarrod@netleader.com.au>)
-Repocopy devel/libtool15 -> libtool22 and libltdl15 -> libltdl22.
-Update libtool and libltdl to 2.2.6a.
-Remove devel/libtool15 and devel/libltdl15.
-Fix ports build with libtool22/libltdl22.
-Bump ports that depend on libltdl22 due to shared library version change.
-Explain what to do update in the UPDATING.
It has been tested with GNOME2, XFCE4, KDE3, KDE4 and other many wm/desktop
and applications in the runtime.
With help: marcus and kwm
Pointyhat-exp: a few times by pav
Tested by: pgollucci, "Romain Tartière" <romain@blogreen.org>, and
a few MarcusCom CVS users. Also, I might have missed a few.
Repocopy by: marcus
Approved by: portmgr
Fix a few "bad example" problems in the rc.d scripts that have been
propogated by copy and paste.
1. Primarily the "empty variable" default assignment, which is mostly
${name}_flags="", but fix a few others as well.
2. Where they are not already documented, add the existence of the _flags
(or other deleted empties) option to the comments, and in some cases add
comments from scratch.
3. Replace things that look like:
prefix=%%PREFIX%%
command=${prefix}/sbin/foo
to just use %%PREFIX%%. In many cases the $prefix variable is only used
once, and in some cases it is not used at all.
4. In a few cases remove ${name}_flags from command_args
5. Remove a long-stale comment about putting the port's rc.d script in
/etc/rc.d (which is no longer necessary).
No PORTREVISION bumps because all of these changes are noops.
- Fix runtime problem with embedded perl.
- Mark as MAKE_JOBS_UNSAFE.
- Stop using DISTVERSION and use PORTVERSION in net-mgmt/nagios.
PR: ports/134175
Submitted by: Jarrod Sayers <jarrod@netleader.com.au> (maintainer)
- Merge UNHANDLED_HACK option from net-mgmt/nagios-devel. This option
is off by default so do not bump PORTREVISION.
PR: ports/132712
Submitted by: Jarrod Sayers <jarrod@netleader.com.au> (maintainer)
Update to Nagios 3.0.6.
- Fix for CGI submission of external commands (writing newlines and
submitting service comments)
- Fix for Apache group membership in RPM spec file
- Fix for improper notification propagation command processing
- Better out-of-disk-space error handling when writing retention and
status files
- Disabled adaptive check and eventhandler commands for security reasons
- Fix for reading output from system commands (event handlers, etc) that
have timed out
- Added wildcard host matching in CGIs
- Fixes for playing audio alerts in CGIs
- Fix for incorrect host status links in status CGI when viewing
hostgroup summary
- Added support for x509 cert authentication in the CGIs
PR: ports/129409
Submitted by: Jarrod Sayers <jarrod@netleader.com.au> (maintainer)
- Update to 3.0.4
Note:
Included are updated suggestions from ports/128226. The correction to the ping
command has been extended into the online documentation and the -U option
removed as it's not supported. Also, the default for time_change_threshold is
set to that in include/nagios.h.
PR: 128306
Submitted by: Jarrod Sayers <jarrod@netleader.com.au> (maintainer)
- repocopy net-mgmt/nagios -> net-mgmt/nagios2
and connect net-mgmt/nagios2 to the build
- Move net-mgmt/nagios-devel -> net-mgmt/nagios
(v3.0.3)
- Add note to UPDATING
o net-mgmt/nagios [3]
SF Macro
USE_RC_SUBR != yes (rename files/nagios.sh.in -> files/nagios.in)
OPTIONS+= EVENT_BROKER [1]
use @dirrmtry in pkg-plist
o net-mgmt/nagios12 [2]
(Only the first 15 lines of the commit message are shown above )
Bump portrevision due to upgrade of devel/gettext.
The affected ports are the ones with gettext as a run-dependency
according to ports/INDEX-7 (5007 of them) and the ones with USE_GETTEXT
in Makefile (29 of them).
PR: ports/124340
Submitted by: edwin@
Approved by: portmgr (pav)
Link with libthr when available. This should fix the CPU consumption
problem.
PR: ports/120150ports/119766
Submitted by: jarrod@netleader.com.au bernd.kuhlen@wetteronline.de
Approved by: maintainer (implicit) garga (mentor)
Welcome bsd.perl.mk. Add support for constructs such as USE_PERL5=5.8.0+.
Drop support for antique perl.
Work done by: gabor
Sponsored by: Google Summer of Code 2007
Hat: portmgr
- Update to 2.9
Changelog:
- Fix for incorrect performance data file write/append mode options
- Fix for current status of hosts with no host check command defined
- SIGSEGV signals should now be logged again (broken in 2.8)
- Configure script fix for no mail program found/installed on system
- Configure script option bug fixes for cygwin and embedded perl
- Command definitions and host/service plugin perfdata with HTML should now be
escaped in CGIs
- Patch for incorrect time down percentage in availability CGI
- Updated init script to fix a race condition during restarts
PR: 111505
Submitted by: Jarrod Sayers <jarrod@netleader.com.au> (maintainer)
Update to Nagios 2.8:
- Bug fix for calculating notification interval with service escalations
- Bug fix for using servicegroups in service dependency definitions
- Bug fix for bad date format submission in command CGI
- Possible segfault fix during restarts when daemon was performing host checks
- Fix for missing check timeout in event broker calls
- Fix for handling signals under NPTL
- Added error messages for passive service checks that don't correspond to a
defined service
PR: 110262
Submitted by: Jarrod Sayers <jarrod@netleader.com.au> (maintainer)