| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
Adding an event handler for brick status services. It will
reschedule the volume status service to determine the current
status of volume after any brick state change
Change-Id: I94fa018e5aed15be53f45506f1a38efd698eca79
Signed-off-by: Ramesh Nachimuthu <rnachimu@redhat.com>
|
|
|
|
|
|
|
| |
Fix the aggregation issue when all bricks in CRITICAL state.
Change-Id: I8fba79fe77cb876780d4d00cd2992daee758b580
Signed-off-by: Kanagaraj M <kmayilsa@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
When a volume is in Up state, Volume status will be decided
based on the status of the bricks.
CRITICAL - If all bricks are in CRITICAL state
WARNING - If some bricks are in CRITICAL state
OK - If all bricks are in OK state
Change-Id: Id90f8a5b1e0aaaa1de488b4356efbdd45fa43b7b
Signed-off-by: Kanagaraj M <kmayilsa@redhat.com>
|
|
|
|
|
| |
Change-Id: Iba14a8af63741a5a5014baccaa5b37aad97c7657
Signed-off-by: Ramesh Nachimuthu <rnachimu@redhat.com>
|
|
|
|
|
|
|
|
|
| |
Currently there is no way to identify the volume from brick
services. Hence adding volume name as custom variable and note in
brick services
Change-Id: If1ef000196dca2239f713fe41d033d8a4161d6c0
Signed-off-by: Ramesh Nachimuthu <rnachimu@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
Volume Quota status service was not appended to the service list.
Fixed it now.
Change-Id: Ia327deefc855619848a7d9ba0e41c155e2c15aa0
Signed-off-by: Kanagaraj M <kmayilsa@redhat.com>
|
|
|
|
|
|
|
|
|
| |
Fixed the error when there's no current
status for volume quota status plugin
Also corrected the livestatus query
Change-Id: Icb7fd0a363588c27c6237a6af397f07b5cfa6bdc
Signed-off-by: Sahina Bose <sabose@redhat.com>
|
|
|
|
|
|
|
|
|
| |
This plugin use mk-livestatus to retrieve the status of the
all the volumes and provide aggregrate status of the cluster
Addressed review comments
Change-Id: Ia83b41cfdc6dcfc1f379c024ba6ea33f9ccfe598
Signed-off-by: Nishanth Thomas <nthomas@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
| |
Autoconfig script get struck when user runs the script without starting
the nagios. Fixed it by checking the nagios service status before
restarting. Now autoconfig will restart the nagios only if it started
already by the user.
Bug-Url: https://bugzilla.redhat.com/1084975
Change-Id: I1582d06abe764e6f2ae2c63d4a2e7169f0b11aa5
Signed-off-by: Ramesh Nachimuthu <rnachimu@redhat.com>
|
|
|
|
|
|
|
|
| |
Adding services for brick and volume status in auto
config
Change-Id: Ic4a885f0b0f83294c21e9d8e0c22c720e0866a94
Signed-off-by: Ramesh Nachimuthu <rnachimu@redhat.com>
|
|
|
|
|
|
|
|
|
|
| |
Added a way to query for quota status to the
check_vol_server plugin
This will poll for quota status only if the
service status for quota returns non-OK status
Change-Id: I6260042ef54308a1f4f7b6d482a2b58a4682d36c
Signed-off-by: Sahina Bose <sabose@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
| |
Modified the existing volume utilization server plugin to
include status information as well.
Refactored the plugin with an argument -o|--option
to get the specific volume status.
Change-Id: I2b6f8612e32390fb20917098a255de1ee6b3a170
Signed-off-by: ndarshan <dnarayan@redhat.com>
Signed-off-by: Sahina Bose <sabose@redhat.com>
|
|
|
|
|
|
|
|
| |
Modified to check the list of critical services to decide
on the host status.
Change-Id: I6629abdd575e2fe92ea133a57d329e04fbd3b052
Signed-off-by: Shubhendu Tripathi <shtripat@redhat.com>
|
|
|
|
|
|
|
| |
Fixing the pep8 error
Change-Id: I437a7dc1502c19b3ab90ad5b8c8cb1862b9ba359
Signed-off-by: Ramesh Nachimuthu <rnachimu@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Following small changes have been made in auto conf.
1. Create Cluster utilization service only when there is atleast
one volume in the cluster.
2. Change the auto config to use the same host given during manual
run for further auto syncing.
3. Change the "gluster_auto_discovery" command to passss the
cluster name to auto discovery using $HOSTNAME$ macro
Change-Id: Id30e0794d98ada4a0276af0c17781f8742dc14e5
Signed-off-by: Ramesh Nachimuthu <rnachimu@redhat.com>
|
|
|
|
|
|
|
|
|
| |
This patch fixes the issue with -h(help) option for the
cluster utilization plugin.
Change-Id: Ide120c741d668188e2e270a509c20e9e109f11b9
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1082834
Signed-off-by: ndarshan <dnarayan@redhat.com>
|
|
|
|
|
|
|
|
|
|
| |
Removed the extra \n and changed the volume utilization pattern
to 'Volume Utilization -'
Change-Id: I12dd3ba6c85a6ec5e4c05af03602fe581188bb5c
Signed-off-by: Ramesh Nachimuthu <rnachimu@redhat.com>
Reviewed-on: https://code.engineering.redhat.com/gerrit/22562
Reviewed-by: Kanagaraj Mayilsamy <kmayilsa@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
to accept the new format of data receieved from the node.
removed the call to get the hostname of the
gluster node
Change-Id: I99a48cfe03672ee419ea5f586aa35b4b3ab325af
Signed-off-by: Nishanth Thomas <nthomas@redhat.com>
Reviewed-on: https://code.engineering.redhat.com/gerrit/22549
Reviewed-by: Kanagaraj Mayilsamy <kmayilsa@redhat.com>
Tested-by: Ramesh Nachimuthu <rnachimu@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch adds correct exit status for the plugin
check_volume_utilization_server so that status change
is reflected when the thresholds are crossed.
Change-Id: I8829b6fcd9347729216502fefedee7d4f5101453
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1080950
Signed-off-by: ndarshan <dnarayan@redhat.com>
Reviewed-on: https://code.engineering.redhat.com/gerrit/22551
Reviewed-by: Kanagaraj Mayilsamy <kmayilsa@redhat.com>
|
|
|
|
|
|
|
|
|
|
| |
Basic plugin which will discover all the basic gluster entities
and creates nagios configuration.
Change-Id: I71f05dec9bcce74969db300393f7f7c178161dba
Signed-off-by: Ramesh Nachimuthu <rnachimu@redhat.com>
Reviewed-on: https://code.engineering.redhat.com/gerrit/22100
Reviewed-by: Sahina Bose <sabose@redhat.com>
|
|
|
|
|
|
|
|
|
| |
Fixed build errors
Change-Id: I5720d5b2366ade742011597834470ad9ee0e32d1
Signed-off-by: Shubhendu Tripathi <shtripat@redhat.com>
Reviewed-on: https://code.engineering.redhat.com/gerrit/22418
Reviewed-by: Sahina Bose <sabose@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
| |
Added unit test cases for host event handler with minor
code fixes
Change-Id: Id9516303aaa1e4f14e781a06d4f73158bfcdebf4
Signed-off-by: Shubhendu Tripathi <shtripat@redhat.com>
Reviewed-on: https://code.engineering.redhat.com/gerrit/21669
Reviewed-by: Darshan Narayana Murthy <dnarayan@redhat.com>
Reviewed-by: Sahina Bose <sabose@redhat.com>
|
|
|
|
|
|
|
|
|
|
| |
Fixed an issue with cluster utilization plugin
Also refactored code
Change-Id: I7a86d9311ddf302dab93cb4aa8e5f57a5f868ec0
Signed-off-by: Sahina Bose <sabose@redhat.com>
Reviewed-on: https://code.engineering.redhat.com/gerrit/21996
Reviewed-by: Shubhendu Tripathi <shtripat@redhat.com>
|
|
|
|
|
|
|
|
|
|
| |
The readLiveStatus() method was not returning the status
details. Fixed the same.
Change-Id: I604a99c39c92f94b1ebab1e153f06223b5f6f39c
Signed-off-by: Shubhendu Tripathi <shtripat@redhat.com>
Reviewed-on: https://code.engineering.redhat.com/gerrit/21798
Reviewed-by: Sahina Bose <sabose@redhat.com>
|
|
|
|
|
|
|
|
|
|
| |
Fixed the template, commands and vol utilization
plugin
Change-Id: I11eb562f6f563d066938110f730512ae0b772eaf
Signed-off-by: Sahina Bose <sabose@redhat.com>
Reviewed-on: https://cuckoo.blr.redhat.com:8443/66
Reviewed-by: Nishanth Thomas <nishusemail@gmail.com>
|
|
|
|
|
|
|
| |
Change-Id: I32ab9dc0c3971c3b6bbbdaeec5c9e9087485b077
Signed-off-by: Ramesh Nachimuthu <rnachimu@redhat.com>
Reviewed-on: https://cuckoo.blr.redhat.com:8443/54
Reviewed-by: Sahina Bose <sabose@redhat.com>
|
|
|
|
|
|
|
|
| |
Change-Id: Idaa995d504e2278fb5a2b67ca4bcbc157307b7d7
Signed-off-by: Nishanth Thomas <nthomas@redhat.com>
Reviewed-on: https://cuckoo.blr.redhat.com:8443/50
Reviewed-by: Sahina Bose <sabose@redhat.com>
Tested-by: Sahina Bose <sabose@redhat.com>
|
|
|
|
|
|
|
|
|
|
| |
Plugins to ckeck the remote host status based on various services.
Change-Id: I1e260829901aa8dd831f0ca1d58609addb9bcf1b
Signed-off-by: Shubhendu Tripathi <shtripat@redhat.com>
Reviewed-on: https://cuckoo.blr.redhat.com:8443/9
Reviewed-by: Sahina Bose <sabose@redhat.com>
Tested-by: Sahina Bose <sabose@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This plugin sums up the volume utilization outputs in
a cluster
Added a utils livestatus for common code related to
mk_livestatus
Added constants for livestatussocket path
Change-Id: Id665ad3aaa1140e54c831d721ee874421ae84fa3
Signed-off-by: Sahina Bose <sabose@redhat.com>
Reviewed-on: https://cuckoo.blr.redhat.com:8443/10
Reviewed-by: Bala FA <barumuga@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
| |
All plugins/templates/config are imported from
https://github.com/gluster-rhsc/nagios-plugin.git
Change-Id: Icbbf23c0595e2b36548015489341d9ff823bac50
Signed-off-by: Bala.FA <barumuga@redhat.com>
Reviewed-on: https://cuckoo.blr.redhat.com:8443/6
|
|
Change-Id: Iae865d7dce78de83f0931d99b67455b9a0f12e1c
Signed-off-by: Bala.FA <barumuga@redhat.com>
|