diff options
author | Nishanth Thomas <nthomas@redhat.com> | 2014-04-08 20:12:14 +0530 |
---|---|---|
committer | Bala.FA <barumuga@redhat.com> | 2014-04-29 10:21:37 +0530 |
commit | b40621bc3f1253adaa154428ddef758638b5d175 (patch) | |
tree | 9232b9b080ded9d4d2aeb37cec1c2a7ce24a8127 /config/gluster-commands.cfg | |
parent | 644a9617c9d31a76c0b217950d53355d14b54daf (diff) |
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 <nthomas@redhat.com>
Diffstat (limited to 'config/gluster-commands.cfg')
-rw-r--r-- | config/gluster-commands.cfg | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/config/gluster-commands.cfg b/config/gluster-commands.cfg index 73b9e7a..f1b94a4 100644 --- a/config/gluster-commands.cfg +++ b/config/gluster-commands.cfg @@ -46,6 +46,16 @@ define command { } define command { + command_name gluster-notify-host-by-snmp + command_line $USER1$/gluster/hostsnmptrapgenerator.py $NOTIFICATIONTYPE$ $HOSTNOTIFICATIONNUMBER$ "$HOSTNAME$" $HOSTSTATEID$ $HOSTSTATETYPE$ $HOSTATTEMPT$ $HOSTDURATIONSEC$ "$HOSTGROUPNAMES$" $LASTHOSTCHECK$ $LASTHOSTSTATECHANGE$ "$HOSTOUTPUT$" +} + +define command { + command_name gluster-notify-service-by-snmp + command_line $USER1$/gluster/servicesnmptrapgenerator.py $NOTIFICATIONTYPE$ $SERVICENOTIFICATIONNUMBER$ "$HOSTNAME$" $HOSTSTATEID$ "$SERVICEDESC$" $SERVICESTATEID$ $SERVICEATTEMPT$ "$SERVICEDURATION$" "$SERVICEGROUPNAMES$" $LASTSERVICECHECK$ $LASTSERVICESTATECHANGE$ "$SERVICEOUTPUT$" +} + +define command { command_name check_brick_usage command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_brick_usage -a $_SERVICEBRICK_DIR$ } |