Compare commits

...

12 Commits

Author SHA1 Message Date
Mario Fetka 1ecee38eb4 Bump 2019-07-31 11:47:55 +02:00
Mario Fetka 383cb25bc3 Bump 2019-07-26 16:52:04 +02:00
Mario Fetka b1a159a343 Bump 2019-04-18 17:46:49 +02:00
Mario Fetka 7d2c20f575 Bump 2019-04-17 11:47:11 +02:00
Mario Fetka b169bfe074 Merge tag 'upstream/3.4.0'
Upstream version 3.4.0
2019-04-17 11:40:51 +02:00
Mario Fetka dcec4b1aec Bump 2017-10-20 15:54:20 +02:00
Mario Fetka bbf5043eab correct settings.php patch 2017-10-20 15:35:35 +02:00
Mario Fetka 6e95c7dfae Bump 2017-10-20 15:12:24 +02:00
Mario Fetka 0073b85ba4 Merge tag 'upstream/3.3.0'
Upstream version 3.3.0
2017-10-20 15:00:09 +02:00
Mario Fetka 4631e71492 switch to icinge 2017-05-23 13:45:29 +02:00
Mario Fetka ef1ae661e7 delete wrong patch 2017-05-22 20:41:13 +02:00
Mario Fetka b9adf21bc5 intial commit 2017-05-22 11:26:31 +02:00
16 changed files with 443 additions and 0 deletions

49
debian/README.Debian vendored Normal file
View File

@ -0,0 +1,49 @@
NagiosQL for Debian
-------------------
NagiosQL comes with a web based installer. For security reason you have to
enable it manually:
sudo touch /usr/share/nagiosql/htdocs/install/ENABLE_INSTALLER
Start your browser and enter http://<yourhost>/nagiosql.
After installation, you must remove the file ENABLE_INSTALLER, otherwise
you can' start using NagiosQL:
sudo rm /usr/share/nagiosql/htdocs/install/ENABLE_INSTALLER
In the Webfrontend of NagiosQL login in as user Admin and go to
Administration/Domains -> domain 'localhost'. Please check the settings and
change it to your needs.
For security reasons nagios.cfg and cgi.cfg are not writeable to www-data
as NagiosQL request it. You can read the config files through the web
frontend, but not edit. Unfortunately NagiosQL requests a writeable
nagios.cfg for adding domains or changing values of existing domains.
You can perform the following steps to change permissions of nagios.cfg and
cgi.cfg permanently:
dpkg-statoverride --update --add nagios www-data 0664 /etc/nagios4/nagios.cfg
dpkg-statoverride --update --add nagios www-data 0664 /etc/nagios4/cgi.cfg
Additional remarks:
- this package comes with a configured domain 'localhost' and uses the
following pathes:
/etc/nagiosql/domains/localhost = misc nagios objects
/etc/nagiosql/domains/localhost/hosts = host object
/etc/nagiosql/domains/localhost/services = service objects
/etc/nagiosql/domain-backups/localhost
/etc/nagiosql/domain-backups/localhost/hosts
/etc/nagiosql/domain-backups/localhost/services
- add the following line to nagios.cfg:
cfg_dir=/etc/nagiosql/domains/localhost
check the configs via the web interface and reload nagios4:
/etc/init.d/nagios4 reload
-- Wolfgang Barth <wob@swobspace.net> Sat, 13 Jun 2009 12:30:28 +0200

4
debian/README.source vendored Normal file
View File

@ -0,0 +1,4 @@
This package uses quilt to manage all modifications to the upstream source.
See /usr/share/doc/quilt/README.source for instructions how to generate the
patched source, add a new modification, and remove an existing one.

31
debian/apache.conf vendored Normal file
View File

@ -0,0 +1,31 @@
Alias /nagiosql "/usr/share/nagiosql/htdocs"
<Directory "/usr/share/nagiosql/htdocs">
Options FollowSymLinks
DirectoryIndex index.php
<IfVersion < 2.3>
Order Allow,Deny
Allow From All
</IfVersion>
<IfVersion >= 2.3>
Require all granted
</IfVersion>
</Directory>
<Directory "/etc/nagiosql">
Options -Indexes -FollowSymLinks
<IfVersion < 2.3>
Order Allow,Deny
Allow From All
</IfVersion>
<IfVersion >= 2.3>
Require all granted
</IfVersion>
</Directory>

33
debian/changelog vendored Normal file
View File

@ -0,0 +1,33 @@
nagiosql (3.4.0-1) UNRELEASED; urgency=medium
* Bump to 3.3.0
* Bump to 3.4.0
-- Mario Fetka <mario.fetka@gmail.com> Wed, 17 Apr 2019 11:46:24 +0200
nagiosql (3.2.0-5) UNRELEASED; urgency=medium
* Bump to 3.2.0 branch with servicepack 3
* drop dpatch and switch to quilt
* switch to nagios4 for default nagios implementation
* many small bugfixes for mysqli
-- Mario Fetka <mario.fetka@gmail.com> Fri, 20 Oct 2017 15:07:22 +0200
nagiosql (3.0.3-1ubuntu2) lucid; urgency=low
* Add missing dependency - dpatch
-- fenris <fenris@ubuntu.com> Tue, 16 Mar 2010 16:41:12 +0800
nagiosql (3.0.3-1ubuntu1) karmic; urgency=low
* Initial release for Ubuntu
-- fenris <fenris@ubuntu.com> Thu, 04 Feb 2010 20:53:48 +0800
nagiosql (3.0.3-1) unstable; urgency=low
* Initial release (Closes: #0000)
-- Wolfgang Barth <wob@swobspace.net> Sat, 13 Jun 2009 12:30:28 +0200

1
debian/compat vendored Normal file
View File

@ -0,0 +1 @@
8

32
debian/control vendored Normal file
View File

@ -0,0 +1,32 @@
Source: nagiosql
Section: net
Priority: optional
Maintainer: fenris@ubuntu.com
XSBC-Original-Maintainer: Wolfgang Barth <wob@swobspace.net>
Build-Depends: debhelper (>= 7), default-mysql-server | mysql-server, php7.3-ldap | php7.0-ldap , php7.3-mysql | php7.0-mysql, rsync
Standards-Version: 3.8.0
Homepage: http://www.nagiosql.org
Package: nagiosql
Architecture: all
Depends: ${shlibs:Depends}, ${misc:Depends}, php-ssh2
Recommends: icinga
Description: Web based administration tool for Nagios 2 and above
It helps you to easily build a complex configuration with all options,
manage and use them. NagiosQL is based on a webserver with PHP, MySQL and
local file or remote access to the Nagios configuration files.
.
The main features are:
.
* create, delete, modify and copy settings
* create and export configuration files
* create and download configuration files
* easy configuration import
* auto backup configuration files
* consistency checks
* syntax verification
* user management
* instant activation of new configs
* many translations
* easy Installation Wizard
* MySQL database platform

43
debian/copyright vendored Normal file
View File

@ -0,0 +1,43 @@
This package was debianized by Wolfgang Barth <wob@swobspace.net> on
Sat, 13 Jun 2009 11:16:45 +0200.
It was downloaded from http://www.nagiosql.org
Upstream Authors:
Martin Willisegger
Rouven Homann
Copyright:
Copyright (C) 2008, 2009 by Martin Willisegger
License:
Redistribution and use in source and binary forms, with or without
modification, are permitted under the terms of the BSD License.
THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.
On Debian systems, the complete text of the BSD License can be
found in `/usr/share/common-licenses/BSD'.
NagiosQL comes with tinymce. The license can be found in
usr/share/nagiosql/htdocs/functions/tinyMCE/jscripts/tiny_mce/license.txt.
The Debian packaging is copyright 2009, Wolfgang Barth <wob@swobspace.net> and
is licensed under the GPL version 2, see `/usr/share/common-licenses/GPL-2'.
To build the package, the original tar file nagiosql3xy.tar.gz has to be
repacked. The content of the upstream source is now in the directory
nagiosql-<version>.orig/.

6
debian/dirs vendored Normal file
View File

@ -0,0 +1,6 @@
usr/share/nagiosql/htdocs
etc/nagiosql/domain
etc/nagiosql/domain/hosts
etc/nagiosql/domain/services
etc/nagiosql/backup/hosts
etc/nagiosql/backup/services

5
debian/docs vendored Normal file
View File

@ -0,0 +1,5 @@
doc/INSTALLATION_deDE.txt
doc/INSTALLATION_enGB.txt
doc/CHANGELOG
doc/README_SSH_KEY
doc/LICENSE

1
debian/links vendored Normal file
View File

@ -0,0 +1 @@
etc/nagiosql/apache.conf etc/apache2/conf-available/nagiosql.conf

33
debian/nagiosql.1 vendored Normal file
View File

@ -0,0 +1,33 @@
.\" Hey, EMACS: -*- nroff -*-
.\" First parameter, NAME, should be all caps
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
.\" other parameters are allowed: see man(7), man(1)
.TH NAGIOSQL SECTION "June 13, 2009"
.\" Please adjust this date whenever revising the manpage.
.\"
.\" Some roff macros, for reference:
.\" .nh disable hyphenation
.\" .hy enable hyphenation
.\" .ad l left justify
.\" .ad b justify to both left and right margins
.\" .nf disable filling
.\" .fi enable filling
.\" .br insert line break
.\" .sp <n> insert n+1 empty lines
.\" for manpage-specific macros, see man(7)
.SH NAME
nagiosql \- Web based administration tool for Nagios 2 and above
.SH SYNOPSIS
.B http://localhost/nagiosql
.SH DESCRIPTION
nagiosql is web based, so start your browser and enter
http://localhost/nagiosql.
.SH SEE ALSO
.BR /usr/share/doc/nagiosql/*
.br
.BR http://www.nagiosql.org
.SH AUTHOR
nagiosql was written by Martin Willsegger
.PP
This manual page was written by Wolfgang Barth <wob@swobspace.net>,
for the Debian project (and may be used by others).

5
debian/nagiosql.lintian-overrides vendored Normal file
View File

@ -0,0 +1,5 @@
nagiosql: extra-license-file usr/share/nagiosql/htdocs/functions/tinyMCE/jscripts/tiny_mce/license.txt
nagiosql: embedded-javascript-library usr/share/nagiosql/htdocs/functions/tinyMCE/jscripts/tiny_mce/tiny_mce.js
nagiosql: embedded-javascript-library usr/share/nagiosql/htdocs/functions/tinyMCE/jscripts/tiny_mce/tiny_mce_popup.js
nagiosql: embedded-javascript-library usr/share/nagiosql/htdocs/functions/yui/build/yahoo-dom-event/yahoo-dom-event.js
nagiosql: embedded-javascript-library usr/share/nagiosql/htdocs/install/js/prototype.js

78
debian/postinst vendored Normal file
View File

@ -0,0 +1,78 @@
#!/bin/sh
# postinst script for nagiosql
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postinst> `configure' <most-recently-configured-version>
# * <old-postinst> `abort-upgrade' <new version>
# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
# <new-version>
# * <postinst> `abort-remove'
# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
# <failed-install-package> <version> `removing'
# <conflicting-package> <version>
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package
setperm() {
user="$1"
group="$2"
mode="$3"
file="$4"
shift 4
# only do something when no setting exists
if ! dpkg-statoverride --list "$file" >/dev/null 2>&1; then
chown "$user":"$group" "$file"
chmod "$mode" "$file"
fi
}
setgrperm() {
group="$1"
mode="$2"
file="$3"
shift 3
# only do something when no setting exists
if ! dpkg-statoverride --list "$file" >/dev/null 2>&1; then
chgrp "$group" "$file"
chmod "$mode" "$file"
fi
}
case "$1" in
configure)
# -- /etc/nagiosql directories
for dir in `find /etc/nagiosql -type d 2> /dev/null`; do
[ -d $dir ] && setperm www-data nagios 6755 $dir
done
# -- /etc/nagiosql files
for file in `find /etc/nagiosql -type f -name \*.cfg 2> /dev/null`; do
[ -f $file ] && setperm www-data nagios 0644 $file
done
# -- /etc/icinga config files
for cfg in /etc/icinga/icinga.cfg /etc/nagios/icinga/cgi.cfg ; do
[ -e $cfg ] && setgrperm www-data 0644 $cfg
done
# -- at last
nsqlcfg="/etc/nagiosql/settings.php"
[ -e $nsqlcfg ] && setperm www-data www-data 0600 $nsqlcfg
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
#DEBHELPER#
exit 0

40
debian/prerm vendored Normal file
View File

@ -0,0 +1,40 @@
#!/bin/sh
# prerm script for nagiosql
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <prerm> `remove'
# * <old-prerm> `upgrade' <new-version>
# * <new-prerm> `failed-upgrade' <old-version>
# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
# * <deconfigured's-prerm> `deconfigure' `in-favour'
# <package-being-installed> <version> `removing'
# <conflicting-package> <version>
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package
case "$1" in
remove|upgrade|deconfigure)
ENABLER="/usr/share/nagiosql/htdocs/install/ENABLE_INSTALLER"
[ -e $ENABLER ] && rm -f $ENABLER
;;
failed-upgrade)
;;
*)
echo "prerm called with unknown argument \`$1'" >&2
exit 1
;;
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
#DEBHELPER#
exit 0

81
debian/rules vendored Executable file
View File

@ -0,0 +1,81 @@
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
DESTDIR = debian/nagiosql
configure: configure-stamp
configure-stamp:
dh_testdir
# Add here commands to configure the package.
touch configure-stamp
build: build-stamp
build-stamp: configure-stamp
dh_testdir
touch $@
clean:
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
dh_clean
install: build
dh_testdir
dh_testroot
dh_prep
dh_installdirs
# cp -a nagiosql3/* $(DESTDIR)/usr/share/nagiosql/htdocs/.
mkdir -p $(CURDIR)/$(DESTDIR)/usr/share/nagiosql/htdocs/
rsync -avr --exclude 'debian' --exclude '*-stamp' --exclude '.pc' --exclude '.git' $(CURDIR)/ $(CURDIR)/$(DESTDIR)/usr/share/nagiosql/htdocs/
rm -rf $(DESTDIR)/usr/share/nagiosql/htdocs/doc
install -m 644 debian/apache.conf $(DESTDIR)/etc/nagiosql/
# Build architecture-dependent files here.
binary-arch: install
# Build architecture-independent files here.
binary-indep: install
dh_testdir
dh_testroot
dh_installchangelogs
dh_installdocs
dh_installexamples
dh_lintian
# dh_install
# dh_installmenu
# dh_installdebconf
# dh_installlogrotate
# dh_installemacsen
# dh_installpam
# dh_installmime
# dh_python
# dh_installinit
# dh_installcron
# dh_installinfo
dh_installman
dh_link
# dh_strip
dh_compress
dh_fixperms
# dh_perl
# dh_makeshlibs
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install configure

1
debian/source/format vendored Normal file
View File

@ -0,0 +1 @@
3.0 (quilt)