Add NRPE config
authorAlex Dehnert <adehnert@mit.edu>
Wed, 20 Apr 2011 19:22:38 +0000 (15:22 -0400)
committerAlex Dehnert <adehnert@mit.edu>
Wed, 20 Apr 2011 19:22:38 +0000 (15:22 -0400)
conf.d/nrpe-commands.cfg [new file with mode: 0644]
conf.d/nrpe.cfg [new file with mode: 0644]

diff --git a/conf.d/nrpe-commands.cfg b/conf.d/nrpe-commands.cfg
new file mode 100644 (file)
index 0000000..7e54f04
--- /dev/null
@@ -0,0 +1,52 @@
+define command {
+       command_name    check_nrpe_alive
+       command_line    $USER1$/check_nrpe -H $HOSTADDRESS$
+}
+
+define command {
+       command_name    check_remote_users
+       command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -u -c check_users
+}
+
+define command {
+       command_name    check_remote_load
+       command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -u -c check_load
+}
+
+define command {
+       command_name    check_remote_disk
+       command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -u -c check_disk
+}
+
+define command {
+       command_name    check_remote_zombie_procs
+       command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -u -c check_zombie_procs
+}
+
+define command {
+       command_name    check_remote_total_procs
+       command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -u -c check_total_procs
+}
+
+
+
+
+define command {
+       command_name    check_remote_mysql
+       command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -u -c check_mysql -a $USER3$ $USER4$
+}
+
+define command {
+       command_name    check_remote_mysql_slave
+       command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -u -c check_mysql_S -a $USER3$ $USER4$
+}
+
+define command {
+       command_name    check_remote_afs
+       command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -u -c check_afs
+}
+
+define command {
+       command_name    check_remote_cron_working
+       command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -u -c check_cron_working
+}
diff --git a/conf.d/nrpe.cfg b/conf.d/nrpe.cfg
new file mode 100644 (file)
index 0000000..1713624
--- /dev/null
@@ -0,0 +1,51 @@
+define hostgroup {
+       hostgroup_name nrpe-hosts
+       members novgorod,esp
+}
+
+define service {
+       name nrpe-service
+       use  generic-service
+}
+
+define service {
+       use                     nrpe-service
+        hostgroup_name         nrpe-hosts
+        service_description    NRPE
+       check_command           check_nrpe_alive
+}
+
+define service {
+       use                     nrpe-service
+        hostgroup_name         nrpe-hosts
+        service_description    USERS
+       check_command           check_remote_users
+}
+
+define service {
+       use                     nrpe-service
+        hostgroup_name         nrpe-hosts
+        service_description    LOAD
+       check_command           check_remote_load
+}
+
+define service {
+       use                     nrpe-service
+        hostgroup_name         nrpe-hosts
+        service_description    DISK
+       check_command           check_remote_disk
+}
+
+define service {
+       use                     nrpe-service
+        hostgroup_name         nrpe-hosts
+        service_description    ZOMBIE-PROC
+       check_command           check_remote_zombie_procs
+}
+
+define service {
+       use                     nrpe-service
+        hostgroup_name         nrpe-hosts
+        service_description    TOTAL-PROC
+       check_command           check_remote_total_procs
+}