--- /dev/null
+/*
+ * 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"
+}
+
debian/tmp/etc/icinga2
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-sign-key
usr/sbin/icinga2-*-feature
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/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/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)
+++ /dev/null
-/*
- * 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"
-}
-*/