switch to icinge

This commit is contained in:
Mario Fetka 2017-05-23 13:45:29 +02:00
parent ef1ae661e7
commit 4631e71492
4 changed files with 7 additions and 7 deletions

2
debian/control vendored
View File

@ -10,7 +10,7 @@ Homepage: http://www.nagiosql.org
Package: nagiosql
Architecture: all
Depends: ${shlibs:Depends}, ${misc:Depends}, php-ssh2
Recommends: nagios4
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

6
debian/dirs vendored
View File

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

View File

@ -6,7 +6,7 @@ diff -uNr nagiosql32.orig/install/sql/nagiosQL_v32_db_mysql.sql nagiosql32/insta
--
-INSERT INTO `tbl_configtarget` (`id`, `target`, `alias`, `server`, `method`, `user`, `password`, `ssh_key_path`, `basedir`, `hostconfig`, `serviceconfig`, `backupdir`, `hostbackup`, `servicebackup`, `nagiosbasedir`, `importdir`, `picturedir`, `commandfile`, `binaryfile`, `pidfile`, `conffile`, `version`, `access_group`, `active`, `nodelete`, `last_modified`) VALUES(1, 'localhost', 'Local installation', 'localhost', '1', '', '', '', '/etc/nagiosql/', '/etc/nagiosql/hosts/', '/etc/nagiosql/services/', '/etc/nagiosql/backup/', '/etc/nagiosql/backup/hosts/', '/etc/nagiosql/backup/services/', '/etc/nagiosql/', '/opt/nagios/etc/objects/', '', '/var/nagios/rw/nagios.cmd', '/opt/nagios/bin/nagios', '/var/nagios/nagios.lock', '/etc/nagiosql/nagios.cfg', 3, 0, '1', '1', NOW());
+INSERT INTO `tbl_configtarget` (`id`, `target`, `alias`, `server`, `method`, `user`, `password`, `ssh_key_path`, `basedir`, `hostconfig`, `serviceconfig`, `backupdir`, `hostbackup`, `servicebackup`, `nagiosbasedir`, `importdir`, `picturedir`, `commandfile`, `binaryfile`, `pidfile`, `conffile`, `version`, `access_group`, `active`, `nodelete`, `last_modified`) VALUES(1, 'localhost', 'Local installation', 'localhost', '1', '', '', '', '/etc/nagiosql/', '/etc/nagiosql/hosts/', '/etc/nagiosql/services/', '/etc/nagiosql/backup/', '/etc/nagiosql/backup/hosts/', '/etc/nagiosql/backup/services/', '/etc/nagiosql/', '/etc/nagios4/objects/', '', '/var/lib/nagios4/rw/nagios.cmd', '/usr/sbin/nagios4', '/var/run/nagios4/nagios4.pid', '/etc/nagios4/nagios.cfg', 3, 0, '1', '1', NOW());
+INSERT INTO `tbl_configtarget` (`id`, `target`, `alias`, `server`, `method`, `user`, `password`, `ssh_key_path`, `basedir`, `hostconfig`, `serviceconfig`, `backupdir`, `hostbackup`, `servicebackup`, `nagiosbasedir`, `importdir`, `picturedir`, `commandfile`, `binaryfile`, `pidfile`, `conffile`, `version`, `access_group`, `active`, `nodelete`, `last_modified`) VALUES(1, 'localhost', 'Local installation', 'localhost', '1', '', '', '', '/etc/nagiosql/domain/', '/etc/nagiosql/domain/hosts/', '/etc/nagiosql/domain/services/', '/etc/nagiosql/backup/', '/etc/nagiosql/backup/hosts/', '/etc/nagiosql/backup/services/', '/etc/nagiosql/', '/etc/nagios4/objects/', '', '/var/lib/nagios4/rw/nagios.cmd', '/usr/sbin/nagios4', '/var/run/nagios4/nagios4.pid', '/etc/nagios4/nagios.cfg', 3, 0, '1', '1', NOW());
-- --------------------------------------------------------

4
debian/postinst vendored
View File

@ -52,8 +52,8 @@ case "$1" in
for file in `find /etc/nagiosql -type f -name \*.cfg 2> /dev/null`; do
[ -f $file ] && setperm www-data nagios 0644 $file
done
# -- /etc/nagios4 config files
for cfg in /etc/nagios4/nagios.cfg /etc/nagios/nagios4/cgi.cfg ; do
# -- /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