From: Alex Dehnert Date: Wed, 20 Apr 2011 19:22:38 +0000 (-0400) Subject: Add NRPE config X-Git-Url: https://dehnerts.com/gitweb/?a=commitdiff_plain;h=5fd8b6c3a88a8c65d323bd45fd9e1906346cd42c;p=sysconfig%2Fnagios3.git Add NRPE config --- diff --git a/conf.d/nrpe-commands.cfg b/conf.d/nrpe-commands.cfg new file mode 100644 index 0000000..7e54f04 --- /dev/null +++ b/conf.d/nrpe-commands.cfg @@ -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 index 0000000..1713624 --- /dev/null +++ b/conf.d/nrpe.cfg @@ -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 +}