summaryrefslogtreecommitdiff
path: root/nagios/objects
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2020-10-31 18:41:51 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2020-10-31 19:05:42 +0000
commitcf2caef79e2895b097109c97295a5013151a9fa7 (patch)
treeb3099054d13aa0f8c4bfee8dd36f2f318f48cd7c /nagios/objects
parentAdd lm sensors checks (diff)
downloadconfig-cf2caef79e2895b097109c97295a5013151a9fa7.tar.bz2
config-cf2caef79e2895b097109c97295a5013151a9fa7.tar.xz
config-cf2caef79e2895b097109c97295a5013151a9fa7.zip
Add kernel config checks
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$
}