Imported Upstream version 0.9.6

This commit is contained in:
Mario Fetka
2017-04-22 08:30:21 +02:00
commit cf99ff9476
46 changed files with 10021 additions and 0 deletions

29
etc/Makefile.in Normal file
View File

@@ -0,0 +1,29 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
LOGDIR=@localstatedir@
CFGDIR=@sysconfdir@
BINDIR=@bindir@
CGIDIR=@sbindir@
LIBDIR=@libdir@
#DATAROOTDIR=@datarootdir@
INSTALL=@INSTALL@
INSTALL_OPTS=@INSTALL_OPTS@
CP=@CP@
all html:
clean:
distclean: clean
-rm Makefile
devclean: distclean
install:
$(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(CFGDIR)
$(INSTALL) -m 664 $(INSTALL_OPTS) nagios-bp.conf-sample $(DESTDIR)$(CFGDIR)
$(INSTALL) -m 664 $(INSTALL_OPTS) ndo.cfg-sample $(DESTDIR)$(CFGDIR)
$(INSTALL) -m 664 $(INSTALL_OPTS) settings.cfg $(DESTDIR)$(CFGDIR)

View File

@@ -0,0 +1,28 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
LOGDIR=@localstatedir@
CFGDIR=@sysconfdir@
BINDIR=@bindir@
CGIDIR=@sbindir@
LIBDIR=@libdir@
DATAROOTDIR=@datarootdir@
HTTPD_CONF=@HTTPD_CONF@
INSTALL=@INSTALL@
INSTALL_OPTS=@INSTALL_OPTS@
CP=@CP@
all html:
clean:
distclean: clean
-rm Makefile
devclean: distclean
install:
$(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTTPD_CONF)
$(INSTALL) -m 664 $(INSTALL_OPTS) nagiosbp.conf $(DESTDIR)$(HTTPD_CONF)

View File

@@ -0,0 +1,28 @@
ScriptAlias @cgiurl@ "@sbindir@"
<Directory "@sbindir@">
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
AuthName "@apache_authname@"
AuthType Basic
AuthUserFile @nagetc@/htpasswd.users
Require valid-user
</Directory>
Alias @htmurl@ "@datarootdir@"
<Directory "@datarootdir@">
Options None
AllowOverride None
Order allow,deny
Allow from all
AuthName "@apache_authname@"
AuthType Basic
AuthUserFile @nagetc@/htpasswd.users
Require valid-user
</Directory>
RedirectMatch ^@htmurl@/?$ @cgiurl@/nagios-bp.cgi

28
etc/cron.d/Makefile.in Normal file
View File

@@ -0,0 +1,28 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
LOGDIR=@localstatedir@
CFGDIR=@sysconfdir@
BINDIR=@bindir@
CGIDIR=@sbindir@
LIBDIR=@libdir@
DATAROOTDIR=@datarootdir@
CRON_D_DIR=@CRON_D_DIR@
INSTALL=@INSTALL@
INSTALL_OPTS=@INSTALL_OPTS@
CP=@CP@
all html:
clean:
distclean: clean
-rm Makefile
devclean: distclean
install:
$(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(CRON_D_DIR)
$(INSTALL) -m 640 $(INSTALL_OPTS) nagiosbp $(DESTDIR)$(CRON_D_DIR)

1
etc/cron.d/nagiosbp.in Normal file
View File

@@ -0,0 +1 @@
*/10 * * * * @apache_user@ @bindir@/nagios_bp_session_timeout 2>&1 | logger -t nagios_bp_session_timeout

92
etc/nagios-bp.conf-sample Normal file
View File

@@ -0,0 +1,92 @@
########################################################################################################################
#
# configuration file for Nagios Business Processes
# Syntax description see README
# THIS IS AN EXAMPLE
# You have to define Your own processes using services defined in Your Nagios configuration
#
########################################################################################################################
#
# base components
#
internetconnection = internetconnection;Provider 1 | internetconnection;Provider 2
display 0;internetconnection;Internet Connection
loadbalancers = loadbalancer1;System Health | loadbalancer2;System Health
display 0;loadbalancers;Loadbalancer Cluster
#dns = dns1;DNS | dns2;DNS | dns3;DNS
dns = 2 of: dns1;DNS + dns2;DNS + dns3;DNS
display 0;dns;DNS Cluster
#
# ERP System
#
erp_system = erp;System Check & db;Select & dns
display 3;erp_system;ERP System
info_url erp_system;/handlungsanweisungen/erp.html
external_info erp_system;echo "system resource usage 34%"
#
# BP Webshop
#
webshop_frontend_line1 = webserver1;HTTPS & webserver1;HTTPD Slots & appserver1;HTTP
webshop_frontend_line2 = webserver2;HTTPS & webserver2;HTTPD Slots & appserver2;HTTP
webshop_frontend = webshop_frontend_line1 | webshop_frontend_line2
webshop = internetconnection & loadbalancers & dns & webshop_frontend & erp_system
display 0;webshop_frontend_line1;WebShop Frontend Servers Line1
display 0;webshop_frontend_line2;WebShop Frontend Servers Line2
display 0;webshop_frontend;WebShop Frontend Servers
display 1;webshop;WebShop
#template webshop_frontend_line1;webshop-bp-service
#template webshop_frontend_line2;webshop-bp-service
#template webshop_frontend;webshop-bp-service
#template webshop;webshop-bp-service
info_url webshop;/handlungsanweisungen/webshop.html
external_info webshop;echo "currently 48 user sessions, 17 anonymous sessions"
#
# BP WebSite
#
website_webserver1 = webserver1;HTTP & webserver1;HTTPD Slots
website_webserver2 = webserver2;HTTP & webserver2;HTTPD Slots
website_webservers = website_webserver1 | website_webserver2
website = internetconnection & loadbalancers & dns & website_webservers
display 0;website_webserver1;WebServer 1
display 0;website_webserver2;WebServer 2
display 0;website_webservers;WebServer Cluster
display 1;website;WebSite
external_info website;echo '<b>Please note:</b> This afternoon maintainance on WebServer1,<br>Production only on WebServer2'
info_url website;/handlungsanweisungen/website.html
#
# BP eMail
#
mailgateways = mailgateway1;SMTP | mailgateway2;SMTP
mail = internetconnection & dns & mailgateways & groupwareserver;SMTP & groupwareserver;IMAP & groupwareserver;GroupDAV & groupwareserver;HTTPS
display 0;mailgateways;Mail Gateways
display 2;mail;eMail
info_url mail;/handlungsanweisungen/mail.html
#
# BP Intranet Portal
#
intranetportal = intranetwebserver;HTTPS & intranetwebserver;HTTPD Slots & intranetportalserver;HTTP & erp_system
display 3;intranetportal;Intranet Portal
external_info intranetportal;echo "currently 61 user sessions"
info_url intranetportal;/handlungsanweisungen/intranet-portal.html
#
# Test Systems
#
testsystem1 = dummyhost;dummyservice
testsystem2 = dummyhost;dummyservice
testsystem3 = dummyhost;dummyservice
display 4;testsystem1;Testsystem 1
display 4;testsystem2;Testsystem 2
display 4;testsystem3;Testsystem 3

98
etc/ndo.cfg-sample.in Normal file
View File

@@ -0,0 +1,98 @@
# Business Process AddOns for Nagios and Icinga get actual data from Nagios or Icinga
# via the NDO or IDO interface
# Nagios or Icinga can write the NDO/IDO data into a database (ndo2db) or into the
# filesystem (ndo2fs) or use Merlin database or the Icinga-Web JSON API
# also they can be asked for directly from Nagios/Icinga using mk_livestatus
#
# this file configures, where to take this information from
# in releases up to 0.9.2 this file was called ndo_db_readonly.cfg
# (because up to this point, the database was the only supported interface)
# tells if NDO/IDO data is to be taken from a NDO database (db), from Merlin database
# (merlin), from the filesystem (fs), from mk_livestatus (mk_livestatus)
# or Icinga-Web API (icinga-web)
# allowed values are db, merlin, fs, mk_livestatus or icinga-web
ndo=db
# ndo=merlin
# ndo=fs
# ndo=mk_livestatus
# ndo=icinga-web
#
# settings if You use ndo=fs
#
# ndofs_basedir is the directory where ndo2fs stores status information
# (this directory has the two subdirectories PERSISTENT and VOLATILE)
ndofs_basedir=/usr/local/ndo2fs/var
# the instance name of ndo2fs
# (this is the name of the subdirectory in <ndofs_basedir>/PERSISTENT You want to use)
ndofs_instance_name=default
#
# settings if You use ndo=mk_livestatus
#
# ndo_livestatus_socket gives the full path of mk_livestatus' unix socket
ndo_livestatus_socket=/usr/local/nagios/var/rw/live
#
# settings if You use ndo=db or ndo=merlin
#
# The hostname or IP and the port of the server running Your NDO or Merlin database
ndodb_host=localhost
ndodb_port=3306
# Name of Your NDO or Merlin database (instance name)
ndodb_database=nagios
#ndodb_database=icinga
# Username and password to connect to the database
ndodb_username=nagiosro
ndodb_password=dummy
# Prefix
# all tablenames of Your NDO or Merlin database start with the same prefix
# enter this prefix here (default for NDO: nagios_, for Merlin: NULL)
# e. g. look for a table calles
# <something>objects
# enter <something> here
#ndodb_prefix=ndo_
ndodb_prefix=nagios_
#ndodb_prefix=icinga_
#
# settings if You use ndo=icinga-web
#
# the URL of Your Icinga-Web interface
ndo_icinga_web_url_prefix=http://localhost/icinga-web/
# auth_key to connect to Icinga-Web
# (add one additional user in the Icinga Web especially for the
# Business Process Addons, select Auth by auth_key,
# choose an auth_key and enter it in the field "Authkey for API"
# add the principal appkit.api.access and create the user
# the auth_key you did choose is to be entered below)
ndo_icinga_web_auth_key=dummydummy
#
# common settings
# (valid for all backends)
#
# Cache
# starting with version 0.9.4 You can configure to cache states we just got from
# the database or filesystem so that the next process can use them
# especially if You have a big installation of Nagios Business Process AddOns
# and have configured the business processes to be Nagios Services, this can
# bring You much speed with much lower load on Your monitoring server
# but the results are not so fresh as they could be
# so You decide!
# for this time in seconds states are cached
cache_time=0
# where to store cached states
cache_file=@localstatedir@/cache/ndo_backend_cache

23
etc/settings.cfg.in Normal file
View File

@@ -0,0 +1,23 @@
# Path settings, where to find files of Nagios Business Process AddOns
NAGIOSBP_BIN=@bindir@
NAGIOSBP_ETC=@sysconfdir@
NAGIOSBP_LIBEXEC=@libexecdir@
NAGIOSBP_LIB=@libdir@
NAGIOSBP_SBIN=@sbindir@
NAGIOSBP_SHARE=@datarootdir@
NAGIOSBP_LANG=@datarootdir@/lang
NAGIOSBP_VAR=@localstatedir@
NAGIOSBP_HTML_URL=@htmurl@
NAGIOSBP_CGI_URL=@cgiurl@
# Path settings, where to find files of Nagios
NAGIOS_ETC=@nagetc@
# Base URL settings
# if You do not call Your Nagios http://<host>/nagios/
# than You have to change this setting
# e. g. if You use http://<host>/monitoring/netsaint/
# You should set
# NAGIOS_BASE_URL=/monitoring/netsaint
NAGIOS_BASE_URL=@naghtmurl@
NAGIOS_CGI_URL=@nagcgiurl@