From 3bc32d9ebd9b0900eeef756122ad28f8857f8bfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Wed, 17 Jul 2019 11:33:57 +0200 Subject: Add monitoring modules via naemon --- modules/private/monitoring/conf/hosts.cfg | 32 +++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 modules/private/monitoring/conf/hosts.cfg (limited to 'modules/private/monitoring/conf/hosts.cfg') diff --git a/modules/private/monitoring/conf/hosts.cfg b/modules/private/monitoring/conf/hosts.cfg new file mode 100644 index 0000000..d903b0a --- /dev/null +++ b/modules/private/monitoring/conf/hosts.cfg @@ -0,0 +1,32 @@ +# vim: filetype=nagios + +define host { + name generic-host + event_handler_enabled 1 + flap_detection_enabled 1 + notification_period 24x7 + notifications_enabled 1 + process_perf_data 1 + register 0 + retain_nonstatus_information 1 + retain_status_information 1 +} + +define host { + name linux-server + use generic-host + check_command check-host-alive + check_interval 5 + check_period 24x7 + contact_groups admins + max_check_attempts 10 + notification_interval 120 + notification_options d,u,r,f + register 0 + retry_interval 1 +} + +define command { + command_name check-host-alive + command_line $USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 5 +} -- cgit v1.2.3