From 998e1f9ef43f8fd6e2a7a3722bfd4f3f734c450d Mon Sep 17 00:00:00 2001 From: Ramesh Nachimuthu Date: Thu, 13 Mar 2014 19:26:00 +0530 Subject: Notification: Notification handler for ovirt notification Added a new notification handler to notify nagios events to ovirt. A new contact ovirt is added with the handler which can sent events/alerts to ovirt engine using Rest API. By default all gluster related configuration entities like host, volume, gluster, bricks will have this contact. By default contact ovirt will have some default values for ovirt engie rest api and user fields. User has to fill the right values in ovirt contact defined in gluster-contacts.cfg file. Ovirt password has to be configured as a user variable $USER3$ in file /etc/nagios/private/resource.cfg. User variable $USER3$ used in command to pass the password to the handler. Change-Id: I19074af6ae1ee4a8c16d8821b10a1c3a345f321a Signed-off-by: Ramesh Nachimuthu Reviewed-on: https://cuckoo.blr.redhat.com:8443/8 Reviewed-by: Timothy Asir Reviewed-by: Sahina Bose --- README | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'README') diff --git a/README b/README index a14ea45..d27ae4b 100644 --- a/README +++ b/README @@ -21,6 +21,27 @@ Packaging The 'nagios-server-addons.spec' file demonstrates how to distribute this as an RPM package. +Sending Notifications to Ovirt Engine +===================================== + + Nagios can be configured to send notifications to Ovirt engine to notify important nagios events. + +Configure the 'Ovirt' Contact defined in /etc/nagios/gluster-gluster-contacts.cfg with actual +ovirt details. + +# Ovirt Engine Rest API URL + +_ovirt_rest_api #http://[ovirt-engine-address]:[port]/ovirt-engine/api +_ovirt_user # username@domain + +# Ovirt password has to be configured as a user variable USER3$ in file /etc/nagios/private/resource.cfg. + +$USER3$ = [password for the user defined in contact 'Ovirt'] + +User variable $USER3$ is used in commands to pass the password to the handler. If some other variable is +used to configure password than it has to be updated in the nagios commands 'notify-host-to-ovirt' and +'notify-service-to-ovirt' defined in file /etc/nagios/gluster/gluster-commands.cfg + Getting Help ============ -- cgit