Monitor linerva (especially disk)
authorAlex Dehnert <adehnert@mit.edu>
Fri, 9 Mar 2012 17:44:42 +0000 (12:44 -0500)
committerAlex Dehnert <adehnert@mit.edu>
Fri, 9 Mar 2012 17:44:42 +0000 (12:44 -0500)
conf.d/nrpe-commands.cfg
local.d/linerva.cfg [new file with mode: 0644]

index 2b9098ad46d7de9f6b5305c5e86c27b0390b7af4..c9cab859da1a5a644365e81f2482be1297cb551f 100644 (file)
@@ -18,6 +18,11 @@ define command {
        command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -u -c check_disk
 }
 
+define command {
+       command_name    check_remote_disk_root
+       command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -u -c check_disk_root
+}
+
 define command {
        command_name    check_remote_zombie_procs
        command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -u -c check_zombie_procs
diff --git a/local.d/linerva.cfg b/local.d/linerva.cfg
new file mode 100644 (file)
index 0000000..4d2c55e
--- /dev/null
@@ -0,0 +1,122 @@
+define host {
+       name    linerva-host
+       use     generic-host
+       register        0
+}
+
+define hostgroup {
+       hostgroup_name  linerva-hosts
+       members linerva-dev,linerva-test,linerva
+}
+
+define host{
+        use                     linerva-host            ; Name of host template to use
+        host_name               linerva-dev
+        address                 18.181.0.112
+}
+
+define host{
+        use                     linerva-host            ; Name of host template to use
+        host_name               linerva-test
+        address                 18.181.3.112
+}
+
+define host{
+        use                     linerva-host            ; Name of host template to use
+        host_name               linerva
+        address                 18.181.0.232
+}
+
+define contactgroup {
+        contactgroup_name       linerva-pub
+        alias                   linerva-pub
+        members                 linerva-pub-zephyr
+}
+
+define contact {
+        contact_name                    linerva-pub-zephyr
+        alias                           linerva-pub-zephyr
+        service_notification_period     24x7
+        host_notification_period        24x7
+        service_notification_options    w,u,c,r
+        host_notification_options       d,u,r
+        service_notification_commands   notify-by-zephyr
+        host_notification_commands      host-notify-by-zephyr
+        email                           linerva
+}
+
+
+define service {
+       name                    linerva-service
+       use                     generic-service
+        check_interval         2
+       retry_interval          1
+        max_check_attempts     5
+       contact_groups  linerva-pub
+       #notification_interval  10
+        notification_period    24x7
+        notification_options    w,u,c,r
+       register 0
+}
+
+define service {
+       use                     linerva-service
+        hostgroup_name         linerva-hosts
+        service_description    PING
+       check_command           check_ping!500.0,30%!3000.0,80%
+}
+define service {
+       use                     linerva-service
+       hostgroup_name          linerva-hosts
+       service_description     SSH
+       check_command           check_ssh
+}
+
+define service {
+       use                     linerva-service
+        hostgroup_name         linerva-hosts
+        service_description    NRPE
+       check_command           check_nrpe_alive
+}
+
+define service {
+       use                     linerva-service
+        hostgroup_name         linerva-hosts
+        service_description    USERS
+       check_command           check_remote_users
+}
+
+define service {
+       use                     linerva-service
+        hostgroup_name         linerva-hosts
+        service_description    LOAD
+       check_command           check_remote_load
+}
+
+define service {
+       use                     linerva-service
+        hostgroup_name         linerva-hosts
+        service_description    DISK
+       check_command           check_remote_disk
+}
+
+define service {
+       use                     linerva-service
+        hostgroup_name         linerva-hosts
+        service_description    DISK-ROOT
+       check_command           check_remote_disk_root
+}
+
+define service {
+       use                     linerva-service
+        hostgroup_name         linerva-hosts
+        service_description    ZOMBIE-PROC
+       check_command           check_remote_zombie_procs
+}
+
+define service {
+       use                     linerva-service
+        hostgroup_name         linerva-hosts
+        service_description    TOTAL-PROC
+       check_command           check_remote_total_procs
+}