2018-03-12 12:15:24 +01:00
|
|
|
# $NetBSD: Makefile,v 1.75 2018/03/12 11:17:21 wiz Exp $
|
2006-02-18 18:12:20 +01:00
|
|
|
#
|
|
|
|
|
Update nagios-base to 4.3.2
The previous version in pkgsrc had a critical bug where status would not
update and nagios log "wproc: Core Worker seems to be choked". More
details at http://tracker.nagios.org/view.php?id=642
Here is the complete Changelog
4.3.2 - xxxx-xx-xx
------------------
FIXED
* Every 15sec /var/log/messages is flooded with "nagios: set_environment_var" (John Frickson)
* Changed release date to ISO format (yyyy-mm-dd) (John Frickson)
* `make all` fails if unzip is not installed (John Frickson)
* Quick Search no longer allows search by Alias (John Frickson)
* flexible downtime on a service immediately turns off notifications (John Frickson)
* Fix to allow url_encode to be called twice (Z. Liu)
* Update timeperiods.cfg.in (spelling) (Parth Laxmikant Kolekar)
* Spelling fixes (Josh Soref)
* Vent command pipe before remove to avoid deadlocks on writing end (Kai Kunstmann)
* CGI utility cgiutil.c does not process relative config file path names properly (John Frickson)
* xdata/xodtemplate.c bug in option-deprecation code (John Frickson)
* Wildcard searching causes service status links to not work properly (John Frickson)
* Quick search with no hits shows a permission denied error (John Frickson)
* Setting a service as its own parent is not caught by the sanity checker (-v) and causes a segfault (John Frickson)
4.3.1 - 2017-02-23
------------------
FIXES
* Service hard state generation and host hard or soft down status (John Frickson)
* Comments are duplicated through Nagios reload (John Frickson)
* host hourly value is incorrectly dumped as json boolean (John Frickson)
* Bug - Quick Search no longer allows search by IP (John Frickson)
* Config: status_update_interval can not be set to 1 (John Frickson)
* Check attempts not increasing if nagios is reloaded (John Frickson)
* nagios hangs on reload while sending external command to cmd file (John Frickson)
* Feature Request: return code xxx out of bounds - include message as well (John Frickson)
4.3.0 - 2017-02-21
------------------
SECURITY FIXES
* Fix for CVE-2016-6209 - The "corewindow" parameter (as in
http://localhost/nagios?corewindow=www.somewhere.com) has been disabled by
default. See the UPGRADING document for how to enable it. (John Frickson)
FIXES
* Fix early event scheduling (pmalek / John Frickson)
* on-demand host checks triggered by service checks cause attempt number increments (fredericve)
* Service notification not being send when host is in soft down state (John Frickson)
* configure does not error if no perl installed on CentOS 7 (John Frickson)
* failed passive requests leave .ok files in checkresults dir (caronc)
* Services don't show in status.cgi if "noheader" specified (John Frickson)
* Standardized check interval config file names (John Frickson)
* "Event Log" (showlog.cgi) could not open log file (John Frickson)
* "nagios_check_command" has been deprecated since v3.0. Last vestiges removed (John Frickson)
ENHANCEMENTS
* Added new flag to cgi.cfg: tac_cgi_hard_only to show only HARD states (John Frickson)
* Add broker-event for the end of a timed event (NEBTYPE_TIMEDEVENT_END) (John Frickson)
* There is no Macro to retrieve addresses of hostgroup members (now $HOSTGROUPMEMBERADDRESSES$) (John Frickson)
* Add "Page Tour" videos to several of the core web pages (John Frickson)
* Added a login page, and a `Logoff` links (John Frickson)
* On the status map, the host name will be colored if services are not all OK. (John Frickson)
* Added "Clear flapping state" command on host and services detail pages. (John Frickson)
* User-entered comment now displays below generated comment for downtime (John Frickson)
4.2.4 - 2016-12-07
------------------
SECURITY FIXES
* Fixed another root privilege escalation (CVE-2016-9566) Thanks for bringing this
to our attention go to Dawid Golunski (http://legalhackers.com).
4.2.3 - 2016-11-21
-------------------
SECURITY FIXES
* Fixed a root privilege escalation (CVE-2016-8641) (John Frickson)
FIXES
* external command during reload doesn't work (John Frickson)
* Nagios provides no error condition as to why it fails on the verify for serviceescalation (John Frickson)
* No root group in FreeBSD and Apple OS X (John Frickson)
* jsonquery.html doesn't display scheduled_time_ok correctly (John Frickson)
* daemon_dumps_core=1 has no effect on Linux when Nagios started as root (John Frickson)
* Configuration check in hostgroup - misspelled hostname does not error (John Frickson)
* contacts or contact_groups directive with no value should not be allowed (John Frickson)
* Compile 64-bit on SPARC produces LD error (John Frickson)
* HOSTSTATEID returns 0 even if host does not exist (John Frickson)
* Submitting UNREACHABLE passive result for host sets it as DOWN if the host has no parents (John Frickson)
* nagios: job XX (pid=YY): read() returned error 11 (changed from LOG_ERR to LOG_NOTICE) (John Frickson)
* Fix for quick search not showing services if wildcard used (John Frickson)
4.2.2 - 2016-10-24
------------------
SECURITY FIXES
* There was a fix to vulnerability CVE-2008-4796 in the 4.2.0 release on
August 1, 2016. The fix was apparently incomplete, as there was still a
problem. However, we are now getting all RSS feeds using AJAX calls
instead of the (outdated) MagpieRSS package. Thanks for bringing this to
our attention go to Dawid Golunski (http://legalhackers.com).
ENHANCEMENTS
* Update status.c to display passive check icon for hosts when passive checks
are enabled and actives disabled (John Frickson)
FIXES
* Fix permissions for Host Groups reports (status.cgi) (Patrik Halfar)
* Service Parents does not appear to be functioning as intended (lev)
* Availability report mixes up scheduled and unscheduled warning percentages (Helmut Mikulcik)
* Invalid values for saved_stamp in compute_subject_downtime_times() (John Frickson)
* Remove deprecated "framespacing" (John Frickson)
* The nagios tarball contains two identical jquery copies (John Frickson)
* extinfo.cgi does not set content-type (most cgi's don't) (John Frickson)
* Timeperiods are corrupted by external command CHANGE_SVC_CHECK_TIMEPERIOD (xoubih)
* Quick search doesn't show hosts without services (service status detail page) (John Frickson)
* In host/services details view, if exactly 100 entries would not show last one (John Frickson)
* nagios host URL parameter for NEW map doesn`t work - Network Map for All Hosts (John Frickson)
* next_problem_id is improperly initialized (gherteg)
* Passive problems not showing as "unhandled" (John Frickson)
* September reported as Sept instead of Sep (Rostislav Opočenský)
* Notifications are not sent for active alerts after scheduled downtime ends (John Frickson)
* Nagios 4.2.0 not working on Solaris (John Frickson)
* install-exfoliation and install-classicui don't work FreeBSD and Mac OS X (John Frickson)
* Updated makefile to delete some no-longer-needed files (John Frickson)
4.2.1 - 2016-09-06
------------------
FIXES
* Fix undefined variable php error (John Frickson)
* Links on the sidebar menu under 'Problems' are indented too far (John Frickson)
* Using $ARGn$ Macros in perfdata (John Frickson)
* using a wildcard in search returns service status total all zero's (John Frickson)
* read_only does not take priority (deppy)
* Running nagios -v on 4.2.0 takes 90+ seconds (John Frickson)
* Bare "make" invoked in subtarget (mjo)
* Theme images/stylesheets installed with inconsistent permissions (mjo / John Frickson)
* Missing Image for Host and Service State Trends in Availability Report (nichokap / John Frickson)
* Maintain non-persistent comments through reload (John Frickson)
* Servicegroup availability report ignores includesoftstates in service report links (PriceChild)
* error: format not a string literal and no format arguments (Karsten Weiss)
* Synced config.guess and config.sub with GNU (Zakhar Kleyman)
4.2.0 - 2016-08-01
------------------
SECURITY FIXES
* Fixed vulnerability CVE-2008-4796 (John Frickson)
* Fixed vulnerability CVE-2013-4214 (John Frickson)
* web interface vulnerable to Cross-Site Request Forgery attacks (John Frickson)
ENHANCEMENTS
* Increase socket queue length for listen()
* Added host name to the website page title (leres / John Frickson)
* Added additional icons for NetBSD and SuSE (John Frickson)
* The new Status Map will now use cgi.cfg options (John Frickson)
default_statusmap_layout will default to "6" for the new map
* The new Status Map will now show some valid values in the popup for "Nagios Process" (John Frickson)
FIXES
* Network outage view without access to all hosts (John Frickson)
* Core workers looping (John Frickson)
* service query returns duplicate host_name and description fields in the returned data (John Frickson)
* HTML output of plug-ins is parsed in wrong way => webgui unusable (John Frickson)
* Command worker fails to handle SIGPIPE
* "View Status" links under "Map" broken in Nagios Core Version 4.1.1 (John Frickson)
* Can't send big buffer - wproc: Core Worker seems to be choked (velripn / John Frickson)
* Too big CPU load on FreeBSD and other systems using poll() interface (cejkar)
* Flexible downtime recorded as unscheduled downtime (John Frickson)
* Service Flexible downtimes produce 1 notification before entering (John Frickson)
* Once you "set flap_detection_enabled 0" it should remove flapping state from the host/services page (John Frickson)
* New map doesn't finish loading if a logo image is not found (John Frickson)
* Extraneous Div end tag in map.html (Scott Wilkerson)
* Issue with "Problems" section (John Frickson)
* Status Map icons and online/offline status dots disappear in IE11 (John Frickson)
* New network map overlays the nagios process with objects (John Frickson)
* Added Default-Start and Default-Stop to the init script (John Frickson)
* Compile / logging issues with BSD 6
* Related to above, Fixed a lot of incorrectly handled time_t's in *printf's (John Frickson)
* New map not working for RU locale (actually, most locales) (John Frickson)
* Replaced all instances of signal() with sigaction() + blocking (John Frickson)
* UTF-8 characters like german ä are not processed properly by function url_encode (John Frickson)
* nagios worker processes can hog CPU (huxley / John Frickson)
* custom time periods that include special characters were not being handled in reports (John Frickson)
* Fixed init script to wait up to 90 seconds then kill the nagios process (John Frickson)
* No Host Groups results in wrong error message (John Frickson)
* Setup Nagios users to view specific host is not working in the new network map (John Frickson)
* statusjson.cgi fails glibc realloc truncate response output (John Frickson)
* Report Time Period does not work if an @ character is in the timeperiod name (John Frickson)
* State History does not use actual plugin long_output (John Frickson)
* Time period corruption (xoubih)
* Tactical Overview - Disabled Flap Detection Link (John Frickson)
4.1.1 - 08/19/2015
------------------
FIXES
* CGI Could not read object configuration data (broken by error in 4.1.0)
* exclude (!) not working (broken by mis-applied fix for 4.1.0)
4.1.0 - 08/18/2015
------------------
ENHANCEMENTS
* Promoted JSON CGIs to released status (Eric Stanley)
* New graphical CGI displays: statusmap, trends, histogram (Eric Stanley)
* Make sticky status for acks and comments configurable enhancement #20 (Trevor McDonald / Scott Wilkerson)
* Add host_down_disable_service_checks directive to nagios.cfg #44 (Trevor McDonald / Scott Wilkerson)
* httpd.conf doesn't support Apache versions > 2.3 (DanielB / John Frickson)
FIXES
* Fix for not all service dependencies created (John Frickson)
* Fix SIGSEGV with empty custom variable (orbis / John Frickson)
* Fix contact macros in environment variables (dvoryanchikov)
* Fixed host's current attempt goes to 1 after going to hard state (John Frickson)
* Fixed two bugs/problems: Replace use of %zd in base/utils.c & incorrect va_start() in cgi/jsonutils.c (Peter Eriksson)
* Fixed: Let remove_specialized actually remove all workers (Phil Mayers)
* Fixed log file spam caused when using perfdata command directives in nagios.cfg (shashikanthbussa)
* Fixed off-by-one error in bounds check leads to segfault (Phil Mayers)
* Added links for legacy graphical displays (Eric Stanley)
* Update embedded URL's to https versions of Nagios websites (scottwilkerson)
* Fixed doxygen comments to work with latest doxygen 1.8.9.1 #30 (Trevor McDonald)
* Fixed makefile target "html" to PHONY to fix GitHub issue #28 (Trevor McDonald)
* Fixed typo as per GitHub issue #27 (Trevor McDonald)
* Fixed jsonquery.php 404 not found error, and disabled Send Query button until form populates #43 (Scott Wilkerson)
* Fixed linking in Tactical Overview for several of the Host entries in Featured section #48 (Scott Wilkerson)
* Fixed passing limit and sort options to pagination and sort links #42 (Scott Wilkerson)
* Added form field for icon URL and clean-up when it changes in CGI Status Map. (Eric Stanley)
* Added options to cgi.cfg to uncheck sticky and send when acknowledging a problem (Trevor McDonald)
* Low impact changes to automate the generation of RPMs from nagios.spec file. (T.J. Yang)
* Update index.php (Trevor McDonald)
* Fixed escaping of corewindow parameter to account for possible XSS injection (Scott Wilkerson)
* Typo correction (T.J. Yang)
* Make getCoreStatus respect cgi_base_url (Moritz Schlarb)
* Adjusted map layout to work within frames (Eric Stanley)
* Fixed map displays are now the full size of browser window (Eric Stanley)
* Fixed labels and icons on circular markup no longer scale on zoom (Eric Stanley)
* Got all maps except circular markup working with icons (Eric Stanley)
* Fixes to make legacy CGIs work again. (Eric Stanley)
* Fixes to make all/html target tolerant of being run multiple times (Eric Stanley)
* For user-supplied maps, converted node group to have transform (Eric Stanley)
* Fixed issue transitioning from circular markup map to other maps (Eric Stanley)
* Fix displayForm to trigger on the button press (Scott Wilkerson)
* Fix fo getBBox crash on Firefox (Eric Stanley)
* Fixed map now resets zoom when form apply()'d (Eric Stanley)
* Fixed so close box on dialogs actually closes dialog (Eric Stanley)
* Corrected directive in trends display (Eric Stanley)
* Fixed minor issue with link in trends links (Eric Stanley)
* Fixed issue with map displaying on Firefox (Eric Stanley)
* Added exclusions for ctags generation (Eric Stanley)
* Update map-popup.html (Scott Wilkerson)
* Initial commit of new graphical CGIs (Eric Stanley)
* Fixed Github bug #18 - archivejson.cgi returns wrong host for state change query (Eric Stanley)
* Status JSON: Added next_check to service details (Eric Stanley)
* Fixed escaping of keys for scalar values in JSON CGIs (Eric Stanley)
* build: Include <sys/loadavg.h> if it exists. (Eric J. Mislivec)
* lib-tests: test-io{cache|broker} need -lsocket to link. (Eric J. Mislivec)
* lib-tests: test-runcmd assumes GNU echo. (Eric J. Mislivec)
* lib-tests: Signal handlers don't return int on most platforms, and using a cast was the wrong way to resolve this. (Eric J. Mislivec)
* Fix some type/format mismatch warnings for pid_t. (Eric J. Mislivec)
* Fix build on Solaris. (Eric J. Mislivec)
* runcmd: Fix build when we don't HAVE_SETENV. (Eric J. Mislivec)
* Fixed checkresult output processing (Eric Mislivec)
* Corrected escaping of long output macros (Eric Mislivec)
* Fixed null pointer dereferences in archive JSON (Eric Stanley)
* Fixed memory overwrite issue in JSON string escaping (Eric Stanley)
* JSON CGI: Now escaping object and array keys (Eric Stanley)
KNOWN ISSUES
* New map does not account for multiple parents, leaving "legacy" map as an option in the menu
2017-05-24 09:42:39 +02:00
|
|
|
DISTNAME= nagios-4.3.2
|
2007-10-12 18:12:05 +02:00
|
|
|
PKGNAME= ${DISTNAME:S/-/-base-/}
|
2018-03-12 12:15:24 +01:00
|
|
|
PKGREVISION= 4
|
2007-10-12 18:12:05 +02:00
|
|
|
CATEGORIES= net sysutils
|
2013-06-17 21:48:19 +02:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
|
2007-10-12 18:12:05 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=nagios/}
|
2013-06-17 21:48:19 +02:00
|
|
|
DISTFILES+= nagios-netbsd40-icons.tar.gz
|
|
|
|
SITES.nagios-netbsd40-icons.tar.gz= ${MASTER_SITE_LOCAL}
|
2006-02-18 18:12:20 +01:00
|
|
|
|
2009-04-11 19:24:00 +02:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2017-09-03 10:53:04 +02:00
|
|
|
HOMEPAGE= https://www.nagios.org/
|
2007-10-12 18:12:05 +02:00
|
|
|
COMMENT= Network monitor
|
Update nagios-base to 3.2.3. While there, add DESTDIR support and set LICENSE.
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)
* Patch to new_mini_epn to allow any command line length without breaking on extra trailing or leading whitespace (Ray Bengen)
* Patch to mini_epn to allow any command line length (Thomas Guyot-Sionnest)
* Patch to speed up loading of state retention data (Matthieu Kermagoret)
* Custom notifications are now suppressed during scheduled downtime (Sven Nierlein)
* Added code to warn user about exit code of 126 meaning plugin is not executable (bug #153)
* Scheduled downtime can now start on SOFT error states (bug #47)
* Main window frame URL can now be specify with a "corewindow=" parameter
* Improved config CGI shows commands, command args in an easier to use manner (Jochen Bern)
* Added ability for NEB modules to override execution of event handlers (Sven Nierlein)
* Custom macros are no longer cleaned/stripped as they are user-defined and should be trusted (Peter Morch)
* Fix for choosing next valid time on day of DST change when clocks go one hour backwards
* Fix for nagios now erroring when "Error: Could not find any contactgroup matching..." displayed
* Fix tap tests for Sol0 and newer versions of Test::Harness
* Fix for notifications not being sent out when scheduled downtime is canceluzzner)
* Fix for first notification delay being calculated incorrectly, and notifications potentially going out early (Plachowski)
* Fix for text of scheduling downtime of all services on a host (Holger Weiss)
* Fix for services inheriting notification period from hosts if not defined (Gordon Messmer)
* Fix for incorrect service states on host failures (bug #130 Pet)
* Fix for incorrect service state attributes being set on host failures (bug #128 Petya Kohts)
* Fix for non-scheduled hostsnd services not being updated in NDOUtils
* Fix for typos in TAC, CMD CGIs (bugs #150, #144, #148)
* Fix for types in documentation (bugs #145, #105, #106)
* Fix for incorrect host state counts in status CGI when viewing servicegroups (bug #72)
* Fix few Splunk integration query parameters (bug #136)
* Fix for extra field header in availability CSV export (bug #113)
* Fix foracro processing code modifying input string (Jochen Bern)
* Fix for update check API
* Fix for CGI speedup when persistent=0 f comments
* Fix for event execution loop re-scheduling host checks instead of executing them if service checks are disabled (b #152)
* Fix for segfaults on Solaris (Torsten Huebler)
* Fix for incorrect comment expiration times being passed to event bror (Mattieu Kermagot)
* Doc updates related to cleaning of custom macros (Peter Valdemar Morch)
* Fix to sample notify-service--email command (bug #62)
* Fix for retaining host display name and alias, as well as service display name (Folkert van Heusden* Link to allow scheduling downtime for all services on a host (Hendrik Baecker)
* Speedup to CGIs when lots of comments or dotimes in status.dat file (Jonathan Kamens)
* Patch for new_mini_epn to allow for any command line length without breaking extra trailing or leading whitespace (Ray Bengen)
* Fix for incorrect scheduling when time has gone back an hour (partial fix for 24x7)
* Fix for compile on Fedora Core 3 (bug #0000082)
* Fix for compile on Solaris
* Fix for logging test, which was not timezone aware (bug #0000077 - Allan Clark)
* Trivial cleanups for autoconf (Allan Clark)
* Fix for CSS validation of padding: X
* Fix for documentation re: case-insensitive nature of custom variables (Marc Powell)
* Fix for template configurations which use negated wildcards (Tim Wilde)
* Fix for read-only permissions bug in CGIs that caused problems viewing comments (bug #0000029)
* Fix for incorrect CGI reports (availability, trends, etc.) when reporting period spans Daylight Savings Time (bug #0000046)
* Fix for detection of truecolor support in GD library (Lars Hecking)
* Reverted to use --datadir configure script option instead of the more recently introduced --datarootdir option
* Status and retention files are now flushed/synced to disk to prevent incomplete information being displayed in CGIs
* Fix for incorrect next service check time calculation when Nagios is reloaded with different timeperiod ranges
* Updated Fedora quistart guide to indicate PHP requirements
* Known issue: Service checks that are defined with timeperiods that contain "exclude" directives are incorrectly re-scheduled. Don't use these for now - we'll get this
fixed for 3.4
2011-04-09 00:37:24 +02:00
|
|
|
LICENSE= gnu-gpl-v2
|
|
|
|
|
2016-02-09 11:12:53 +01:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
2015-05-03 21:46:35 +02:00
|
|
|
|
2006-02-18 18:12:20 +01:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.include "../../net/nagios-base/Makefile.common"
|
|
|
|
.include "options.mk"
|
|
|
|
|
2014-03-13 12:08:49 +01:00
|
|
|
USE_GCC_RUNTIME= yes
|
|
|
|
|
Update nagios-base to 3.0.3. Changes since 2.12:
- Check timeperiod can now be modified on-the-fly.
- Added first_notification_delay to host and object definitions
to delay first notification.
- Notifications are now sent out when flap detection is disabled
on a host/service-specific or program-wide basis
($NOTIFICATIONTYPE$ macro = "FLAPPINGDISABLED").
- Notifications can now be sent out when scheduled downtime starts,
ends, and is cancelled. The $NOTIFICATIONTYPE$ macro will be set
to "DOWNTIMESTART", "DOWNTIMEEND", or "DOWNTIMECANCELLED",
respectively. In order to receive downtime notifications,
specify 's' or 'downtime' in contact, host, and/or service
notification options.
- Added ability to use multiple template names (separated by commas)
in object definitions.
- Added ability to null out optional character directives in object
definitions (using 'null' without quotes).
- Added hostg/service/contactgroup_members directives to
host/service/contactgroup definitions, respectively, for allowing
including host, service, or contact members from "sub" groups.
- Added support for custom variables in host, service, and contact
definitions.
- Added host_notifications_enabled, service_notifications_enabled,
can_submit_commands to contact definitions.
- Added optional display_name directive to host and service definitions.
- Removed serviceextinfo definitions and merged variables with
service definitions.
- Removed hostextinfo definitions and merged variables with host
definitions.
- Services inherit contactgroups, notification interval, and
notification period from associated host if not specified.
- Service escalations inherit contactgroups, notification interval,
and escalation period from associated service if not specified.
- Host escalations inherit contactgroups, notification interval,
and escalation period from associated host if not specified.
- Host, service, host escalation, and service escalation
definitions now support a 'contacts' directive, along with
'contact_groups'.
- Service dependencies with blank dependent host/hostgroup names
will create "same host" dependencies.
- Added ability to precache object config files.
- Added ability to exclude object relationship and circular
path checks from verification process.
- Multiline output support for host and service checks.
- Added $LONGHOSTOUTPUT$ and $LONGSERVICEOUTPUT$ macros.
- Added $TEMPPATH$ macro.
- Removed $COMMENTDATAFILE$ and $DOWNTIMEDATAFILE$ macros.
- Added $HOSTDISPLAYNAME$ and $SERVICEDISPLAYNAME$ macros.
- Custom host/service/contact macros accessible via $_HOST<varname>$,
$_SERVICE<varname>$, or $_CONTACT<varname>$. On-demand host/service
macros for custom vars are working. Custom vars are also set as
environment vars.
- On-demand service macros can contain and empty host name field.
In this case, the name of the current host will be used.
- $HOSTNOTES$ and $SERVICENOTES$ macros may now contain macros
themselves.
- Added flap_detection_options directive to host and service
definitions to control which states (i.e. OK, WARNING, UNKNOWN,
and/or CRITICAL) are used in flap detection logic.
- Percent state change and state history are now retained and
recorded even when host/service flap detection is disabled.
- Hosts and services are immediately check for flapping when flap
detection is enabled program-wide.
- Hosts/services that are flapping when flap detection is disabled
program-wide are now logged.
- Added PROCESS_FILE external command to allow processing of
external commands found in an external (regular) file. Very
useful for passive checks with long out put or scripting.
- Custom commands can now be submitted to Nagios. Custom command
names are prefixed with an underscore and are not processed
internally by the Nagios daemon. They may, however, be processed
by NEB modules.
- External commands are now checked by default. Nagios 2.x and
earlier did not check for external commands by default.
- Contact status information is now saved (although it is not
processed by the old CGIs).
- Contact status information is now retained across program
restarts.
- Comment and downtime IDs are now stored across program restarts,
should be unique unless reset.
- Added retained_host/service_attribute_mask variables to control
what host/service attribs are retained globally.
- Added retained_process_host/service_attribute_mask variables to
control what process attribs are retained.
- Added retained_contact_host/service_attribute_mask variables to
control what contact attribs are retained globally.
- Scheduled downtime entries are now stored in the status and
retention files.
- Comments are now stored in the status and retention files.
- Non-persistent acknowledgement comments are now deleted when the
acknowledgement is removed (instead of when Nagios restarts).
- Most host checks are now run asynchronously, in parallel!
- Scheduled host checks now help improve performance, instead of
hinder it (if caching is enabled).
- Added cached_host_check_horizon option for enabling use of
cached host check results.
- Added enable_predictive_host_dependency_checks for enabling
predictive checks of dependent hosts.
- Added retry_interval to host definitions.
- Added check_for_orphaned_hosts option and support for orphaned
host checks.
- Passive host check states can now be translated from their
original DOWN/UNREACHABLE state if the new
translate_passive_host_results option is enabled.
- 'parallelize' option in service definitions deprecated/no longer
used.
- Added cached_service_check_horizon option for enabling use of
cached service check results.
- Added enable_predictive_service_dependency_checks for enabling
predictive checks of dependent services.
- Host and service dependencies can now have a timeperiod during
which they're valid (dependency_period directive).
- Updated NEB API version.
- Modified adaptive program status callback.
- Added adaptive contact status callback.
- Added host/service precheck callbacks to allow modules to
cancel/override internal host/service checks.
- Added 'enable_embedded_perl' option to main config file to control
whether epn is enabled/disabled.
- Added support for perl plugins to specify whether or not they
should be run under the epn... The second to tenth line of a perl
plugin may start with '# nagios: +epn' or '# nagios: -epn' to
explicity indicate that it should be run under the epn.
- Added 'use_embedded_perl_implicitly' option to main config file
to determine whether or not perl plugins will use the epn if they
don't explicitly allow/disalow it.
- Hostgroup and servicegroup summaries now show important/unimportant
problem breakdowns like the TAC CGI.
- Minor layout changes to host and service detail views in extinfo CGI.
- More information given when testing scheduling (-s command line
option).
- Removed fixed length restrictions for host names and service
descriptions.
- Plugin output length restriction bumped up to 4K.
- Added temp_path directive to main config file for specifying temp
directory.
- Multiline output support for system commands via my_system().
- Added global event_id and notification_id vars that are at least
unique during a single run of Nagios.
- Default is now to check for orphaned services, rather than not.
- Renamed service_reaper_frequency to check_result_reaper_frequency.
- Fractional notification and check intervals are now supported
(e.g. "3.5" minutes).
- Backslash chars are now used to escape command arguments that
contain \ or ! characters.
- Added 'external_command_buffer_slots' and
'check_result_buffer_slots' variables to specify size of internal
buffers.
- Added check statistics to status file, available via nagiostats
for graphing in MRTG.
- Added $HOSTGROUPNAMES$, $SERVICEGROUPNAMES$, $HOSTACKAUTHORNAME$,
$HOSTACKAUTHORALIAS$, $SERVICEACKAUTHORNAME$, and
$SERVICEACKAUTHORALIAS$ macros.
- Added warning for invalid temp_path directory.
- Added support for extended regular expression matching in
object config files.
- Added new "p" option to host/service_perfdata_file_mode
directives for pipes.
- Command definitions and host/service plugin perfdata with HTML
should now be escaped in CGIs.
- Hostgroup and servicegroup definitions now have notes, notes_url,
and action_url directives.
- Added buffer stats and check statistics to performance
information in extinfo CGI.
- Removed legacy 2.x host check logic and use_old_host_check_logic
option.
- Added max_check_result_file_age option to control processing of
check results in older files.
- Added check_result_path option to set path used to store
check results.
- New IPC method for passing host/service check results back to
main daemon.
- Removed check_result_buffer_slots option from main
configuration file.
- Added test for writeability of temp directory during configuration
test.
- Minor changes to freshness threshold calculation.
- Added 'initial_state' option to host and service definitions
to allow for non-UP/OK initial states.
- Changed debug file format to include current pid.
- Changes to sample config files and installation location.
- Expanded timeperiod definitions to allow for day/date exceptions.
- Added new 'passive_host_checks_are_soft' config option.
- Added new 'exclude' option to timeperiod definitions for
easy on-call rotation definitions.
- Added new action and notes URL target frame options to CGI
config file.
- Added optional integration with Splunk into the CGIs.
- Added escape_html_tags option to CGI config file to escape HTML
tags in plugin output.
- Program status now updated at least every 5 seconds for addons
that watch NDOUtils DB.
- Added $MAXHOSTATTEMPTS$ and $MAXSERVICEATTEMPTS$ macros.
- Added status CGI host/service property filters for hard and
soft states.
- New macros: $SERVICEISVOLATILE$, $TOTALHOSTSERVICES$,
$TOTALHOSTSERVICESOK$, $TOTALHOSTSERVICESWARNING$,
$TOTALHOSTSERVICESUNKNOWN$, $TOTALHOSTSERVICESCRITICAL$,
$HOSTDOWNTIMEAUTHOR$, $HOSTDOWNTIMEAUTHORNAME$,
$HOSTDOWNTIMEAUTHORALIAS$, $HOSTDOWNTIMECOMMENT$,
$SERVICEDOWNTIMEAUTHOR$, $SERVICEDOWNTIMEAUTHORNAME$,
$SERVICEDOWNTIMEAUTHORALIAS$, $SERVICEDOWNTIMECOMMENT$.
- Improvements to the host check logic performance (more use of
cached and parallel checks).
- Version number is now printed in CGI pages.
- Added custom delimiter option in nagiostats output (useful for
CSV output).
- Alias, if not specified, now defaults to object name in host,
hostgroup, servicegroup, contact, and contactgroup definitions.
- Added custom host and service notifications, with option to force
the notifications and broadcast them to all contacts.
- Added new 'check' option to init script to verify configuration.
- More complete (but still partial) support for macros in CGIs
($xNOTES$, $xNOTESURL$, and $xACTIONURL$ macros).
- Added on-demand contact and contactgroup macro support.
- New macros: $HOSTGROUPMEMBERS$, $HOSTGROUPNOTES$, $HOSTGROUPNOTESURL$,
$HOSTGROUPACTIONURL$, $SERVICEGROUPMEMBERS$, $SERVICEGROUPNOTES$,
$SERVICEGROUPNOTESURL$, $SERVICEGROUPACTIONURL$, $CONTACTGROUPALIAS$,
$CONTACTGROUPMEMBERS$, $NOTIFICATIONRECIPIENTS$, $NOTIFICATIONAUTHOR$,
$NOTIFICATIONAUTHORNAME$, $NOTIFICATIONAUTHORALIAS$,
$NOTIFICATIONCOMMENT$.
- Added support for relative paths in config_file and config_dir directives.
- Added passive check latency stats to nagiostats.
- Workaround to prevent browsers from incorrectly using cached
statusmap image on page refresh.
- Added use_pending_states option to CGI config file to determine
displayed state of hosts/services that have not been checked.
- Added $EVENTSTARTTIME$ macro to indicate time Nagios started
processing events (checks, etc.).
- Improvements in freshness check logic.
- Added additional_freshness_latency config file directive.
- Improvement in service flap detection logic.
- Status file is no longer deleted during restarts due to a SIGHUP
or external command.
- Special additive inheritance rule: escalation contact(group)(s)
that begin with '+' will now inherit from associated host/service
definition if not inheriting from another escalation template.
- Addition of object pointers to event broker module data structures
(may require event broker module rebuilds).
- Added $LASTHOSTSTATE$, $LASTHOSTSTATEID$, $LASTSERVICESTATE$, and
$LASTSERVICESTATEID$ macros.
- Better error logging when failing to rename/move files.
- Summary macros are now available as regular (non-environment) macros
if requested when large installation tweaks are enabled.
- Major overhaul (read: complete rewrite) of macro code, so macros are
now only computed when found.
- Added enable_environment_macros option to determine whether or not
macros are set as environment vars.
- Added $ISVALIDTIME:$ and $NEXTVALIDTIME:$ on-demand macros.
- Added new external commands to change modified object attributes
(affecting data retention logic).
- Added new external commands to change notification period for
host, services, and contact on-the-fly.
- Retention of host/service check scheduling options.
- Caching of Perl scripts now enabled by default if embedded Perl
interpreter is compiled in.
- Increased max plugin output length cap from 4kb to 8kb.
- Additional functionality of additive inheritance feature.
- Added free_child_process_memory and child_processes_fork_twice
options for performance tweaks.
- Added use_timezone option to allow Nagios instances to run in
non-native timezones.
- Support for line continuation/breaks in config files - end lines with
one back slash (\) to continue on next line.
- Auto-filled comment/author fields for acknowledging problems through
WAP interface.
- Faster program startup times (especially in large installs) with new
object lookup code.
- Nagios no longer warns or errors when encountering
host/contact/service groups with empty memberships.
- Allow non-ASCII characters in notifications, etc.
- Smarter host check logic to reduce (uncached) on-demand host checks
during "stable" service problems.
- New flap detection startup logic speedups when large installations
tweaks enabled.
- Speed improvements during startup routines when using precached config.
- Speed improvements in reading retention data during startup.
- Changed embedded audio MIME types in CGIs to "application/wav".
- Safer loading mechanism for NEB modules to prevent segfaults in Nagios.
- Embedded Perl is now disabled by default.
- Misc internal performance improvements.
- More debug/trace log functionality.
- Internal data structure cleanups.
- Logging API revamp, cleanup.
- Error logging improvements.
- Various bugfixes.
- Documentation updates.
2008-07-21 02:35:42 +02:00
|
|
|
CONFIGURE_ARGS+= --with-gd-lib=${PREFIX}/lib
|
|
|
|
CONFIGURE_ARGS+= --with-gd-inc=${PREFIX}/include
|
2007-10-12 18:12:05 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-embedded-perl
|
|
|
|
CONFIGURE_ARGS+= --with-perlcache
|
2006-02-18 18:12:20 +01:00
|
|
|
|
Update nagios-base to 3.0.3. Changes since 2.12:
- Check timeperiod can now be modified on-the-fly.
- Added first_notification_delay to host and object definitions
to delay first notification.
- Notifications are now sent out when flap detection is disabled
on a host/service-specific or program-wide basis
($NOTIFICATIONTYPE$ macro = "FLAPPINGDISABLED").
- Notifications can now be sent out when scheduled downtime starts,
ends, and is cancelled. The $NOTIFICATIONTYPE$ macro will be set
to "DOWNTIMESTART", "DOWNTIMEEND", or "DOWNTIMECANCELLED",
respectively. In order to receive downtime notifications,
specify 's' or 'downtime' in contact, host, and/or service
notification options.
- Added ability to use multiple template names (separated by commas)
in object definitions.
- Added ability to null out optional character directives in object
definitions (using 'null' without quotes).
- Added hostg/service/contactgroup_members directives to
host/service/contactgroup definitions, respectively, for allowing
including host, service, or contact members from "sub" groups.
- Added support for custom variables in host, service, and contact
definitions.
- Added host_notifications_enabled, service_notifications_enabled,
can_submit_commands to contact definitions.
- Added optional display_name directive to host and service definitions.
- Removed serviceextinfo definitions and merged variables with
service definitions.
- Removed hostextinfo definitions and merged variables with host
definitions.
- Services inherit contactgroups, notification interval, and
notification period from associated host if not specified.
- Service escalations inherit contactgroups, notification interval,
and escalation period from associated service if not specified.
- Host escalations inherit contactgroups, notification interval,
and escalation period from associated host if not specified.
- Host, service, host escalation, and service escalation
definitions now support a 'contacts' directive, along with
'contact_groups'.
- Service dependencies with blank dependent host/hostgroup names
will create "same host" dependencies.
- Added ability to precache object config files.
- Added ability to exclude object relationship and circular
path checks from verification process.
- Multiline output support for host and service checks.
- Added $LONGHOSTOUTPUT$ and $LONGSERVICEOUTPUT$ macros.
- Added $TEMPPATH$ macro.
- Removed $COMMENTDATAFILE$ and $DOWNTIMEDATAFILE$ macros.
- Added $HOSTDISPLAYNAME$ and $SERVICEDISPLAYNAME$ macros.
- Custom host/service/contact macros accessible via $_HOST<varname>$,
$_SERVICE<varname>$, or $_CONTACT<varname>$. On-demand host/service
macros for custom vars are working. Custom vars are also set as
environment vars.
- On-demand service macros can contain and empty host name field.
In this case, the name of the current host will be used.
- $HOSTNOTES$ and $SERVICENOTES$ macros may now contain macros
themselves.
- Added flap_detection_options directive to host and service
definitions to control which states (i.e. OK, WARNING, UNKNOWN,
and/or CRITICAL) are used in flap detection logic.
- Percent state change and state history are now retained and
recorded even when host/service flap detection is disabled.
- Hosts and services are immediately check for flapping when flap
detection is enabled program-wide.
- Hosts/services that are flapping when flap detection is disabled
program-wide are now logged.
- Added PROCESS_FILE external command to allow processing of
external commands found in an external (regular) file. Very
useful for passive checks with long out put or scripting.
- Custom commands can now be submitted to Nagios. Custom command
names are prefixed with an underscore and are not processed
internally by the Nagios daemon. They may, however, be processed
by NEB modules.
- External commands are now checked by default. Nagios 2.x and
earlier did not check for external commands by default.
- Contact status information is now saved (although it is not
processed by the old CGIs).
- Contact status information is now retained across program
restarts.
- Comment and downtime IDs are now stored across program restarts,
should be unique unless reset.
- Added retained_host/service_attribute_mask variables to control
what host/service attribs are retained globally.
- Added retained_process_host/service_attribute_mask variables to
control what process attribs are retained.
- Added retained_contact_host/service_attribute_mask variables to
control what contact attribs are retained globally.
- Scheduled downtime entries are now stored in the status and
retention files.
- Comments are now stored in the status and retention files.
- Non-persistent acknowledgement comments are now deleted when the
acknowledgement is removed (instead of when Nagios restarts).
- Most host checks are now run asynchronously, in parallel!
- Scheduled host checks now help improve performance, instead of
hinder it (if caching is enabled).
- Added cached_host_check_horizon option for enabling use of
cached host check results.
- Added enable_predictive_host_dependency_checks for enabling
predictive checks of dependent hosts.
- Added retry_interval to host definitions.
- Added check_for_orphaned_hosts option and support for orphaned
host checks.
- Passive host check states can now be translated from their
original DOWN/UNREACHABLE state if the new
translate_passive_host_results option is enabled.
- 'parallelize' option in service definitions deprecated/no longer
used.
- Added cached_service_check_horizon option for enabling use of
cached service check results.
- Added enable_predictive_service_dependency_checks for enabling
predictive checks of dependent services.
- Host and service dependencies can now have a timeperiod during
which they're valid (dependency_period directive).
- Updated NEB API version.
- Modified adaptive program status callback.
- Added adaptive contact status callback.
- Added host/service precheck callbacks to allow modules to
cancel/override internal host/service checks.
- Added 'enable_embedded_perl' option to main config file to control
whether epn is enabled/disabled.
- Added support for perl plugins to specify whether or not they
should be run under the epn... The second to tenth line of a perl
plugin may start with '# nagios: +epn' or '# nagios: -epn' to
explicity indicate that it should be run under the epn.
- Added 'use_embedded_perl_implicitly' option to main config file
to determine whether or not perl plugins will use the epn if they
don't explicitly allow/disalow it.
- Hostgroup and servicegroup summaries now show important/unimportant
problem breakdowns like the TAC CGI.
- Minor layout changes to host and service detail views in extinfo CGI.
- More information given when testing scheduling (-s command line
option).
- Removed fixed length restrictions for host names and service
descriptions.
- Plugin output length restriction bumped up to 4K.
- Added temp_path directive to main config file for specifying temp
directory.
- Multiline output support for system commands via my_system().
- Added global event_id and notification_id vars that are at least
unique during a single run of Nagios.
- Default is now to check for orphaned services, rather than not.
- Renamed service_reaper_frequency to check_result_reaper_frequency.
- Fractional notification and check intervals are now supported
(e.g. "3.5" minutes).
- Backslash chars are now used to escape command arguments that
contain \ or ! characters.
- Added 'external_command_buffer_slots' and
'check_result_buffer_slots' variables to specify size of internal
buffers.
- Added check statistics to status file, available via nagiostats
for graphing in MRTG.
- Added $HOSTGROUPNAMES$, $SERVICEGROUPNAMES$, $HOSTACKAUTHORNAME$,
$HOSTACKAUTHORALIAS$, $SERVICEACKAUTHORNAME$, and
$SERVICEACKAUTHORALIAS$ macros.
- Added warning for invalid temp_path directory.
- Added support for extended regular expression matching in
object config files.
- Added new "p" option to host/service_perfdata_file_mode
directives for pipes.
- Command definitions and host/service plugin perfdata with HTML
should now be escaped in CGIs.
- Hostgroup and servicegroup definitions now have notes, notes_url,
and action_url directives.
- Added buffer stats and check statistics to performance
information in extinfo CGI.
- Removed legacy 2.x host check logic and use_old_host_check_logic
option.
- Added max_check_result_file_age option to control processing of
check results in older files.
- Added check_result_path option to set path used to store
check results.
- New IPC method for passing host/service check results back to
main daemon.
- Removed check_result_buffer_slots option from main
configuration file.
- Added test for writeability of temp directory during configuration
test.
- Minor changes to freshness threshold calculation.
- Added 'initial_state' option to host and service definitions
to allow for non-UP/OK initial states.
- Changed debug file format to include current pid.
- Changes to sample config files and installation location.
- Expanded timeperiod definitions to allow for day/date exceptions.
- Added new 'passive_host_checks_are_soft' config option.
- Added new 'exclude' option to timeperiod definitions for
easy on-call rotation definitions.
- Added new action and notes URL target frame options to CGI
config file.
- Added optional integration with Splunk into the CGIs.
- Added escape_html_tags option to CGI config file to escape HTML
tags in plugin output.
- Program status now updated at least every 5 seconds for addons
that watch NDOUtils DB.
- Added $MAXHOSTATTEMPTS$ and $MAXSERVICEATTEMPTS$ macros.
- Added status CGI host/service property filters for hard and
soft states.
- New macros: $SERVICEISVOLATILE$, $TOTALHOSTSERVICES$,
$TOTALHOSTSERVICESOK$, $TOTALHOSTSERVICESWARNING$,
$TOTALHOSTSERVICESUNKNOWN$, $TOTALHOSTSERVICESCRITICAL$,
$HOSTDOWNTIMEAUTHOR$, $HOSTDOWNTIMEAUTHORNAME$,
$HOSTDOWNTIMEAUTHORALIAS$, $HOSTDOWNTIMECOMMENT$,
$SERVICEDOWNTIMEAUTHOR$, $SERVICEDOWNTIMEAUTHORNAME$,
$SERVICEDOWNTIMEAUTHORALIAS$, $SERVICEDOWNTIMECOMMENT$.
- Improvements to the host check logic performance (more use of
cached and parallel checks).
- Version number is now printed in CGI pages.
- Added custom delimiter option in nagiostats output (useful for
CSV output).
- Alias, if not specified, now defaults to object name in host,
hostgroup, servicegroup, contact, and contactgroup definitions.
- Added custom host and service notifications, with option to force
the notifications and broadcast them to all contacts.
- Added new 'check' option to init script to verify configuration.
- More complete (but still partial) support for macros in CGIs
($xNOTES$, $xNOTESURL$, and $xACTIONURL$ macros).
- Added on-demand contact and contactgroup macro support.
- New macros: $HOSTGROUPMEMBERS$, $HOSTGROUPNOTES$, $HOSTGROUPNOTESURL$,
$HOSTGROUPACTIONURL$, $SERVICEGROUPMEMBERS$, $SERVICEGROUPNOTES$,
$SERVICEGROUPNOTESURL$, $SERVICEGROUPACTIONURL$, $CONTACTGROUPALIAS$,
$CONTACTGROUPMEMBERS$, $NOTIFICATIONRECIPIENTS$, $NOTIFICATIONAUTHOR$,
$NOTIFICATIONAUTHORNAME$, $NOTIFICATIONAUTHORALIAS$,
$NOTIFICATIONCOMMENT$.
- Added support for relative paths in config_file and config_dir directives.
- Added passive check latency stats to nagiostats.
- Workaround to prevent browsers from incorrectly using cached
statusmap image on page refresh.
- Added use_pending_states option to CGI config file to determine
displayed state of hosts/services that have not been checked.
- Added $EVENTSTARTTIME$ macro to indicate time Nagios started
processing events (checks, etc.).
- Improvements in freshness check logic.
- Added additional_freshness_latency config file directive.
- Improvement in service flap detection logic.
- Status file is no longer deleted during restarts due to a SIGHUP
or external command.
- Special additive inheritance rule: escalation contact(group)(s)
that begin with '+' will now inherit from associated host/service
definition if not inheriting from another escalation template.
- Addition of object pointers to event broker module data structures
(may require event broker module rebuilds).
- Added $LASTHOSTSTATE$, $LASTHOSTSTATEID$, $LASTSERVICESTATE$, and
$LASTSERVICESTATEID$ macros.
- Better error logging when failing to rename/move files.
- Summary macros are now available as regular (non-environment) macros
if requested when large installation tweaks are enabled.
- Major overhaul (read: complete rewrite) of macro code, so macros are
now only computed when found.
- Added enable_environment_macros option to determine whether or not
macros are set as environment vars.
- Added $ISVALIDTIME:$ and $NEXTVALIDTIME:$ on-demand macros.
- Added new external commands to change modified object attributes
(affecting data retention logic).
- Added new external commands to change notification period for
host, services, and contact on-the-fly.
- Retention of host/service check scheduling options.
- Caching of Perl scripts now enabled by default if embedded Perl
interpreter is compiled in.
- Increased max plugin output length cap from 4kb to 8kb.
- Additional functionality of additive inheritance feature.
- Added free_child_process_memory and child_processes_fork_twice
options for performance tweaks.
- Added use_timezone option to allow Nagios instances to run in
non-native timezones.
- Support for line continuation/breaks in config files - end lines with
one back slash (\) to continue on next line.
- Auto-filled comment/author fields for acknowledging problems through
WAP interface.
- Faster program startup times (especially in large installs) with new
object lookup code.
- Nagios no longer warns or errors when encountering
host/contact/service groups with empty memberships.
- Allow non-ASCII characters in notifications, etc.
- Smarter host check logic to reduce (uncached) on-demand host checks
during "stable" service problems.
- New flap detection startup logic speedups when large installations
tweaks enabled.
- Speed improvements during startup routines when using precached config.
- Speed improvements in reading retention data during startup.
- Changed embedded audio MIME types in CGIs to "application/wav".
- Safer loading mechanism for NEB modules to prevent segfaults in Nagios.
- Embedded Perl is now disabled by default.
- Misc internal performance improvements.
- More debug/trace log functionality.
- Internal data structure cleanups.
- Logging API revamp, cleanup.
- Error logging improvements.
- Various bugfixes.
- Documentation updates.
2008-07-21 02:35:42 +02:00
|
|
|
CONFIGURE_ARGS+= --with-nagios-user=${NAGIOS_USER}
|
|
|
|
CONFIGURE_ARGS+= --with-nagios-group=${NAGIOS_GROUP}
|
|
|
|
CONFIGURE_ARGS+= --with-command-user=${NAGIOS_USER}
|
|
|
|
CONFIGURE_ARGS+= --with-command-group=${NAGIOSCMD_GROUP}
|
2006-02-18 18:12:20 +01:00
|
|
|
CONFIGURE_ARGS+= --with-init-dir=${PREFIX}/share/examples/rc.d
|
Update nagios-base to 3.2.3. While there, add DESTDIR support and set LICENSE.
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)
* Patch to new_mini_epn to allow any command line length without breaking on extra trailing or leading whitespace (Ray Bengen)
* Patch to mini_epn to allow any command line length (Thomas Guyot-Sionnest)
* Patch to speed up loading of state retention data (Matthieu Kermagoret)
* Custom notifications are now suppressed during scheduled downtime (Sven Nierlein)
* Added code to warn user about exit code of 126 meaning plugin is not executable (bug #153)
* Scheduled downtime can now start on SOFT error states (bug #47)
* Main window frame URL can now be specify with a "corewindow=" parameter
* Improved config CGI shows commands, command args in an easier to use manner (Jochen Bern)
* Added ability for NEB modules to override execution of event handlers (Sven Nierlein)
* Custom macros are no longer cleaned/stripped as they are user-defined and should be trusted (Peter Morch)
* Fix for choosing next valid time on day of DST change when clocks go one hour backwards
* Fix for nagios now erroring when "Error: Could not find any contactgroup matching..." displayed
* Fix tap tests for Sol0 and newer versions of Test::Harness
* Fix for notifications not being sent out when scheduled downtime is canceluzzner)
* Fix for first notification delay being calculated incorrectly, and notifications potentially going out early (Plachowski)
* Fix for text of scheduling downtime of all services on a host (Holger Weiss)
* Fix for services inheriting notification period from hosts if not defined (Gordon Messmer)
* Fix for incorrect service states on host failures (bug #130 Pet)
* Fix for incorrect service state attributes being set on host failures (bug #128 Petya Kohts)
* Fix for non-scheduled hostsnd services not being updated in NDOUtils
* Fix for typos in TAC, CMD CGIs (bugs #150, #144, #148)
* Fix for types in documentation (bugs #145, #105, #106)
* Fix for incorrect host state counts in status CGI when viewing servicegroups (bug #72)
* Fix few Splunk integration query parameters (bug #136)
* Fix for extra field header in availability CSV export (bug #113)
* Fix foracro processing code modifying input string (Jochen Bern)
* Fix for update check API
* Fix for CGI speedup when persistent=0 f comments
* Fix for event execution loop re-scheduling host checks instead of executing them if service checks are disabled (b #152)
* Fix for segfaults on Solaris (Torsten Huebler)
* Fix for incorrect comment expiration times being passed to event bror (Mattieu Kermagot)
* Doc updates related to cleaning of custom macros (Peter Valdemar Morch)
* Fix to sample notify-service--email command (bug #62)
* Fix for retaining host display name and alias, as well as service display name (Folkert van Heusden* Link to allow scheduling downtime for all services on a host (Hendrik Baecker)
* Speedup to CGIs when lots of comments or dotimes in status.dat file (Jonathan Kamens)
* Patch for new_mini_epn to allow for any command line length without breaking extra trailing or leading whitespace (Ray Bengen)
* Fix for incorrect scheduling when time has gone back an hour (partial fix for 24x7)
* Fix for compile on Fedora Core 3 (bug #0000082)
* Fix for compile on Solaris
* Fix for logging test, which was not timezone aware (bug #0000077 - Allan Clark)
* Trivial cleanups for autoconf (Allan Clark)
* Fix for CSS validation of padding: X
* Fix for documentation re: case-insensitive nature of custom variables (Marc Powell)
* Fix for template configurations which use negated wildcards (Tim Wilde)
* Fix for read-only permissions bug in CGIs that caused problems viewing comments (bug #0000029)
* Fix for incorrect CGI reports (availability, trends, etc.) when reporting period spans Daylight Savings Time (bug #0000046)
* Fix for detection of truecolor support in GD library (Lars Hecking)
* Reverted to use --datadir configure script option instead of the more recently introduced --datarootdir option
* Status and retention files are now flushed/synced to disk to prevent incomplete information being displayed in CGIs
* Fix for incorrect next service check time calculation when Nagios is reloaded with different timeperiod ranges
* Updated Fedora quistart guide to indicate PHP requirements
* Known issue: Service checks that are defined with timeperiods that contain "exclude" directives are incorrectly re-scheduled. Don't use these for now - we'll get this
fixed for 3.4
2011-04-09 00:37:24 +02:00
|
|
|
CONFIGURE_ARGS+= --with-lockfile=/var/run/nagios/nagios.lock
|
2006-02-18 18:12:20 +01:00
|
|
|
|
2017-07-06 11:24:30 +02:00
|
|
|
USE_TOOLS+= mail:run perl unzip
|
Update nagios-base to 3.0.3. Changes since 2.12:
- Check timeperiod can now be modified on-the-fly.
- Added first_notification_delay to host and object definitions
to delay first notification.
- Notifications are now sent out when flap detection is disabled
on a host/service-specific or program-wide basis
($NOTIFICATIONTYPE$ macro = "FLAPPINGDISABLED").
- Notifications can now be sent out when scheduled downtime starts,
ends, and is cancelled. The $NOTIFICATIONTYPE$ macro will be set
to "DOWNTIMESTART", "DOWNTIMEEND", or "DOWNTIMECANCELLED",
respectively. In order to receive downtime notifications,
specify 's' or 'downtime' in contact, host, and/or service
notification options.
- Added ability to use multiple template names (separated by commas)
in object definitions.
- Added ability to null out optional character directives in object
definitions (using 'null' without quotes).
- Added hostg/service/contactgroup_members directives to
host/service/contactgroup definitions, respectively, for allowing
including host, service, or contact members from "sub" groups.
- Added support for custom variables in host, service, and contact
definitions.
- Added host_notifications_enabled, service_notifications_enabled,
can_submit_commands to contact definitions.
- Added optional display_name directive to host and service definitions.
- Removed serviceextinfo definitions and merged variables with
service definitions.
- Removed hostextinfo definitions and merged variables with host
definitions.
- Services inherit contactgroups, notification interval, and
notification period from associated host if not specified.
- Service escalations inherit contactgroups, notification interval,
and escalation period from associated service if not specified.
- Host escalations inherit contactgroups, notification interval,
and escalation period from associated host if not specified.
- Host, service, host escalation, and service escalation
definitions now support a 'contacts' directive, along with
'contact_groups'.
- Service dependencies with blank dependent host/hostgroup names
will create "same host" dependencies.
- Added ability to precache object config files.
- Added ability to exclude object relationship and circular
path checks from verification process.
- Multiline output support for host and service checks.
- Added $LONGHOSTOUTPUT$ and $LONGSERVICEOUTPUT$ macros.
- Added $TEMPPATH$ macro.
- Removed $COMMENTDATAFILE$ and $DOWNTIMEDATAFILE$ macros.
- Added $HOSTDISPLAYNAME$ and $SERVICEDISPLAYNAME$ macros.
- Custom host/service/contact macros accessible via $_HOST<varname>$,
$_SERVICE<varname>$, or $_CONTACT<varname>$. On-demand host/service
macros for custom vars are working. Custom vars are also set as
environment vars.
- On-demand service macros can contain and empty host name field.
In this case, the name of the current host will be used.
- $HOSTNOTES$ and $SERVICENOTES$ macros may now contain macros
themselves.
- Added flap_detection_options directive to host and service
definitions to control which states (i.e. OK, WARNING, UNKNOWN,
and/or CRITICAL) are used in flap detection logic.
- Percent state change and state history are now retained and
recorded even when host/service flap detection is disabled.
- Hosts and services are immediately check for flapping when flap
detection is enabled program-wide.
- Hosts/services that are flapping when flap detection is disabled
program-wide are now logged.
- Added PROCESS_FILE external command to allow processing of
external commands found in an external (regular) file. Very
useful for passive checks with long out put or scripting.
- Custom commands can now be submitted to Nagios. Custom command
names are prefixed with an underscore and are not processed
internally by the Nagios daemon. They may, however, be processed
by NEB modules.
- External commands are now checked by default. Nagios 2.x and
earlier did not check for external commands by default.
- Contact status information is now saved (although it is not
processed by the old CGIs).
- Contact status information is now retained across program
restarts.
- Comment and downtime IDs are now stored across program restarts,
should be unique unless reset.
- Added retained_host/service_attribute_mask variables to control
what host/service attribs are retained globally.
- Added retained_process_host/service_attribute_mask variables to
control what process attribs are retained.
- Added retained_contact_host/service_attribute_mask variables to
control what contact attribs are retained globally.
- Scheduled downtime entries are now stored in the status and
retention files.
- Comments are now stored in the status and retention files.
- Non-persistent acknowledgement comments are now deleted when the
acknowledgement is removed (instead of when Nagios restarts).
- Most host checks are now run asynchronously, in parallel!
- Scheduled host checks now help improve performance, instead of
hinder it (if caching is enabled).
- Added cached_host_check_horizon option for enabling use of
cached host check results.
- Added enable_predictive_host_dependency_checks for enabling
predictive checks of dependent hosts.
- Added retry_interval to host definitions.
- Added check_for_orphaned_hosts option and support for orphaned
host checks.
- Passive host check states can now be translated from their
original DOWN/UNREACHABLE state if the new
translate_passive_host_results option is enabled.
- 'parallelize' option in service definitions deprecated/no longer
used.
- Added cached_service_check_horizon option for enabling use of
cached service check results.
- Added enable_predictive_service_dependency_checks for enabling
predictive checks of dependent services.
- Host and service dependencies can now have a timeperiod during
which they're valid (dependency_period directive).
- Updated NEB API version.
- Modified adaptive program status callback.
- Added adaptive contact status callback.
- Added host/service precheck callbacks to allow modules to
cancel/override internal host/service checks.
- Added 'enable_embedded_perl' option to main config file to control
whether epn is enabled/disabled.
- Added support for perl plugins to specify whether or not they
should be run under the epn... The second to tenth line of a perl
plugin may start with '# nagios: +epn' or '# nagios: -epn' to
explicity indicate that it should be run under the epn.
- Added 'use_embedded_perl_implicitly' option to main config file
to determine whether or not perl plugins will use the epn if they
don't explicitly allow/disalow it.
- Hostgroup and servicegroup summaries now show important/unimportant
problem breakdowns like the TAC CGI.
- Minor layout changes to host and service detail views in extinfo CGI.
- More information given when testing scheduling (-s command line
option).
- Removed fixed length restrictions for host names and service
descriptions.
- Plugin output length restriction bumped up to 4K.
- Added temp_path directive to main config file for specifying temp
directory.
- Multiline output support for system commands via my_system().
- Added global event_id and notification_id vars that are at least
unique during a single run of Nagios.
- Default is now to check for orphaned services, rather than not.
- Renamed service_reaper_frequency to check_result_reaper_frequency.
- Fractional notification and check intervals are now supported
(e.g. "3.5" minutes).
- Backslash chars are now used to escape command arguments that
contain \ or ! characters.
- Added 'external_command_buffer_slots' and
'check_result_buffer_slots' variables to specify size of internal
buffers.
- Added check statistics to status file, available via nagiostats
for graphing in MRTG.
- Added $HOSTGROUPNAMES$, $SERVICEGROUPNAMES$, $HOSTACKAUTHORNAME$,
$HOSTACKAUTHORALIAS$, $SERVICEACKAUTHORNAME$, and
$SERVICEACKAUTHORALIAS$ macros.
- Added warning for invalid temp_path directory.
- Added support for extended regular expression matching in
object config files.
- Added new "p" option to host/service_perfdata_file_mode
directives for pipes.
- Command definitions and host/service plugin perfdata with HTML
should now be escaped in CGIs.
- Hostgroup and servicegroup definitions now have notes, notes_url,
and action_url directives.
- Added buffer stats and check statistics to performance
information in extinfo CGI.
- Removed legacy 2.x host check logic and use_old_host_check_logic
option.
- Added max_check_result_file_age option to control processing of
check results in older files.
- Added check_result_path option to set path used to store
check results.
- New IPC method for passing host/service check results back to
main daemon.
- Removed check_result_buffer_slots option from main
configuration file.
- Added test for writeability of temp directory during configuration
test.
- Minor changes to freshness threshold calculation.
- Added 'initial_state' option to host and service definitions
to allow for non-UP/OK initial states.
- Changed debug file format to include current pid.
- Changes to sample config files and installation location.
- Expanded timeperiod definitions to allow for day/date exceptions.
- Added new 'passive_host_checks_are_soft' config option.
- Added new 'exclude' option to timeperiod definitions for
easy on-call rotation definitions.
- Added new action and notes URL target frame options to CGI
config file.
- Added optional integration with Splunk into the CGIs.
- Added escape_html_tags option to CGI config file to escape HTML
tags in plugin output.
- Program status now updated at least every 5 seconds for addons
that watch NDOUtils DB.
- Added $MAXHOSTATTEMPTS$ and $MAXSERVICEATTEMPTS$ macros.
- Added status CGI host/service property filters for hard and
soft states.
- New macros: $SERVICEISVOLATILE$, $TOTALHOSTSERVICES$,
$TOTALHOSTSERVICESOK$, $TOTALHOSTSERVICESWARNING$,
$TOTALHOSTSERVICESUNKNOWN$, $TOTALHOSTSERVICESCRITICAL$,
$HOSTDOWNTIMEAUTHOR$, $HOSTDOWNTIMEAUTHORNAME$,
$HOSTDOWNTIMEAUTHORALIAS$, $HOSTDOWNTIMECOMMENT$,
$SERVICEDOWNTIMEAUTHOR$, $SERVICEDOWNTIMEAUTHORNAME$,
$SERVICEDOWNTIMEAUTHORALIAS$, $SERVICEDOWNTIMECOMMENT$.
- Improvements to the host check logic performance (more use of
cached and parallel checks).
- Version number is now printed in CGI pages.
- Added custom delimiter option in nagiostats output (useful for
CSV output).
- Alias, if not specified, now defaults to object name in host,
hostgroup, servicegroup, contact, and contactgroup definitions.
- Added custom host and service notifications, with option to force
the notifications and broadcast them to all contacts.
- Added new 'check' option to init script to verify configuration.
- More complete (but still partial) support for macros in CGIs
($xNOTES$, $xNOTESURL$, and $xACTIONURL$ macros).
- Added on-demand contact and contactgroup macro support.
- New macros: $HOSTGROUPMEMBERS$, $HOSTGROUPNOTES$, $HOSTGROUPNOTESURL$,
$HOSTGROUPACTIONURL$, $SERVICEGROUPMEMBERS$, $SERVICEGROUPNOTES$,
$SERVICEGROUPNOTESURL$, $SERVICEGROUPACTIONURL$, $CONTACTGROUPALIAS$,
$CONTACTGROUPMEMBERS$, $NOTIFICATIONRECIPIENTS$, $NOTIFICATIONAUTHOR$,
$NOTIFICATIONAUTHORNAME$, $NOTIFICATIONAUTHORALIAS$,
$NOTIFICATIONCOMMENT$.
- Added support for relative paths in config_file and config_dir directives.
- Added passive check latency stats to nagiostats.
- Workaround to prevent browsers from incorrectly using cached
statusmap image on page refresh.
- Added use_pending_states option to CGI config file to determine
displayed state of hosts/services that have not been checked.
- Added $EVENTSTARTTIME$ macro to indicate time Nagios started
processing events (checks, etc.).
- Improvements in freshness check logic.
- Added additional_freshness_latency config file directive.
- Improvement in service flap detection logic.
- Status file is no longer deleted during restarts due to a SIGHUP
or external command.
- Special additive inheritance rule: escalation contact(group)(s)
that begin with '+' will now inherit from associated host/service
definition if not inheriting from another escalation template.
- Addition of object pointers to event broker module data structures
(may require event broker module rebuilds).
- Added $LASTHOSTSTATE$, $LASTHOSTSTATEID$, $LASTSERVICESTATE$, and
$LASTSERVICESTATEID$ macros.
- Better error logging when failing to rename/move files.
- Summary macros are now available as regular (non-environment) macros
if requested when large installation tweaks are enabled.
- Major overhaul (read: complete rewrite) of macro code, so macros are
now only computed when found.
- Added enable_environment_macros option to determine whether or not
macros are set as environment vars.
- Added $ISVALIDTIME:$ and $NEXTVALIDTIME:$ on-demand macros.
- Added new external commands to change modified object attributes
(affecting data retention logic).
- Added new external commands to change notification period for
host, services, and contact on-the-fly.
- Retention of host/service check scheduling options.
- Caching of Perl scripts now enabled by default if embedded Perl
interpreter is compiled in.
- Increased max plugin output length cap from 4kb to 8kb.
- Additional functionality of additive inheritance feature.
- Added free_child_process_memory and child_processes_fork_twice
options for performance tweaks.
- Added use_timezone option to allow Nagios instances to run in
non-native timezones.
- Support for line continuation/breaks in config files - end lines with
one back slash (\) to continue on next line.
- Auto-filled comment/author fields for acknowledging problems through
WAP interface.
- Faster program startup times (especially in large installs) with new
object lookup code.
- Nagios no longer warns or errors when encountering
host/contact/service groups with empty memberships.
- Allow non-ASCII characters in notifications, etc.
- Smarter host check logic to reduce (uncached) on-demand host checks
during "stable" service problems.
- New flap detection startup logic speedups when large installations
tweaks enabled.
- Speed improvements during startup routines when using precached config.
- Speed improvements in reading retention data during startup.
- Changed embedded audio MIME types in CGIs to "application/wav".
- Safer loading mechanism for NEB modules to prevent segfaults in Nagios.
- Embedded Perl is now disabled by default.
- Misc internal performance improvements.
- More debug/trace log functionality.
- Internal data structure cleanups.
- Logging API revamp, cleanup.
- Error logging improvements.
- Various bugfixes.
- Documentation updates.
2008-07-21 02:35:42 +02:00
|
|
|
CONFIGURE_ARGS+= --with-mail=${TOOLS_PLATFORM.mail:Q}
|
2006-10-20 10:45:10 +02:00
|
|
|
|
2006-02-18 18:12:20 +01:00
|
|
|
RCD_SCRIPTS+= nagios
|
2014-03-11 15:34:36 +01:00
|
|
|
SMF_NAME= nagios
|
Update nagios-base to 3.0.3. Changes since 2.12:
- Check timeperiod can now be modified on-the-fly.
- Added first_notification_delay to host and object definitions
to delay first notification.
- Notifications are now sent out when flap detection is disabled
on a host/service-specific or program-wide basis
($NOTIFICATIONTYPE$ macro = "FLAPPINGDISABLED").
- Notifications can now be sent out when scheduled downtime starts,
ends, and is cancelled. The $NOTIFICATIONTYPE$ macro will be set
to "DOWNTIMESTART", "DOWNTIMEEND", or "DOWNTIMECANCELLED",
respectively. In order to receive downtime notifications,
specify 's' or 'downtime' in contact, host, and/or service
notification options.
- Added ability to use multiple template names (separated by commas)
in object definitions.
- Added ability to null out optional character directives in object
definitions (using 'null' without quotes).
- Added hostg/service/contactgroup_members directives to
host/service/contactgroup definitions, respectively, for allowing
including host, service, or contact members from "sub" groups.
- Added support for custom variables in host, service, and contact
definitions.
- Added host_notifications_enabled, service_notifications_enabled,
can_submit_commands to contact definitions.
- Added optional display_name directive to host and service definitions.
- Removed serviceextinfo definitions and merged variables with
service definitions.
- Removed hostextinfo definitions and merged variables with host
definitions.
- Services inherit contactgroups, notification interval, and
notification period from associated host if not specified.
- Service escalations inherit contactgroups, notification interval,
and escalation period from associated service if not specified.
- Host escalations inherit contactgroups, notification interval,
and escalation period from associated host if not specified.
- Host, service, host escalation, and service escalation
definitions now support a 'contacts' directive, along with
'contact_groups'.
- Service dependencies with blank dependent host/hostgroup names
will create "same host" dependencies.
- Added ability to precache object config files.
- Added ability to exclude object relationship and circular
path checks from verification process.
- Multiline output support for host and service checks.
- Added $LONGHOSTOUTPUT$ and $LONGSERVICEOUTPUT$ macros.
- Added $TEMPPATH$ macro.
- Removed $COMMENTDATAFILE$ and $DOWNTIMEDATAFILE$ macros.
- Added $HOSTDISPLAYNAME$ and $SERVICEDISPLAYNAME$ macros.
- Custom host/service/contact macros accessible via $_HOST<varname>$,
$_SERVICE<varname>$, or $_CONTACT<varname>$. On-demand host/service
macros for custom vars are working. Custom vars are also set as
environment vars.
- On-demand service macros can contain and empty host name field.
In this case, the name of the current host will be used.
- $HOSTNOTES$ and $SERVICENOTES$ macros may now contain macros
themselves.
- Added flap_detection_options directive to host and service
definitions to control which states (i.e. OK, WARNING, UNKNOWN,
and/or CRITICAL) are used in flap detection logic.
- Percent state change and state history are now retained and
recorded even when host/service flap detection is disabled.
- Hosts and services are immediately check for flapping when flap
detection is enabled program-wide.
- Hosts/services that are flapping when flap detection is disabled
program-wide are now logged.
- Added PROCESS_FILE external command to allow processing of
external commands found in an external (regular) file. Very
useful for passive checks with long out put or scripting.
- Custom commands can now be submitted to Nagios. Custom command
names are prefixed with an underscore and are not processed
internally by the Nagios daemon. They may, however, be processed
by NEB modules.
- External commands are now checked by default. Nagios 2.x and
earlier did not check for external commands by default.
- Contact status information is now saved (although it is not
processed by the old CGIs).
- Contact status information is now retained across program
restarts.
- Comment and downtime IDs are now stored across program restarts,
should be unique unless reset.
- Added retained_host/service_attribute_mask variables to control
what host/service attribs are retained globally.
- Added retained_process_host/service_attribute_mask variables to
control what process attribs are retained.
- Added retained_contact_host/service_attribute_mask variables to
control what contact attribs are retained globally.
- Scheduled downtime entries are now stored in the status and
retention files.
- Comments are now stored in the status and retention files.
- Non-persistent acknowledgement comments are now deleted when the
acknowledgement is removed (instead of when Nagios restarts).
- Most host checks are now run asynchronously, in parallel!
- Scheduled host checks now help improve performance, instead of
hinder it (if caching is enabled).
- Added cached_host_check_horizon option for enabling use of
cached host check results.
- Added enable_predictive_host_dependency_checks for enabling
predictive checks of dependent hosts.
- Added retry_interval to host definitions.
- Added check_for_orphaned_hosts option and support for orphaned
host checks.
- Passive host check states can now be translated from their
original DOWN/UNREACHABLE state if the new
translate_passive_host_results option is enabled.
- 'parallelize' option in service definitions deprecated/no longer
used.
- Added cached_service_check_horizon option for enabling use of
cached service check results.
- Added enable_predictive_service_dependency_checks for enabling
predictive checks of dependent services.
- Host and service dependencies can now have a timeperiod during
which they're valid (dependency_period directive).
- Updated NEB API version.
- Modified adaptive program status callback.
- Added adaptive contact status callback.
- Added host/service precheck callbacks to allow modules to
cancel/override internal host/service checks.
- Added 'enable_embedded_perl' option to main config file to control
whether epn is enabled/disabled.
- Added support for perl plugins to specify whether or not they
should be run under the epn... The second to tenth line of a perl
plugin may start with '# nagios: +epn' or '# nagios: -epn' to
explicity indicate that it should be run under the epn.
- Added 'use_embedded_perl_implicitly' option to main config file
to determine whether or not perl plugins will use the epn if they
don't explicitly allow/disalow it.
- Hostgroup and servicegroup summaries now show important/unimportant
problem breakdowns like the TAC CGI.
- Minor layout changes to host and service detail views in extinfo CGI.
- More information given when testing scheduling (-s command line
option).
- Removed fixed length restrictions for host names and service
descriptions.
- Plugin output length restriction bumped up to 4K.
- Added temp_path directive to main config file for specifying temp
directory.
- Multiline output support for system commands via my_system().
- Added global event_id and notification_id vars that are at least
unique during a single run of Nagios.
- Default is now to check for orphaned services, rather than not.
- Renamed service_reaper_frequency to check_result_reaper_frequency.
- Fractional notification and check intervals are now supported
(e.g. "3.5" minutes).
- Backslash chars are now used to escape command arguments that
contain \ or ! characters.
- Added 'external_command_buffer_slots' and
'check_result_buffer_slots' variables to specify size of internal
buffers.
- Added check statistics to status file, available via nagiostats
for graphing in MRTG.
- Added $HOSTGROUPNAMES$, $SERVICEGROUPNAMES$, $HOSTACKAUTHORNAME$,
$HOSTACKAUTHORALIAS$, $SERVICEACKAUTHORNAME$, and
$SERVICEACKAUTHORALIAS$ macros.
- Added warning for invalid temp_path directory.
- Added support for extended regular expression matching in
object config files.
- Added new "p" option to host/service_perfdata_file_mode
directives for pipes.
- Command definitions and host/service plugin perfdata with HTML
should now be escaped in CGIs.
- Hostgroup and servicegroup definitions now have notes, notes_url,
and action_url directives.
- Added buffer stats and check statistics to performance
information in extinfo CGI.
- Removed legacy 2.x host check logic and use_old_host_check_logic
option.
- Added max_check_result_file_age option to control processing of
check results in older files.
- Added check_result_path option to set path used to store
check results.
- New IPC method for passing host/service check results back to
main daemon.
- Removed check_result_buffer_slots option from main
configuration file.
- Added test for writeability of temp directory during configuration
test.
- Minor changes to freshness threshold calculation.
- Added 'initial_state' option to host and service definitions
to allow for non-UP/OK initial states.
- Changed debug file format to include current pid.
- Changes to sample config files and installation location.
- Expanded timeperiod definitions to allow for day/date exceptions.
- Added new 'passive_host_checks_are_soft' config option.
- Added new 'exclude' option to timeperiod definitions for
easy on-call rotation definitions.
- Added new action and notes URL target frame options to CGI
config file.
- Added optional integration with Splunk into the CGIs.
- Added escape_html_tags option to CGI config file to escape HTML
tags in plugin output.
- Program status now updated at least every 5 seconds for addons
that watch NDOUtils DB.
- Added $MAXHOSTATTEMPTS$ and $MAXSERVICEATTEMPTS$ macros.
- Added status CGI host/service property filters for hard and
soft states.
- New macros: $SERVICEISVOLATILE$, $TOTALHOSTSERVICES$,
$TOTALHOSTSERVICESOK$, $TOTALHOSTSERVICESWARNING$,
$TOTALHOSTSERVICESUNKNOWN$, $TOTALHOSTSERVICESCRITICAL$,
$HOSTDOWNTIMEAUTHOR$, $HOSTDOWNTIMEAUTHORNAME$,
$HOSTDOWNTIMEAUTHORALIAS$, $HOSTDOWNTIMECOMMENT$,
$SERVICEDOWNTIMEAUTHOR$, $SERVICEDOWNTIMEAUTHORNAME$,
$SERVICEDOWNTIMEAUTHORALIAS$, $SERVICEDOWNTIMECOMMENT$.
- Improvements to the host check logic performance (more use of
cached and parallel checks).
- Version number is now printed in CGI pages.
- Added custom delimiter option in nagiostats output (useful for
CSV output).
- Alias, if not specified, now defaults to object name in host,
hostgroup, servicegroup, contact, and contactgroup definitions.
- Added custom host and service notifications, with option to force
the notifications and broadcast them to all contacts.
- Added new 'check' option to init script to verify configuration.
- More complete (but still partial) support for macros in CGIs
($xNOTES$, $xNOTESURL$, and $xACTIONURL$ macros).
- Added on-demand contact and contactgroup macro support.
- New macros: $HOSTGROUPMEMBERS$, $HOSTGROUPNOTES$, $HOSTGROUPNOTESURL$,
$HOSTGROUPACTIONURL$, $SERVICEGROUPMEMBERS$, $SERVICEGROUPNOTES$,
$SERVICEGROUPNOTESURL$, $SERVICEGROUPACTIONURL$, $CONTACTGROUPALIAS$,
$CONTACTGROUPMEMBERS$, $NOTIFICATIONRECIPIENTS$, $NOTIFICATIONAUTHOR$,
$NOTIFICATIONAUTHORNAME$, $NOTIFICATIONAUTHORALIAS$,
$NOTIFICATIONCOMMENT$.
- Added support for relative paths in config_file and config_dir directives.
- Added passive check latency stats to nagiostats.
- Workaround to prevent browsers from incorrectly using cached
statusmap image on page refresh.
- Added use_pending_states option to CGI config file to determine
displayed state of hosts/services that have not been checked.
- Added $EVENTSTARTTIME$ macro to indicate time Nagios started
processing events (checks, etc.).
- Improvements in freshness check logic.
- Added additional_freshness_latency config file directive.
- Improvement in service flap detection logic.
- Status file is no longer deleted during restarts due to a SIGHUP
or external command.
- Special additive inheritance rule: escalation contact(group)(s)
that begin with '+' will now inherit from associated host/service
definition if not inheriting from another escalation template.
- Addition of object pointers to event broker module data structures
(may require event broker module rebuilds).
- Added $LASTHOSTSTATE$, $LASTHOSTSTATEID$, $LASTSERVICESTATE$, and
$LASTSERVICESTATEID$ macros.
- Better error logging when failing to rename/move files.
- Summary macros are now available as regular (non-environment) macros
if requested when large installation tweaks are enabled.
- Major overhaul (read: complete rewrite) of macro code, so macros are
now only computed when found.
- Added enable_environment_macros option to determine whether or not
macros are set as environment vars.
- Added $ISVALIDTIME:$ and $NEXTVALIDTIME:$ on-demand macros.
- Added new external commands to change modified object attributes
(affecting data retention logic).
- Added new external commands to change notification period for
host, services, and contact on-the-fly.
- Retention of host/service check scheduling options.
- Caching of Perl scripts now enabled by default if embedded Perl
interpreter is compiled in.
- Increased max plugin output length cap from 4kb to 8kb.
- Additional functionality of additive inheritance feature.
- Added free_child_process_memory and child_processes_fork_twice
options for performance tweaks.
- Added use_timezone option to allow Nagios instances to run in
non-native timezones.
- Support for line continuation/breaks in config files - end lines with
one back slash (\) to continue on next line.
- Auto-filled comment/author fields for acknowledging problems through
WAP interface.
- Faster program startup times (especially in large installs) with new
object lookup code.
- Nagios no longer warns or errors when encountering
host/contact/service groups with empty memberships.
- Allow non-ASCII characters in notifications, etc.
- Smarter host check logic to reduce (uncached) on-demand host checks
during "stable" service problems.
- New flap detection startup logic speedups when large installations
tweaks enabled.
- Speed improvements during startup routines when using precached config.
- Speed improvements in reading retention data during startup.
- Changed embedded audio MIME types in CGIs to "application/wav".
- Safer loading mechanism for NEB modules to prevent segfaults in Nagios.
- Embedded Perl is now disabled by default.
- Misc internal performance improvements.
- More debug/trace log functionality.
- Internal data structure cleanups.
- Logging API revamp, cleanup.
- Error logging improvements.
- Various bugfixes.
- Documentation updates.
2008-07-21 02:35:42 +02:00
|
|
|
FILES_SUBST+= NAGIOS_USER=${NAGIOS_USER}
|
2014-03-11 15:34:36 +01:00
|
|
|
FILES_SUBST+= NAGIOS_GROUP=${NAGIOS_GROUP}
|
|
|
|
FILES_SUBST+= NAGIOSDIR=${NAGIOSDIR}
|
2006-02-18 18:12:20 +01:00
|
|
|
|
|
|
|
INSTALL_TARGET= install install-config
|
|
|
|
|
Update nagios-base to 3.0.3. Changes since 2.12:
- Check timeperiod can now be modified on-the-fly.
- Added first_notification_delay to host and object definitions
to delay first notification.
- Notifications are now sent out when flap detection is disabled
on a host/service-specific or program-wide basis
($NOTIFICATIONTYPE$ macro = "FLAPPINGDISABLED").
- Notifications can now be sent out when scheduled downtime starts,
ends, and is cancelled. The $NOTIFICATIONTYPE$ macro will be set
to "DOWNTIMESTART", "DOWNTIMEEND", or "DOWNTIMECANCELLED",
respectively. In order to receive downtime notifications,
specify 's' or 'downtime' in contact, host, and/or service
notification options.
- Added ability to use multiple template names (separated by commas)
in object definitions.
- Added ability to null out optional character directives in object
definitions (using 'null' without quotes).
- Added hostg/service/contactgroup_members directives to
host/service/contactgroup definitions, respectively, for allowing
including host, service, or contact members from "sub" groups.
- Added support for custom variables in host, service, and contact
definitions.
- Added host_notifications_enabled, service_notifications_enabled,
can_submit_commands to contact definitions.
- Added optional display_name directive to host and service definitions.
- Removed serviceextinfo definitions and merged variables with
service definitions.
- Removed hostextinfo definitions and merged variables with host
definitions.
- Services inherit contactgroups, notification interval, and
notification period from associated host if not specified.
- Service escalations inherit contactgroups, notification interval,
and escalation period from associated service if not specified.
- Host escalations inherit contactgroups, notification interval,
and escalation period from associated host if not specified.
- Host, service, host escalation, and service escalation
definitions now support a 'contacts' directive, along with
'contact_groups'.
- Service dependencies with blank dependent host/hostgroup names
will create "same host" dependencies.
- Added ability to precache object config files.
- Added ability to exclude object relationship and circular
path checks from verification process.
- Multiline output support for host and service checks.
- Added $LONGHOSTOUTPUT$ and $LONGSERVICEOUTPUT$ macros.
- Added $TEMPPATH$ macro.
- Removed $COMMENTDATAFILE$ and $DOWNTIMEDATAFILE$ macros.
- Added $HOSTDISPLAYNAME$ and $SERVICEDISPLAYNAME$ macros.
- Custom host/service/contact macros accessible via $_HOST<varname>$,
$_SERVICE<varname>$, or $_CONTACT<varname>$. On-demand host/service
macros for custom vars are working. Custom vars are also set as
environment vars.
- On-demand service macros can contain and empty host name field.
In this case, the name of the current host will be used.
- $HOSTNOTES$ and $SERVICENOTES$ macros may now contain macros
themselves.
- Added flap_detection_options directive to host and service
definitions to control which states (i.e. OK, WARNING, UNKNOWN,
and/or CRITICAL) are used in flap detection logic.
- Percent state change and state history are now retained and
recorded even when host/service flap detection is disabled.
- Hosts and services are immediately check for flapping when flap
detection is enabled program-wide.
- Hosts/services that are flapping when flap detection is disabled
program-wide are now logged.
- Added PROCESS_FILE external command to allow processing of
external commands found in an external (regular) file. Very
useful for passive checks with long out put or scripting.
- Custom commands can now be submitted to Nagios. Custom command
names are prefixed with an underscore and are not processed
internally by the Nagios daemon. They may, however, be processed
by NEB modules.
- External commands are now checked by default. Nagios 2.x and
earlier did not check for external commands by default.
- Contact status information is now saved (although it is not
processed by the old CGIs).
- Contact status information is now retained across program
restarts.
- Comment and downtime IDs are now stored across program restarts,
should be unique unless reset.
- Added retained_host/service_attribute_mask variables to control
what host/service attribs are retained globally.
- Added retained_process_host/service_attribute_mask variables to
control what process attribs are retained.
- Added retained_contact_host/service_attribute_mask variables to
control what contact attribs are retained globally.
- Scheduled downtime entries are now stored in the status and
retention files.
- Comments are now stored in the status and retention files.
- Non-persistent acknowledgement comments are now deleted when the
acknowledgement is removed (instead of when Nagios restarts).
- Most host checks are now run asynchronously, in parallel!
- Scheduled host checks now help improve performance, instead of
hinder it (if caching is enabled).
- Added cached_host_check_horizon option for enabling use of
cached host check results.
- Added enable_predictive_host_dependency_checks for enabling
predictive checks of dependent hosts.
- Added retry_interval to host definitions.
- Added check_for_orphaned_hosts option and support for orphaned
host checks.
- Passive host check states can now be translated from their
original DOWN/UNREACHABLE state if the new
translate_passive_host_results option is enabled.
- 'parallelize' option in service definitions deprecated/no longer
used.
- Added cached_service_check_horizon option for enabling use of
cached service check results.
- Added enable_predictive_service_dependency_checks for enabling
predictive checks of dependent services.
- Host and service dependencies can now have a timeperiod during
which they're valid (dependency_period directive).
- Updated NEB API version.
- Modified adaptive program status callback.
- Added adaptive contact status callback.
- Added host/service precheck callbacks to allow modules to
cancel/override internal host/service checks.
- Added 'enable_embedded_perl' option to main config file to control
whether epn is enabled/disabled.
- Added support for perl plugins to specify whether or not they
should be run under the epn... The second to tenth line of a perl
plugin may start with '# nagios: +epn' or '# nagios: -epn' to
explicity indicate that it should be run under the epn.
- Added 'use_embedded_perl_implicitly' option to main config file
to determine whether or not perl plugins will use the epn if they
don't explicitly allow/disalow it.
- Hostgroup and servicegroup summaries now show important/unimportant
problem breakdowns like the TAC CGI.
- Minor layout changes to host and service detail views in extinfo CGI.
- More information given when testing scheduling (-s command line
option).
- Removed fixed length restrictions for host names and service
descriptions.
- Plugin output length restriction bumped up to 4K.
- Added temp_path directive to main config file for specifying temp
directory.
- Multiline output support for system commands via my_system().
- Added global event_id and notification_id vars that are at least
unique during a single run of Nagios.
- Default is now to check for orphaned services, rather than not.
- Renamed service_reaper_frequency to check_result_reaper_frequency.
- Fractional notification and check intervals are now supported
(e.g. "3.5" minutes).
- Backslash chars are now used to escape command arguments that
contain \ or ! characters.
- Added 'external_command_buffer_slots' and
'check_result_buffer_slots' variables to specify size of internal
buffers.
- Added check statistics to status file, available via nagiostats
for graphing in MRTG.
- Added $HOSTGROUPNAMES$, $SERVICEGROUPNAMES$, $HOSTACKAUTHORNAME$,
$HOSTACKAUTHORALIAS$, $SERVICEACKAUTHORNAME$, and
$SERVICEACKAUTHORALIAS$ macros.
- Added warning for invalid temp_path directory.
- Added support for extended regular expression matching in
object config files.
- Added new "p" option to host/service_perfdata_file_mode
directives for pipes.
- Command definitions and host/service plugin perfdata with HTML
should now be escaped in CGIs.
- Hostgroup and servicegroup definitions now have notes, notes_url,
and action_url directives.
- Added buffer stats and check statistics to performance
information in extinfo CGI.
- Removed legacy 2.x host check logic and use_old_host_check_logic
option.
- Added max_check_result_file_age option to control processing of
check results in older files.
- Added check_result_path option to set path used to store
check results.
- New IPC method for passing host/service check results back to
main daemon.
- Removed check_result_buffer_slots option from main
configuration file.
- Added test for writeability of temp directory during configuration
test.
- Minor changes to freshness threshold calculation.
- Added 'initial_state' option to host and service definitions
to allow for non-UP/OK initial states.
- Changed debug file format to include current pid.
- Changes to sample config files and installation location.
- Expanded timeperiod definitions to allow for day/date exceptions.
- Added new 'passive_host_checks_are_soft' config option.
- Added new 'exclude' option to timeperiod definitions for
easy on-call rotation definitions.
- Added new action and notes URL target frame options to CGI
config file.
- Added optional integration with Splunk into the CGIs.
- Added escape_html_tags option to CGI config file to escape HTML
tags in plugin output.
- Program status now updated at least every 5 seconds for addons
that watch NDOUtils DB.
- Added $MAXHOSTATTEMPTS$ and $MAXSERVICEATTEMPTS$ macros.
- Added status CGI host/service property filters for hard and
soft states.
- New macros: $SERVICEISVOLATILE$, $TOTALHOSTSERVICES$,
$TOTALHOSTSERVICESOK$, $TOTALHOSTSERVICESWARNING$,
$TOTALHOSTSERVICESUNKNOWN$, $TOTALHOSTSERVICESCRITICAL$,
$HOSTDOWNTIMEAUTHOR$, $HOSTDOWNTIMEAUTHORNAME$,
$HOSTDOWNTIMEAUTHORALIAS$, $HOSTDOWNTIMECOMMENT$,
$SERVICEDOWNTIMEAUTHOR$, $SERVICEDOWNTIMEAUTHORNAME$,
$SERVICEDOWNTIMEAUTHORALIAS$, $SERVICEDOWNTIMECOMMENT$.
- Improvements to the host check logic performance (more use of
cached and parallel checks).
- Version number is now printed in CGI pages.
- Added custom delimiter option in nagiostats output (useful for
CSV output).
- Alias, if not specified, now defaults to object name in host,
hostgroup, servicegroup, contact, and contactgroup definitions.
- Added custom host and service notifications, with option to force
the notifications and broadcast them to all contacts.
- Added new 'check' option to init script to verify configuration.
- More complete (but still partial) support for macros in CGIs
($xNOTES$, $xNOTESURL$, and $xACTIONURL$ macros).
- Added on-demand contact and contactgroup macro support.
- New macros: $HOSTGROUPMEMBERS$, $HOSTGROUPNOTES$, $HOSTGROUPNOTESURL$,
$HOSTGROUPACTIONURL$, $SERVICEGROUPMEMBERS$, $SERVICEGROUPNOTES$,
$SERVICEGROUPNOTESURL$, $SERVICEGROUPACTIONURL$, $CONTACTGROUPALIAS$,
$CONTACTGROUPMEMBERS$, $NOTIFICATIONRECIPIENTS$, $NOTIFICATIONAUTHOR$,
$NOTIFICATIONAUTHORNAME$, $NOTIFICATIONAUTHORALIAS$,
$NOTIFICATIONCOMMENT$.
- Added support for relative paths in config_file and config_dir directives.
- Added passive check latency stats to nagiostats.
- Workaround to prevent browsers from incorrectly using cached
statusmap image on page refresh.
- Added use_pending_states option to CGI config file to determine
displayed state of hosts/services that have not been checked.
- Added $EVENTSTARTTIME$ macro to indicate time Nagios started
processing events (checks, etc.).
- Improvements in freshness check logic.
- Added additional_freshness_latency config file directive.
- Improvement in service flap detection logic.
- Status file is no longer deleted during restarts due to a SIGHUP
or external command.
- Special additive inheritance rule: escalation contact(group)(s)
that begin with '+' will now inherit from associated host/service
definition if not inheriting from another escalation template.
- Addition of object pointers to event broker module data structures
(may require event broker module rebuilds).
- Added $LASTHOSTSTATE$, $LASTHOSTSTATEID$, $LASTSERVICESTATE$, and
$LASTSERVICESTATEID$ macros.
- Better error logging when failing to rename/move files.
- Summary macros are now available as regular (non-environment) macros
if requested when large installation tweaks are enabled.
- Major overhaul (read: complete rewrite) of macro code, so macros are
now only computed when found.
- Added enable_environment_macros option to determine whether or not
macros are set as environment vars.
- Added $ISVALIDTIME:$ and $NEXTVALIDTIME:$ on-demand macros.
- Added new external commands to change modified object attributes
(affecting data retention logic).
- Added new external commands to change notification period for
host, services, and contact on-the-fly.
- Retention of host/service check scheduling options.
- Caching of Perl scripts now enabled by default if embedded Perl
interpreter is compiled in.
- Increased max plugin output length cap from 4kb to 8kb.
- Additional functionality of additive inheritance feature.
- Added free_child_process_memory and child_processes_fork_twice
options for performance tweaks.
- Added use_timezone option to allow Nagios instances to run in
non-native timezones.
- Support for line continuation/breaks in config files - end lines with
one back slash (\) to continue on next line.
- Auto-filled comment/author fields for acknowledging problems through
WAP interface.
- Faster program startup times (especially in large installs) with new
object lookup code.
- Nagios no longer warns or errors when encountering
host/contact/service groups with empty memberships.
- Allow non-ASCII characters in notifications, etc.
- Smarter host check logic to reduce (uncached) on-demand host checks
during "stable" service problems.
- New flap detection startup logic speedups when large installations
tweaks enabled.
- Speed improvements during startup routines when using precached config.
- Speed improvements in reading retention data during startup.
- Changed embedded audio MIME types in CGIs to "application/wav".
- Safer loading mechanism for NEB modules to prevent segfaults in Nagios.
- Embedded Perl is now disabled by default.
- Misc internal performance improvements.
- More debug/trace log functionality.
- Internal data structure cleanups.
- Logging API revamp, cleanup.
- Error logging improvements.
- Various bugfixes.
- Documentation updates.
2008-07-21 02:35:42 +02:00
|
|
|
BUILD_DEFS+= VARBASE NAGIOS_USER NAGIOS_GROUP NAGIOSCMD_GROUP
|
|
|
|
BUILD_DEFS+= NAGIOSDIR
|
2006-08-17 16:19:00 +02:00
|
|
|
|
2007-10-12 18:12:05 +02:00
|
|
|
PKG_GROUPS+= ${NAGIOS_GROUP}
|
2007-11-26 23:14:13 +01:00
|
|
|
PKG_GROUPS+= ${NAGIOSCMD_GROUP}
|
2006-02-18 18:12:20 +01:00
|
|
|
|
2007-10-12 18:12:05 +02:00
|
|
|
PKG_USERS+= ${NAGIOS_USER}:${NAGIOS_GROUP}
|
2006-04-23 02:12:35 +02:00
|
|
|
|
|
|
|
PKG_GECOS.${NAGIOS_USER}= Nagios Runtime User
|
2007-11-26 23:14:13 +01:00
|
|
|
|
|
|
|
MESSAGE_SUBST+= NAGIOS_USER=${NAGIOS_USER}
|
|
|
|
MESSAGE_SUBST+= NAGIOSCMD_GROUP=${NAGIOSCMD_GROUP}
|
2006-02-18 18:12:20 +01:00
|
|
|
|
2007-10-12 18:12:05 +02:00
|
|
|
EGDIR= ${PREFIX}/share/examples/nagios
|
Update nagios-base to 3.0.3. Changes since 2.12:
- Check timeperiod can now be modified on-the-fly.
- Added first_notification_delay to host and object definitions
to delay first notification.
- Notifications are now sent out when flap detection is disabled
on a host/service-specific or program-wide basis
($NOTIFICATIONTYPE$ macro = "FLAPPINGDISABLED").
- Notifications can now be sent out when scheduled downtime starts,
ends, and is cancelled. The $NOTIFICATIONTYPE$ macro will be set
to "DOWNTIMESTART", "DOWNTIMEEND", or "DOWNTIMECANCELLED",
respectively. In order to receive downtime notifications,
specify 's' or 'downtime' in contact, host, and/or service
notification options.
- Added ability to use multiple template names (separated by commas)
in object definitions.
- Added ability to null out optional character directives in object
definitions (using 'null' without quotes).
- Added hostg/service/contactgroup_members directives to
host/service/contactgroup definitions, respectively, for allowing
including host, service, or contact members from "sub" groups.
- Added support for custom variables in host, service, and contact
definitions.
- Added host_notifications_enabled, service_notifications_enabled,
can_submit_commands to contact definitions.
- Added optional display_name directive to host and service definitions.
- Removed serviceextinfo definitions and merged variables with
service definitions.
- Removed hostextinfo definitions and merged variables with host
definitions.
- Services inherit contactgroups, notification interval, and
notification period from associated host if not specified.
- Service escalations inherit contactgroups, notification interval,
and escalation period from associated service if not specified.
- Host escalations inherit contactgroups, notification interval,
and escalation period from associated host if not specified.
- Host, service, host escalation, and service escalation
definitions now support a 'contacts' directive, along with
'contact_groups'.
- Service dependencies with blank dependent host/hostgroup names
will create "same host" dependencies.
- Added ability to precache object config files.
- Added ability to exclude object relationship and circular
path checks from verification process.
- Multiline output support for host and service checks.
- Added $LONGHOSTOUTPUT$ and $LONGSERVICEOUTPUT$ macros.
- Added $TEMPPATH$ macro.
- Removed $COMMENTDATAFILE$ and $DOWNTIMEDATAFILE$ macros.
- Added $HOSTDISPLAYNAME$ and $SERVICEDISPLAYNAME$ macros.
- Custom host/service/contact macros accessible via $_HOST<varname>$,
$_SERVICE<varname>$, or $_CONTACT<varname>$. On-demand host/service
macros for custom vars are working. Custom vars are also set as
environment vars.
- On-demand service macros can contain and empty host name field.
In this case, the name of the current host will be used.
- $HOSTNOTES$ and $SERVICENOTES$ macros may now contain macros
themselves.
- Added flap_detection_options directive to host and service
definitions to control which states (i.e. OK, WARNING, UNKNOWN,
and/or CRITICAL) are used in flap detection logic.
- Percent state change and state history are now retained and
recorded even when host/service flap detection is disabled.
- Hosts and services are immediately check for flapping when flap
detection is enabled program-wide.
- Hosts/services that are flapping when flap detection is disabled
program-wide are now logged.
- Added PROCESS_FILE external command to allow processing of
external commands found in an external (regular) file. Very
useful for passive checks with long out put or scripting.
- Custom commands can now be submitted to Nagios. Custom command
names are prefixed with an underscore and are not processed
internally by the Nagios daemon. They may, however, be processed
by NEB modules.
- External commands are now checked by default. Nagios 2.x and
earlier did not check for external commands by default.
- Contact status information is now saved (although it is not
processed by the old CGIs).
- Contact status information is now retained across program
restarts.
- Comment and downtime IDs are now stored across program restarts,
should be unique unless reset.
- Added retained_host/service_attribute_mask variables to control
what host/service attribs are retained globally.
- Added retained_process_host/service_attribute_mask variables to
control what process attribs are retained.
- Added retained_contact_host/service_attribute_mask variables to
control what contact attribs are retained globally.
- Scheduled downtime entries are now stored in the status and
retention files.
- Comments are now stored in the status and retention files.
- Non-persistent acknowledgement comments are now deleted when the
acknowledgement is removed (instead of when Nagios restarts).
- Most host checks are now run asynchronously, in parallel!
- Scheduled host checks now help improve performance, instead of
hinder it (if caching is enabled).
- Added cached_host_check_horizon option for enabling use of
cached host check results.
- Added enable_predictive_host_dependency_checks for enabling
predictive checks of dependent hosts.
- Added retry_interval to host definitions.
- Added check_for_orphaned_hosts option and support for orphaned
host checks.
- Passive host check states can now be translated from their
original DOWN/UNREACHABLE state if the new
translate_passive_host_results option is enabled.
- 'parallelize' option in service definitions deprecated/no longer
used.
- Added cached_service_check_horizon option for enabling use of
cached service check results.
- Added enable_predictive_service_dependency_checks for enabling
predictive checks of dependent services.
- Host and service dependencies can now have a timeperiod during
which they're valid (dependency_period directive).
- Updated NEB API version.
- Modified adaptive program status callback.
- Added adaptive contact status callback.
- Added host/service precheck callbacks to allow modules to
cancel/override internal host/service checks.
- Added 'enable_embedded_perl' option to main config file to control
whether epn is enabled/disabled.
- Added support for perl plugins to specify whether or not they
should be run under the epn... The second to tenth line of a perl
plugin may start with '# nagios: +epn' or '# nagios: -epn' to
explicity indicate that it should be run under the epn.
- Added 'use_embedded_perl_implicitly' option to main config file
to determine whether or not perl plugins will use the epn if they
don't explicitly allow/disalow it.
- Hostgroup and servicegroup summaries now show important/unimportant
problem breakdowns like the TAC CGI.
- Minor layout changes to host and service detail views in extinfo CGI.
- More information given when testing scheduling (-s command line
option).
- Removed fixed length restrictions for host names and service
descriptions.
- Plugin output length restriction bumped up to 4K.
- Added temp_path directive to main config file for specifying temp
directory.
- Multiline output support for system commands via my_system().
- Added global event_id and notification_id vars that are at least
unique during a single run of Nagios.
- Default is now to check for orphaned services, rather than not.
- Renamed service_reaper_frequency to check_result_reaper_frequency.
- Fractional notification and check intervals are now supported
(e.g. "3.5" minutes).
- Backslash chars are now used to escape command arguments that
contain \ or ! characters.
- Added 'external_command_buffer_slots' and
'check_result_buffer_slots' variables to specify size of internal
buffers.
- Added check statistics to status file, available via nagiostats
for graphing in MRTG.
- Added $HOSTGROUPNAMES$, $SERVICEGROUPNAMES$, $HOSTACKAUTHORNAME$,
$HOSTACKAUTHORALIAS$, $SERVICEACKAUTHORNAME$, and
$SERVICEACKAUTHORALIAS$ macros.
- Added warning for invalid temp_path directory.
- Added support for extended regular expression matching in
object config files.
- Added new "p" option to host/service_perfdata_file_mode
directives for pipes.
- Command definitions and host/service plugin perfdata with HTML
should now be escaped in CGIs.
- Hostgroup and servicegroup definitions now have notes, notes_url,
and action_url directives.
- Added buffer stats and check statistics to performance
information in extinfo CGI.
- Removed legacy 2.x host check logic and use_old_host_check_logic
option.
- Added max_check_result_file_age option to control processing of
check results in older files.
- Added check_result_path option to set path used to store
check results.
- New IPC method for passing host/service check results back to
main daemon.
- Removed check_result_buffer_slots option from main
configuration file.
- Added test for writeability of temp directory during configuration
test.
- Minor changes to freshness threshold calculation.
- Added 'initial_state' option to host and service definitions
to allow for non-UP/OK initial states.
- Changed debug file format to include current pid.
- Changes to sample config files and installation location.
- Expanded timeperiod definitions to allow for day/date exceptions.
- Added new 'passive_host_checks_are_soft' config option.
- Added new 'exclude' option to timeperiod definitions for
easy on-call rotation definitions.
- Added new action and notes URL target frame options to CGI
config file.
- Added optional integration with Splunk into the CGIs.
- Added escape_html_tags option to CGI config file to escape HTML
tags in plugin output.
- Program status now updated at least every 5 seconds for addons
that watch NDOUtils DB.
- Added $MAXHOSTATTEMPTS$ and $MAXSERVICEATTEMPTS$ macros.
- Added status CGI host/service property filters for hard and
soft states.
- New macros: $SERVICEISVOLATILE$, $TOTALHOSTSERVICES$,
$TOTALHOSTSERVICESOK$, $TOTALHOSTSERVICESWARNING$,
$TOTALHOSTSERVICESUNKNOWN$, $TOTALHOSTSERVICESCRITICAL$,
$HOSTDOWNTIMEAUTHOR$, $HOSTDOWNTIMEAUTHORNAME$,
$HOSTDOWNTIMEAUTHORALIAS$, $HOSTDOWNTIMECOMMENT$,
$SERVICEDOWNTIMEAUTHOR$, $SERVICEDOWNTIMEAUTHORNAME$,
$SERVICEDOWNTIMEAUTHORALIAS$, $SERVICEDOWNTIMECOMMENT$.
- Improvements to the host check logic performance (more use of
cached and parallel checks).
- Version number is now printed in CGI pages.
- Added custom delimiter option in nagiostats output (useful for
CSV output).
- Alias, if not specified, now defaults to object name in host,
hostgroup, servicegroup, contact, and contactgroup definitions.
- Added custom host and service notifications, with option to force
the notifications and broadcast them to all contacts.
- Added new 'check' option to init script to verify configuration.
- More complete (but still partial) support for macros in CGIs
($xNOTES$, $xNOTESURL$, and $xACTIONURL$ macros).
- Added on-demand contact and contactgroup macro support.
- New macros: $HOSTGROUPMEMBERS$, $HOSTGROUPNOTES$, $HOSTGROUPNOTESURL$,
$HOSTGROUPACTIONURL$, $SERVICEGROUPMEMBERS$, $SERVICEGROUPNOTES$,
$SERVICEGROUPNOTESURL$, $SERVICEGROUPACTIONURL$, $CONTACTGROUPALIAS$,
$CONTACTGROUPMEMBERS$, $NOTIFICATIONRECIPIENTS$, $NOTIFICATIONAUTHOR$,
$NOTIFICATIONAUTHORNAME$, $NOTIFICATIONAUTHORALIAS$,
$NOTIFICATIONCOMMENT$.
- Added support for relative paths in config_file and config_dir directives.
- Added passive check latency stats to nagiostats.
- Workaround to prevent browsers from incorrectly using cached
statusmap image on page refresh.
- Added use_pending_states option to CGI config file to determine
displayed state of hosts/services that have not been checked.
- Added $EVENTSTARTTIME$ macro to indicate time Nagios started
processing events (checks, etc.).
- Improvements in freshness check logic.
- Added additional_freshness_latency config file directive.
- Improvement in service flap detection logic.
- Status file is no longer deleted during restarts due to a SIGHUP
or external command.
- Special additive inheritance rule: escalation contact(group)(s)
that begin with '+' will now inherit from associated host/service
definition if not inheriting from another escalation template.
- Addition of object pointers to event broker module data structures
(may require event broker module rebuilds).
- Added $LASTHOSTSTATE$, $LASTHOSTSTATEID$, $LASTSERVICESTATE$, and
$LASTSERVICESTATEID$ macros.
- Better error logging when failing to rename/move files.
- Summary macros are now available as regular (non-environment) macros
if requested when large installation tweaks are enabled.
- Major overhaul (read: complete rewrite) of macro code, so macros are
now only computed when found.
- Added enable_environment_macros option to determine whether or not
macros are set as environment vars.
- Added $ISVALIDTIME:$ and $NEXTVALIDTIME:$ on-demand macros.
- Added new external commands to change modified object attributes
(affecting data retention logic).
- Added new external commands to change notification period for
host, services, and contact on-the-fly.
- Retention of host/service check scheduling options.
- Caching of Perl scripts now enabled by default if embedded Perl
interpreter is compiled in.
- Increased max plugin output length cap from 4kb to 8kb.
- Additional functionality of additive inheritance feature.
- Added free_child_process_memory and child_processes_fork_twice
options for performance tweaks.
- Added use_timezone option to allow Nagios instances to run in
non-native timezones.
- Support for line continuation/breaks in config files - end lines with
one back slash (\) to continue on next line.
- Auto-filled comment/author fields for acknowledging problems through
WAP interface.
- Faster program startup times (especially in large installs) with new
object lookup code.
- Nagios no longer warns or errors when encountering
host/contact/service groups with empty memberships.
- Allow non-ASCII characters in notifications, etc.
- Smarter host check logic to reduce (uncached) on-demand host checks
during "stable" service problems.
- New flap detection startup logic speedups when large installations
tweaks enabled.
- Speed improvements during startup routines when using precached config.
- Speed improvements in reading retention data during startup.
- Changed embedded audio MIME types in CGIs to "application/wav".
- Safer loading mechanism for NEB modules to prevent segfaults in Nagios.
- Embedded Perl is now disabled by default.
- Misc internal performance improvements.
- More debug/trace log functionality.
- Internal data structure cleanups.
- Logging API revamp, cleanup.
- Error logging improvements.
- Various bugfixes.
- Documentation updates.
2008-07-21 02:35:42 +02:00
|
|
|
EGFILES= nagios.cfg cgi.cfg resource.cfg
|
|
|
|
EGFILES+= objects/templates.cfg objects/commands.cfg
|
|
|
|
EGFILES+= objects/contacts.cfg objects/timeperiods.cfg
|
|
|
|
EGFILES+= objects/localhost.cfg objects/windows.cfg
|
|
|
|
EGFILES+= objects/printer.cfg objects/switch.cfg
|
|
|
|
|
2017-08-07 11:09:28 +02:00
|
|
|
OWN_DIRS= ${PKG_SYSCONFDIR}/objects
|
2006-02-18 18:12:20 +01:00
|
|
|
.for files in ${EGFILES}
|
2007-10-12 18:12:05 +02:00
|
|
|
CONF_FILES+= ${EGDIR}/${files}-sample ${PKG_SYSCONFDIR}/${files}
|
2006-02-18 18:12:20 +01:00
|
|
|
.endfor
|
2007-02-22 20:26:05 +01:00
|
|
|
CONF_FILES+= ${EGDIR}/nagios.conf ${PKG_SYSCONFDIR}/nagios.conf
|
2006-02-18 18:12:20 +01:00
|
|
|
|
2007-11-26 23:14:13 +01:00
|
|
|
OWN_DIRS_PERMS+=${NAGIOSDIR} ${NAGIOS_USER} ${NAGIOS_GROUP} 0775
|
|
|
|
OWN_DIRS_PERMS+=${NAGIOSDIR}/archives ${NAGIOS_USER} ${NAGIOS_GROUP} 0775
|
|
|
|
OWN_DIRS_PERMS+=${NAGIOSDIR}/rw ${NAGIOS_USER} ${NAGIOSCMD_GROUP} 0775
|
Update nagios-base to 3.2.3. While there, add DESTDIR support and set LICENSE.
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)
* Patch to new_mini_epn to allow any command line length without breaking on extra trailing or leading whitespace (Ray Bengen)
* Patch to mini_epn to allow any command line length (Thomas Guyot-Sionnest)
* Patch to speed up loading of state retention data (Matthieu Kermagoret)
* Custom notifications are now suppressed during scheduled downtime (Sven Nierlein)
* Added code to warn user about exit code of 126 meaning plugin is not executable (bug #153)
* Scheduled downtime can now start on SOFT error states (bug #47)
* Main window frame URL can now be specify with a "corewindow=" parameter
* Improved config CGI shows commands, command args in an easier to use manner (Jochen Bern)
* Added ability for NEB modules to override execution of event handlers (Sven Nierlein)
* Custom macros are no longer cleaned/stripped as they are user-defined and should be trusted (Peter Morch)
* Fix for choosing next valid time on day of DST change when clocks go one hour backwards
* Fix for nagios now erroring when "Error: Could not find any contactgroup matching..." displayed
* Fix tap tests for Sol0 and newer versions of Test::Harness
* Fix for notifications not being sent out when scheduled downtime is canceluzzner)
* Fix for first notification delay being calculated incorrectly, and notifications potentially going out early (Plachowski)
* Fix for text of scheduling downtime of all services on a host (Holger Weiss)
* Fix for services inheriting notification period from hosts if not defined (Gordon Messmer)
* Fix for incorrect service states on host failures (bug #130 Pet)
* Fix for incorrect service state attributes being set on host failures (bug #128 Petya Kohts)
* Fix for non-scheduled hostsnd services not being updated in NDOUtils
* Fix for typos in TAC, CMD CGIs (bugs #150, #144, #148)
* Fix for types in documentation (bugs #145, #105, #106)
* Fix for incorrect host state counts in status CGI when viewing servicegroups (bug #72)
* Fix few Splunk integration query parameters (bug #136)
* Fix for extra field header in availability CSV export (bug #113)
* Fix foracro processing code modifying input string (Jochen Bern)
* Fix for update check API
* Fix for CGI speedup when persistent=0 f comments
* Fix for event execution loop re-scheduling host checks instead of executing them if service checks are disabled (b #152)
* Fix for segfaults on Solaris (Torsten Huebler)
* Fix for incorrect comment expiration times being passed to event bror (Mattieu Kermagot)
* Doc updates related to cleaning of custom macros (Peter Valdemar Morch)
* Fix to sample notify-service--email command (bug #62)
* Fix for retaining host display name and alias, as well as service display name (Folkert van Heusden* Link to allow scheduling downtime for all services on a host (Hendrik Baecker)
* Speedup to CGIs when lots of comments or dotimes in status.dat file (Jonathan Kamens)
* Patch for new_mini_epn to allow for any command line length without breaking extra trailing or leading whitespace (Ray Bengen)
* Fix for incorrect scheduling when time has gone back an hour (partial fix for 24x7)
* Fix for compile on Fedora Core 3 (bug #0000082)
* Fix for compile on Solaris
* Fix for logging test, which was not timezone aware (bug #0000077 - Allan Clark)
* Trivial cleanups for autoconf (Allan Clark)
* Fix for CSS validation of padding: X
* Fix for documentation re: case-insensitive nature of custom variables (Marc Powell)
* Fix for template configurations which use negated wildcards (Tim Wilde)
* Fix for read-only permissions bug in CGIs that caused problems viewing comments (bug #0000029)
* Fix for incorrect CGI reports (availability, trends, etc.) when reporting period spans Daylight Savings Time (bug #0000046)
* Fix for detection of truecolor support in GD library (Lars Hecking)
* Reverted to use --datadir configure script option instead of the more recently introduced --datarootdir option
* Status and retention files are now flushed/synced to disk to prevent incomplete information being displayed in CGIs
* Fix for incorrect next service check time calculation when Nagios is reloaded with different timeperiod ranges
* Updated Fedora quistart guide to indicate PHP requirements
* Known issue: Service checks that are defined with timeperiods that contain "exclude" directives are incorrectly re-scheduled. Don't use these for now - we'll get this
fixed for 3.4
2011-04-09 00:37:24 +02:00
|
|
|
OWN_DIRS_PERMS+=${NAGIOSDIR}/checkresults ${NAGIOS_USER} ${NAGIOSCMD_GROUP} 0775
|
2006-02-18 18:12:20 +01:00
|
|
|
|
2017-08-07 11:09:28 +02:00
|
|
|
SPECIAL_PERMS+= share/nagios/jsonquery.html ${NAGIOS_USER} ${NAGIOSCMD_GROUP} 0644
|
2016-02-09 11:12:53 +01:00
|
|
|
|
2006-02-18 18:12:20 +01:00
|
|
|
SUBST_CLASSES+= files
|
|
|
|
SUBST_STAGE.files= post-build
|
|
|
|
SUBST_FILES.files= nagios.conf.dist
|
|
|
|
SUBST_SED.files= -e "s|@PREFIX@|${PREFIX}|g"
|
|
|
|
SUBST_MESSAGE.files= Fixing configuration files.
|
|
|
|
|
|
|
|
pre-build:
|
2006-08-17 16:19:00 +02:00
|
|
|
${CP} ${FILESDIR}/nagios.conf.dist ${WRKSRC}/nagios.conf.dist
|
2006-02-18 18:12:20 +01:00
|
|
|
|
|
|
|
post-install:
|
2017-08-07 11:09:28 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/nagios.conf.dist ${DESTDIR}${EGDIR}/nagios.conf
|
2013-06-17 19:35:28 +02:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/netbsd40.gd2 \
|
2017-08-07 11:09:28 +02:00
|
|
|
${DESTDIR}${PREFIX}/share/nagios/images/logos/
|
2013-06-17 19:35:28 +02:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/netbsd40.gif \
|
2017-08-07 11:09:28 +02:00
|
|
|
${DESTDIR}${PREFIX}/share/nagios/images/logos/
|
2013-06-17 19:35:28 +02:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/netbsd40.jpg \
|
2017-08-07 11:09:28 +02:00
|
|
|
${DESTDIR}${PREFIX}/share/nagios/images/logos/
|
2013-06-17 19:35:28 +02:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/netbsd40.png \
|
2017-08-07 11:09:28 +02:00
|
|
|
${DESTDIR}${PREFIX}/share/nagios/images/logos/
|
2015-04-13 01:33:06 +02:00
|
|
|
${CHMOD} g-w ${DESTDIR}${PREFIX}/share/nagios/jsonquery.html
|
2006-02-18 18:12:20 +01:00
|
|
|
|
Update to nagios-4.0.8. Patches applied upstream were removed. Added two
patches. From: http://nagios.sourceforge.net/docs/nagioscore/4/en/whatsnew.html
Changes and New Features
Performance Improvements:
The performance improvements in Nagios Core 4 come primarily from the following areas:
Core Workers - Core workers are lightweight processes whose only job is to perform checks. Because they are smaller they spawn much more quickly than the the old process which forked the full Nagios Core. In addition, they communicate with the main Nagios Core process using in-memory techniques, eliminating the disk I/O latencies that could previously slow things down, especially in large installations.
Configuration Verification - Configuration verification has been improved so that each configuration item is verified only once. Previously configuration verification was an O(n2) operation.
Event Queue - The event queue now uses a data structure that has O(log n) insertion times versus the O(n) insertion time previously. This means that inserting events into the queue uses much less CPU than in Nagios Core 3.
Macro Resolution - Macros are now sorted on startup so macro lookup can use a binary search. In addition, frequently accessed macros $USERx$, $ARGx$, and $HOSTADDRESS$ are given special case, early lookups.
Object Definitions:
The following changes have been made to object definitions:
The host address attribute is now optional. The address attribute is set to the host name when it is absent. Most configurations set the host name attribute to the DNS host name making the address attribute redundant.
Both hosts and services now support an hourly value attribute. The hourly value attribute is intended to represent the value of a host or service to an organization and is used by the new minimum value contact attribute.
Services now support a parents attribute. A service parent performs a function similar to host parents and can be used in place of service dependencies in simple circumstances.
The failure_prediction_enabled flag has been removed from both host and service object definitions.
Contacts now support a minimum value attribute. The mininum value attribute is used with the host and service hourly value attributes to determine whether to notify a contact on host and service problems.
The host obess_over_host and the service obsess_over_service attributes can now both use the shortened attribute obsess.
Object Behavior:
Contact Inheritance - According to the documentation, contacts should only be inherited from host to service if the service has no other contacts whatsoever (and the same goes for escalations), but the way the code previously worked was that it handled contact_groups and contacts directives separately, meaning services with only 'contacts' specified were still eligible for inheriting 'contact_groups' from the host. This has been updated to comply with the documentation.
Timeperiods - There were several issues processing timeperiods when both exclusions and exceptions were involved. The issues have been corrected.
Configuration:
The following changes have been made to the main Nagios Core configuration, nagios.cfg:
Because there are many ways to obtain object information, the object information is no longer stored if in the object cache if the configuration variable object_cache_file equals '/dev/null'. Setting the variable to '/dev/null' will reduce the disk I/O load.
Because there are many ways to obtain status information, the status information is no longer stored if in the status data file if the configuration variable status_file equals '/dev/null'. Setting the variable to '/dev/null' will reduce the disk I/O load.
There is a new configuration variable, log_current_states, which determines whether current states will be logged in the log files when they are rotated. In Nagios Core 3, this was always the behavior and it is the default in Nagios Core 4. Disabling the logging of current states on log rotation can save considerable disk space for large installations.
There is a new configuration variable, check_workers, which specifies how many worker processes are created when Nagios Core starts. If not specified, the number of worker process is determine by the number of CPUs on the system.
There is a new configuration variable, query_socket, which specifies the location of the query handler socket. The default location is /usr/local/nagios/var/rw/nagios.qh.
The configuration variables, check_result_reaper_frequency and max_check_result_reaper_time, have been deprecated. Because of the new worker architecture, checks are no longer reaped, but they are fed back to core by the worker processes. As a result, these variables no longer make sense.
All file and directory configuration variables in the main nagios.cfg can now use paths that are relative to the location of nagios.cfg.
Although rarely used in the past, creating nagios objects in the main nagios.cfg configuration file was allowed. This is now prohibited.
Macros:
Additions - A new macro, $CHECKSOURCE$, has been added which contains information about what process performed a check.
Changes - If use_large_installation_tweaks is set, the $HOSTGROUPMEMBERS$ and $SERVICEGROUPMEMBERS$ macros are no longer exported because they can consume the available space for environment variables.
Macros are normally available as environment variables when check, event handler, notification, and other commands are run. This can be rather CPU intensive in large Nagios installations, so you can disable the export of environment variables completely with the enable_environment_macros option.
Macro information can be found here.
Query Handler:
The query handler is a general purpose communication mechanism that allows external entities to communicate with Nagios Core in a well-defined manner. As of this writing, all communication with the query handler takes place through a Unix-domain socket whose location is defined by the query_socket configuration variable.
There are currently 5 built-in query handlers.
core - provides Nagios Core management and information
wproc - provides worker process registration, management and information
nerd - provides a subscription service to the Nagios Event Radio Dispatcher (NERD)
help - provides help for the query handler
echo - implements a basic query handler that simply echoes back the queries sent to it
More information about the query handler interface, including an introduction to creating a custom query handler, can be found in the source-supplied documentation.
Core Workers:
Previously, all host and service checks were performed by the full Nagios Core process. This required forking the Nagios Core process for every check. The full Nagios Core process includes a lot of things that are not required to actually perform the check, including check scheduling, downtime handling, processing external commands, etc. As a result, forking the Nagios Core process was much slower than was necessary. When the actual check was run, the forked process again forked a shell to run the check and the shell forked to run the plugin.
In addition, disk files were used as the inter-process communication (IPC) mechanism between the forked Nagios process doing the checking and the main Nagios process handling the check results.
In Nagios Core 4, the process of performing host and service checks is now accomplished using a lightweight worker processes. Standard worker processes start up with the main Nagios Core process and additional, special-purpose workers, can be started at any time after Nagios Core starts. If the check command is "simple" (no shell escapes), the worker process can run the command directly, avoiding the 2 additional forks previously required.
Also in Nagios Core 4, the worker processes report the check results to the main Nagios Core process using in-memory IPC mechanisms (the query handler interface), eliminating the disk I/O bottleneck that used to be an issue in large installations.
When a worker process registers with the main Nagios Core process, it tells Nagios Core what checks it will handle. This feature allows external authors to create special-purpose workers which are optimized to perform certain checks. A sample special-purpose ping check worker is included with the Nagios Core source code in the worker/ping subdirectory.
More information about workers, including an introduction to creating custom workers can be found in the source-supplied documentation.
Nagios Event Radio Dispatcher (NERD):
The Nagios Event Radio Dispatcher (NERD) is a query handler based service that streams Nagios Core events to the subscriber. Currently, there are three channels that can be subscribed to: hostchecks, servicechecks and opathchecks.
libnagios:
libnagios is a library of functions that can be used by developers of query handlers and worker processes. libnagios currently contains the following components.
bitmap - bitmap library for calculating dependency graphs
dkhash - dual-keyed hash api
fanout - sparsely populated array used for downtime, comments, and worker jobs
iobroker - I/O broker library for multiplexing between running tasks and the master nagios process.
iocache - I/O caching libary for bulk-reading requests and parsing them
kvvec - key/value library for parsing requests and building responses
nsock - socket library for connecting to and communicating through the qh socket
nspath - general purpose path library for converting between relative and absolute paths
nsutils - small library with worker related utilities
pqueue - pqueue library written by Volkan Yazici
runcmd - for spawning and reaping commands
skiplist - skiplist library used within Nagios Core
squeue - for maintaining a queue of the running job's timeouts
worker - for utils and stuff nifty to have if you're a worker
Documentation:
Documentation of Nagios Core internals is now provided as part of the source distribution. To create an HTML version of this documentation run 'make dox' from the root of the source distribution tree. The doxygen utilities must be installed to make this documentation.
Tests:
A much more complete test suite is now incuded with the Nagios Core source distribution.
RPM Spec File:
The RPM spec file has been completely overhauled to support more current standards.
Deprecated Features:
Extended Host and Service Information - The hostextinfo and serviceextinfo objects are now deprecated and should not be used. Support for them will be removed in a future version. The same information specified in the hostextinfo and serviceextinfo objects can be specified in the host and service object respectively.
-x/--dont-verify-paths command line option (Don't check for circular object paths) - Because configuration checking is now so much faster, the option to skip checking for circular object paths has been deprecated.
The following configuration variables have been deprecated: check_result_reaper_frequency, max_check_result_reaper_time, sleep_time, external_command_buffer_slots, command_check_interval
Obsoleted Features:
Failure Prediction - As noted above, the failure_prediction_enabled flag has been removed from both host and service object definitions. Failure predition was never fully implemented and would require breaking the paradigm that Nagios Core knows nothing about the performance data returned by plugins. Failure prediction is much more approprately handled by an add-on than by Nagios Core.
-o/--dont-verify-objects command line option - This option, while accepted in Nagios Core 3, has neither been advertized nor has had any effect for quite some time. The option has been removed in Nagios Core 4.
Embedded Perl - Embedded Perl has historically been the least tested and the most problem prone part of Nagios Core. A significant part of the issue is that there are so many versions of Perl available. The performance enhancements provided by the new worker process architecture make up for any performance loss due to the removal of embeddd Perl. In addition, the worker process architecture makes possible the implementation of a special purpose worker to persistently load and run Perl plugins. The following configuration variables that were related to embedded Perl have been obsoleted: use_embedded_perl_implicitly, enable_embedded_perl, p1_file.
Miscellaneous:
Object IDs - Primarily only of interest to developers, all of the first-class objects now have object IDs. First-class objects are timeperiod, command, contact, host, service, escalations, dependencies and all kinds of groups. Object IDs are not persistent and are recreated on each restart.
2015-04-03 19:06:08 +02:00
|
|
|
.include "../../mk/dlopen.buildlink3.mk"
|
|
|
|
.include "../../devel/libltdl/buildlink3.mk"
|
2006-02-18 18:12:20 +01:00
|
|
|
.include "../../graphics/gd/buildlink3.mk"
|
2009-03-24 20:28:26 +01:00
|
|
|
.include "../../lang/php/phpversion.mk"
|
|
|
|
.include "${PHPPKGSRCDIR}/buildlink3.mk"
|
2006-02-18 18:12:20 +01:00
|
|
|
.include "../../lang/perl5/buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|