diff options
author | Ramesh Nachimuthu <rnachimu@redhat.com> | 2014-03-13 19:26:00 +0530 |
---|---|---|
committer | Bala.FA <barumuga@redhat.com> | 2014-04-29 10:21:36 +0530 |
commit | 998e1f9ef43f8fd6e2a7a3722bfd4f3f734c450d (patch) | |
tree | b67379b12887cf4a0fa143ab03c10a80fb1c46a7 /config/gluster-contacts.cfg | |
parent | 7f950eef214193ed6738f445995e058bcf66d3ca (diff) |
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 <rnachimu@redhat.com>
Reviewed-on: https://cuckoo.blr.redhat.com:8443/8
Reviewed-by: Timothy Asir <tim.gluster@gmail.com>
Reviewed-by: Sahina Bose <sabose@redhat.com>
Diffstat (limited to 'config/gluster-contacts.cfg')
-rw-r--r-- | config/gluster-contacts.cfg | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/config/gluster-contacts.cfg b/config/gluster-contacts.cfg new file mode 100644 index 0000000..758a102 --- /dev/null +++ b/config/gluster-contacts.cfg @@ -0,0 +1,15 @@ +define contact { + contact_name ovirt + alias Ovirt Engine + email admin@ovirt.com + service_notification_period 24x7 + service_notification_options w,u,c,r + service_notification_commands notify-service-to-ovirt + host_notification_period 24x7 + host_notification_options d,u,r + host_notification_commands notify-host-to-ovirt + can_submit_commands 1 + _ovirt_rest_api http://ovirt.com:8080/ovirt-engine/api + _ovirt_user admin@internal +} + |