From b40621bc3f1253adaa154428ddef758638b5d175 Mon Sep 17 00:00:00 2001 From: Nishanth Thomas Date: Tue, 8 Apr 2014 20:12:14 +0530 Subject: SNMP Trap Support : SNMP notification on status change These plugins will generate SNMP traps when there is a host or service state change in Nagios. Plugged into the Nagios Notification mechanism and uses netsnmp utils to generate SNMP traps Addressed the review comments Change-Id: I42c4d1968a48bc80e767f6fbc24d1637a92d21b0 Signed-off-by: Nishanth Thomas --- config/gluster-templates.cfg | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) (limited to 'config/gluster-templates.cfg') diff --git a/config/gluster-templates.cfg b/config/gluster-templates.cfg index a1da860..d9bebf9 100644 --- a/config/gluster-templates.cfg +++ b/config/gluster-templates.cfg @@ -1,8 +1,12 @@ define host{ - name gluster-generic-host - use linux-server - register 0 - contacts +ovirt + name gluster-generic-host + use linux-server + notifications_enabled 1 + notification_period 24x7 + notification_interval 120 + notification_options d,u,r,f,s + register 0 + contacts +ovirt,snmp } define host { @@ -29,11 +33,15 @@ define host{ } define service { - name gluster-service - use generic-service - register 0 - contacts +ovirt - _gluster_entity Service + name gluster-service + use generic-service + notifications_enabled 1 + notification_period 24x7 + notification_options w,u,c,r,f,s + notification_interval 120 + register 0 + contacts +ovirt,snmp + _gluster_entity Service } define service { -- cgit