summaryrefslogtreecommitdiff
path: root/nagios/objects
diff options
context:
space:
mode:
Diffstat (limited to 'nagios/objects')
-rw-r--r--nagios/objects/cluster.cfg12
-rw-r--r--nagios/objects/commands.cfg10
2 files changed, 22 insertions, 0 deletions
diff --git a/nagios/objects/cluster.cfg b/nagios/objects/cluster.cfg
index 451cdf4..7d1ab50 100644
--- a/nagios/objects/cluster.cfg
+++ b/nagios/objects/cluster.cfg
@@ -119,6 +119,18 @@ define service {
}
define service {
use remote-service
+ hostgroup_name linux-servers
+ service_description Saved kernel config
+ check_command check_file_exists!/etc/portage/savedconfig/sys-kernel/gentoo-kernel
+}
+define service {
+ use remote-service
+ hostgroup_name linux-servers
+ service_description New kernel config
+ check_command check_file_no_linger!/etc/portage/savedconfig/sys-kernel/._cfg*_gentoo-kernel
+}
+define service {
+ use remote-service
host_name defiant
service_description Store Volume
check_command check_disk!10%!5%!/var/store/
diff --git a/nagios/objects/commands.cfg b/nagios/objects/commands.cfg
index 4bf4f67..5e13407 100644
--- a/nagios/objects/commands.cfg
+++ b/nagios/objects/commands.cfg
@@ -19,6 +19,16 @@ define command {
}
define command {
+ command_name check_file_exists
+ command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_file_exists -a $ARG1$
+}
+
+define command {
+ command_name check_file_no_linger
+ command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_file_no_linger -a $ARG1$
+}
+
+define command {
command_name check_disk
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_disk -a $ARG1$ $ARG2$ $ARG3$
}