Move kernel check to the Debian package directory.

Refs #6012
This commit is contained in:
Gunnar Beutner 2014-05-13 06:59:00 +02:00
parent 4b75d8f8c8
commit ff3de818f6
4 changed files with 14 additions and 14 deletions

13
debian/config/kernel.conf vendored Normal file
View File

@ -0,0 +1,13 @@
/*
* This check requires the "sudo" and "binutils" packages to be installed.
* You will also need to add the following line to your /etc/sudoers file:
* nagios ALL=(ALL:ALL) NOPASSWD: /etc/icinga2/scripts/check_kernel
*/
object Service "kernel" {
import "generic-service"
host_name = "localhost"
check_command = "kernel"
}

View File

@ -1,5 +1,6 @@
debian/tmp/etc/icinga2 debian/tmp/etc/icinga2
debian/config/apt.conf etc/icinga2/conf.d/hosts/localhost debian/config/apt.conf etc/icinga2/conf.d/hosts/localhost
debian/config/kernel.conf etc/icinga2/conf.d/hosts/localhost
usr/bin/icinga2-build* usr/bin/icinga2-build*
usr/bin/icinga2-sign-key usr/bin/icinga2-sign-key
usr/sbin/icinga2-*-feature usr/sbin/icinga2-*-feature

View File

@ -31,7 +31,6 @@ install_if_not_exists(icinga2/conf.d/hosts/localhost.conf ${CMAKE_INSTALL_SYSCON
install_if_not_exists(icinga2/conf.d/hosts/localhost/disk.conf ${CMAKE_INSTALL_SYSCONFDIR}/icinga2/conf.d/hosts/localhost) install_if_not_exists(icinga2/conf.d/hosts/localhost/disk.conf ${CMAKE_INSTALL_SYSCONFDIR}/icinga2/conf.d/hosts/localhost)
install_if_not_exists(icinga2/conf.d/hosts/localhost/http.conf ${CMAKE_INSTALL_SYSCONFDIR}/icinga2/conf.d/hosts/localhost) install_if_not_exists(icinga2/conf.d/hosts/localhost/http.conf ${CMAKE_INSTALL_SYSCONFDIR}/icinga2/conf.d/hosts/localhost)
install_if_not_exists(icinga2/conf.d/hosts/localhost/icinga.conf ${CMAKE_INSTALL_SYSCONFDIR}/icinga2/conf.d/hosts/localhost) install_if_not_exists(icinga2/conf.d/hosts/localhost/icinga.conf ${CMAKE_INSTALL_SYSCONFDIR}/icinga2/conf.d/hosts/localhost)
install_if_not_exists(icinga2/conf.d/hosts/localhost/kernel.conf ${CMAKE_INSTALL_SYSCONFDIR}/icinga2/conf.d/hosts/localhost)
install_if_not_exists(icinga2/conf.d/hosts/localhost/load.conf ${CMAKE_INSTALL_SYSCONFDIR}/icinga2/conf.d/hosts/localhost) install_if_not_exists(icinga2/conf.d/hosts/localhost/load.conf ${CMAKE_INSTALL_SYSCONFDIR}/icinga2/conf.d/hosts/localhost)
install_if_not_exists(icinga2/conf.d/hosts/localhost/procs.conf ${CMAKE_INSTALL_SYSCONFDIR}/icinga2/conf.d/hosts/localhost) install_if_not_exists(icinga2/conf.d/hosts/localhost/procs.conf ${CMAKE_INSTALL_SYSCONFDIR}/icinga2/conf.d/hosts/localhost)
install_if_not_exists(icinga2/conf.d/hosts/localhost/ssh.conf ${CMAKE_INSTALL_SYSCONFDIR}/icinga2/conf.d/hosts/localhost) install_if_not_exists(icinga2/conf.d/hosts/localhost/ssh.conf ${CMAKE_INSTALL_SYSCONFDIR}/icinga2/conf.d/hosts/localhost)

View File

@ -1,13 +0,0 @@
/*
* Kernel check requires sudo and binutils properly installed.
* Might not work on all systems.
*/
/*
object Service "kernel" {
import "generic-service"
host_name = "localhost"
check_command = "kernel"
}
*/