summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* nagios-addons: added disperse vol details to discover_volumes pluginv1.1.0Darshan N2015-08-161-2/+4
| | | | | | | | | | | | | This patch adds disperse volume related details like redundancy count and disperse count to discover_volumes plugin. It is needed to monitor status of disperse volume. Change-Id: I1c5d7d85e6fe7b0efdcd75fd562507dd1f9ce906 Bug-Url: https://bugzilla.redhat.com/1235651 Signed-off-by: Darshan N <dnarayan@redhat.com> Reviewed-on: http://review.gluster.org/11500 Reviewed-by: Ramesh N <rnachimu@redhat.com> Reviewed-by: Sahina Bose <sabose@redhat.com>
* nagios-plugins: Corrected cluster-quorum service nameSahina Bose2015-08-121-1/+1
| | | | | | | | | | | | | The service name changed in nagios-server addons to enable update with freshness check. Fixing corresponding change here Change-Id: If0ac509bc402d82c8a5c0fe9ea72cd9f98caf8bc Bug-Url: https://bugzilla.redhat.com/1236290 Signed-off-by: Sahina Bose <sabose@redhat.com> Reviewed-on: http://review.gluster.org/11465 Reviewed-by: darshan n <dnarayan@redhat.com> Reviewed-by: Ramesh N <rnachimu@redhat.com>
* plugins: nrpe plugin to check volumes with server quorumSahina Bose2015-05-312-0/+81
| | | | | | | | | | | | Added a plugin to check if any volume in the cluster has the server side quorum turned on Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1106421 Change-Id: I897aedd737a622832548e7470e8f3cf9fb7dbc2c Signed-off-by: Sahina Bose <sabose@redhat.com> Reviewed-on: http://review.gluster.org/8016 Reviewed-by: darshan n <dnarayan@redhat.com> Reviewed-by: Ramesh N <rnachimu@redhat.com>
* plugins: Deduct cached space from used space in memory utilizationndarshan2015-04-282-10/+10
| | | | | | | | | | | | | | This patch modifies memory utilization plugin to retrun memory used after deducting cached space from it. As this cached space can be got back by applications whenever needed. So we can consider cached space as free. Change-Id: I6e6b7d0fc8148065d806c735606e4605741534d4 Bug-Url: https://bugzilla.redhat.com/1204314 Signed-off-by: ndarshan <dnarayan@redhat.com> Reviewed-on: http://review.gluster.org/9977 Reviewed-by: Ramesh N <rnachimu@redhat.com> Reviewed-by: Sahina Bose <sabose@redhat.com>
* nagios-plugins: Pep8 fixes in tests/test_mounts.pyndarshan2015-02-191-2/+2
| | | | | | | Change-Id: Ia1e2039294466f7f297d32cb2a9e3d1644bea313 Signed-off-by: ndarshan <dnarayan@redhat.com> Reviewed-on: http://review.gluster.org/9704 Reviewed-by: Sahina Bose <sabose@redhat.com>
* nagios-plugins: Unit test and pep8 fix for check_mounts pluginndarshan2015-02-191-2/+2
| | | | | | | Change-Id: I2caf3515768e918446bfa68498ccad315d4ca300 Signed-off-by: ndarshan <dnarayan@redhat.com> Reviewed-on: http://review.gluster.org/9698 Reviewed-by: Sahina Bose <sabose@redhat.com>
* nagios-plugins: Disk utilization plugin revamp.ndarshan2015-02-194-187/+403
| | | | | | | | | | | | | | | | | This patch is aimed at revamping the existing check_disk_and_inode plugin in such a way that the plugin behaviour is same for both disk utilization service and brick utilization service. It has just two options include and exclude to include or exclude the mountpoints to be monitoried. This plugin monitors the data, inode, thinpool, thinpool-metadata utilization irrespective of service using this plugin. Change-Id: I98b18d6f3b22915978f8c6381adc99729a4e1161 Bug-Url:https://bugzilla.redhat.com/show_bug.cgi?id=1167771 Signed-off-by: ndarshan <dnarayan@redhat.com> Reviewed-on: http://review.gluster.org/9389 Reviewed-by: Bala FA <barumuga@redhat.com> Reviewed-by: Sahina Bose <sabose@redhat.com>
* fix unit test error for network.pyv1.0.0Timothy Asir2015-02-031-3/+3
| | | | | | | | | Change-Id: I9eae0c1857ab0a0c7c47123aeef8c39696f014a0 Signed-off-by: Timothy Asir <tjeyasin@redhat.com> Reviewed-on: http://review.gluster.org/9570 Reviewed-by: Ramesh N <rnachimu@redhat.com> Reviewed-by: Shubhendu Tripathi <shtripat@redhat.com> Tested-by: Timothy Asir <tim.gluster@gmail.com>
* gluster-nagios-addons:discover_volumes to return proper error in case of ↵Nishanth Thomas2014-11-171-2/+4
| | | | | | | | | | | | | | | | | | exception discoverVolumes was not returning the error message in case of exception while retrieving the data from the backend. Due this the calling funtions always expect a list and causing inconsistent results https://bugzilla.redhat.com/show_bug.cgi?id=1136205 https://bugzilla.redhat.com/show_bug.cgi?id=1109843 Signed-off-by: Nishanth Thomas <nthomas@redhat.com> Change-Id: I518a5f94fd5d414028970379e268e0aa8a408285 Reviewed-on: http://review.gluster.org/9065 Reviewed-by: Shubhendu Tripathi <shtripat@redhat.com> Tested-by: Nishanth Thomas <nishusemail@gmail.com> Reviewed-by: Sahina Bose <sabose@redhat.com>
* plugins: Modified the quorum messagesSahina Bose2014-11-121-1/+2
| | | | | | | | | | Modified the quorum messages to be friendlier Change-Id: I8d76a094cc455847a76ece5c1744b8399f4e7e58 Bug-Url: https://bugzilla.redhat.com/1109702 Signed-off-by: Sahina Bose <sabose@redhat.com> Reviewed-on: http://review.gluster.org/9101 Reviewed-by: Ramesh N <rnachimu@redhat.com>
* plugins: Change the message for quorum pluginSahina Bose2014-11-111-3/+1
| | | | | | | | | | | | The message for Cluster-quorum monitoring contained the volume names too...removed this as it was retained even post volume deletion Bug-Url: https://bugzilla.redhat.com/1109702 Change-Id: Ibcb4cfcdb10041e83976e8672623a0140777a539 Signed-off-by: Sahina Bose <sabose@redhat.com> Reviewed-on: http://review.gluster.org/9095 Reviewed-by: Ramesh N <rnachimu@redhat.com>
* Fix pep8 errorsv0.1.1Timothy Asir Jeyasingh2014-06-263-3/+3
| | | | | | | | Change-Id: I0d41725a02636228bc613b40c1b4d2d57a35e3e3 Signed-off-by: Timothy Asir Jeyasingh <tjeyasin@redhat.com> Reviewed-on: http://review.gluster.org/8159 Tested-by: Timothy Asir <tim.gluster@gmail.com> Reviewed-by: Shubhendu Tripathi <shtripat@redhat.com>
* Add status information to show disk usageTimothy Asir2014-06-101-46/+46
| | | | | | | | | | | | | | | | | | | | | | This will show the status like: for critical usage: CRITICAL: 4% used (4GB out of 100GB):mounts: (CRITICAL : <critical list> followed by WARNING if any followed by OK for disk status "WARNING": WARNING: 4% used (4GB out of 100GB):mounts: (WARNING if any followed by OK for disk status "OK": OK: 4% used (4GB out of 100GB):mounts:(<mounts>) Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1081495 Change-Id: I9dbda7a5d6ea992ba73acce2174e6d66f2e16066 Signed-off-by: Timothy Asir <tjeyasin@redhat.com> Reviewed-on: http://review.gluster.org/7936 Tested-by: Timothy Asir <tim.gluster@gmail.com> Reviewed-by: Sahina Bose <sabose@redhat.com>
* gluster-nagios-addons:fixed testcase failuresNishanth Thomas2014-06-052-3/+5
| | | | | | | | | | Bug-Url:https://bugzilla.redhat.com/show_bug.cgi?id=1096159 Bug-Url:https://bugzilla.redhat.com/show_bug.cgi?id=1096169 Change-Id: I41d320ab63ec47bbd9b8b413cc7dffed68470d82 Signed-off-by: Nishanth Thomas <nthomas@redhat.com> Reviewed-on: http://review.gluster.org/7974 Reviewed-by: Sahina Bose <sabose@redhat.com> Tested-by: Nishanth Thomas <nishusemail@gmail.com>
* plugins: Geo-rep plugin status message enhancedSahina Bose2014-05-281-2/+22
| | | | | | | | | | | Added geo-rep session wise details to the plugin output. Change-Id: I2086a493c2befa4c1e25a1cc5523213f0f13c8dd Bug-Url: https://bugzilla.redhat.com/1101218 Bug-Url: https://bugzilla.redhat.com/1101223 Signed-off-by: Sahina Bose <sabose@redhat.com> Reviewed-on: http://review.gluster.org/7896
* plugins: Corrected quota status messagesSahina Bose2014-05-201-1/+1
| | | | | | | | | | | | | Corrected the quota status message when hard limit is reached. Also removed the ";" at the end of the message. Change-Id: If10e07a69d838439d1bfa73eca68b6dc13cf83a8 Bug-Url: https://bugzilla.redhat.com/1098046 Bug-Url: https://bugzilla.redhat.com/1098427 Signed-off-by: Sahina Bose <sabose@redhat.com> Reviewed-on: http://review.gluster.org/7798 Reviewed-by: Kanagaraj M <kmayilsa@redhat.com>
* network: show only interfaces having IP addressesBala.FA2014-05-163-219/+128
| | | | | | | | | | | | | | | | | | | | | | | | Network plugin for Nagios provides status and performance data of network interfaces. By default, it provides details of all the interfaces having IP addresses The plugin can be used to get status of specific interface: $ python network.py -i em1 get status except specific interface: $ python network.py -e em1 get status of all interfaces: $ python network.py -a Change-Id: If3cc2e4c00c866ce1a3c839a643d63b1e23ff8ea Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1085237 Signed-off-by: Bala.FA <barumuga@redhat.com> Reviewed-on: http://review.gluster.org/7588 Reviewed-by: Sahina Bose <sabose@redhat.com> Tested-by: Sahina Bose <sabose@redhat.com>
* nagios-plugins: Fixed exit status and message for quota pluginSahina Bose2014-05-081-0/+11
| | | | | | | | | | | Changed the passive service check to return warning when soft limit exceeded Also corrected the message- if only soft limit exceeded, the message should not contain any entry for hard limit. Change-Id: Ice693997c769d9029825fcd4aafacc45d1577e23 Signed-off-by: Sahina Bose <sabose@redhat.com> Reviewed-on: http://review.gluster.org/7706
* rhs-addons:Fix: Modified swap and memory plugin to show in GB.ndarshan2014-05-082-17/+17
| | | | | | | | | | | Modified swap and memory plugin to show message and performance data in GB instead of kB. https://bugzilla.redhat.com/show_bug.cgi?id=1080004 Signed-off-by: ndarshan <dnarayan@redhat.com> Change-Id: I06cfd4cd8e19ac8bc21c50ee0f37f15b4ae8cc2e Reviewed-on: http://review.gluster.org/7640 Reviewed-by: Sahina Bose <sabose@redhat.com>
* plugins: Enhanced volume quota status pluginSahina Bose2014-05-051-3/+21
| | | | | | | | | | | Quota status plugin enhanced to return soft-limit as well as hard-limit exceeded messages along with the directories that it's exceeded on. Change-Id: I77a8686e2742e2174c9f5ebdade8f017a1ffad4e Signed-off-by: Sahina Bose <sabose@redhat.com> Reviewed-on: http://review.gluster.org/7672 Reviewed-by: Kanagaraj M <kmayilsa@redhat.com>
* plugins: Plugin to handle server quorumSahina Bose2014-05-051-1/+33
| | | | | | | | | | | | | | | | | | | Plugin to handle log messages related to server quorum Message is parsed for msgid as the msgid is not correctly populated now Fixed pep8 errors in nscautils and added tests Also changed the service name to remove "Status" -it now reads Volume Quota, for instance Change-Id: I339ed16b3806f853ae3555a998974c47157c95ad Signed-off-by: Sahina Bose <sabose@redhat.com> Reviewed-on: http://review.gluster.org/7648 Reviewed-by: Shubhendu Tripathi <shtripat@redhat.com> Reviewed-by: Ramesh N <rnachimu@redhat.com> Reviewed-by: Kanagaraj M <kmayilsa@redhat.com>
* plugins: Changed nsca method for syslog monitoringSahina Bose2014-05-041-1/+1
| | | | | | | | | | | | | Changed the syslog monitoring plugin to use subprocess to send the nsca command There was an issue with using the utils method when being called from rsyslog service Change-Id: Ia4dea2b0f942ce815f123ece1fba8fd1f18fc6be Signed-off-by: Sahina Bose <sabose@redhat.com> Reviewed-on: http://review.gluster.org/7639 Reviewed-by: Timothy Asir <tim.gluster@gmail.com>
* vol-status: remove volume-info from statusKanagaraj M2014-05-021-15/+1
| | | | | | | | | | | When Volume is in OK state, volume info will not be sent along with status. Change-Id: I3b3644c45676c35f7b7dec048531a40b3de2fb8d Signed-off-by: Kanagaraj M <kmayilsa@redhat.com> Reviewed-on: http://review.gluster.org/7612 Reviewed-by: Ramesh N <rnachimu@redhat.com> Reviewed-by: Sahina Bose <sabose@redhat.com>
* autoconf:Fix for pep8 issueRamesh Nachimuthu2014-05-021-2/+2
| | | | | | | | | fixing a small pep8 issue Change-Id: I203ae51d78b846184dc873b18a6bfbf526f937e3 Signed-off-by: Ramesh Nachimuthu <rnachimu@redhat.com> Reviewed-on: http://review.gluster.org/7646 Reviewed-by: Sahina Bose <sabose@redhat.com>
* autoconf: discover volume list and info separatelyRamesh Nachimuthu2014-05-022-0/+100
| | | | | | | | | | | | | | | | | | | | NRPE doesn't support transfering large junk of data as a result. Hence we have to discover the volume details one by one. Added two NRPE commands 'discover_volume_list' and 'discover_volume_info'. 'discover_volume_list' returns the list of volume names with volume type. 'discover_volume_info' returns the bricks details of a given volume. Change-Id: I753be5e407fe14988f23ca77007b3a585537b360 Signed-off-by: Ramesh Nachimuthu <rnachimu@redhat.com> Reviewed-on: http://review.gluster.org/7630 Reviewed-by: Kanagaraj M <kmayilsa@redhat.com> Reviewed-by: Sahina Bose <sabose@redhat.com>
* plugins: Added geo-rep status to volume_statusSahina Bose2014-05-011-0/+20
| | | | | | | | | | | Added option to get the geo rep status to check_volume_status plugin Change-Id: I32d2a0240e3888505c54fdce9a3fb731b9300e38 Signed-off-by: Sahina Bose <sabose@redhat.com> Reviewed-on: http://review.gluster.org/7591 Reviewed-by: Shubhendu Tripathi <shtripat@redhat.com> Reviewed-by: Kanagaraj M <kmayilsa@redhat.com>
* fix test case failure and pep8 error for check_proc testTimothy Asir2014-04-292-184/+184
| | | | | Change-Id: I3c965b95d85373f79ddebd5c7e38010fc7fef691 Signed-off-by: Timothy Asir <tjeyasin@redhat.com>
* plugins: Added volume info as part of volume statusSahina Bose2014-04-291-1/+25
| | | | | | | | | The volume status also needs to look at the brick statuses Changed the plugin to return the volume info in case the volume is UP Change-Id: Iee0b2ad84c7a3c5d5ebdc7e0616fb6d987cfb25a Signed-off-by: Sahina Bose <sabose@redhat.com>
* Add gluster process monitoring pluginTimothy Asir2014-04-293-0/+240
| | | | | | | | | This helps monitoring gluster related process such as glusterd, glusterfsd, gluster self heal process, nfs and also helps to monitor other running services Change-Id: I8c6f252270a847e7ff007c358125a9310525f201 Signed-off-by: Timothy Asir <tjeyasin@redhat.com>
* plugins: Plugin to act on syslog messageSahina Bose2014-04-292-0/+47
| | | | | | | | | | | | This plugin integrates with syslog messages and sends the output to Nagios server using NSCA Refactored code to separate out common NSCA related code to nscautils Change-Id: I6a874da7f2296310060742acb6b1cd6562f5d0f0 Signed-off-by: Sahina Bose <sabose@redhat.com>
* plugins: Enhanced volume status with quota statusSahina Bose2014-04-292-13/+23
| | | | | | | | | Added an optional parameter to query quota status Added command to nrpe.cfg Change-Id: I9f60ed1a98cb2ca59b799cf9c09e3621b7bd8c0c Signed-off-by: Sahina Bose <sabose@redhat.com>
* rhs-nagios-addons: Plugin for volume statusndarshan2014-04-291-0/+69
| | | | | | | | This patch adds a plugin for volume status, it makes use of gluster command "gluster volume info". Signed-off-by: ndarshan <dnarayan@redhat.com> Change-Id: I6984d52c998bf1b832654b99abc3e2843b54f5ac
* Enhanced check_disk_and_inode pluginTimothy Asir2014-04-291-0/+187
| | | | | | | | | | | Add option to include / exclude disk Add option to get disk usage without inode usage Add unit test Change-Id: Ifa8c13033269fea184d2dedc720dba4239770336 Signed-off-by: Timothy Asir <tim.gluster@gmail.com> Reviewed-on: https://cuckoo.blr.redhat.com:8443/18 Reviewed-by: Sahina Bose <sabose@redhat.com>
* plugins:Fix to handle sadf not accepting time range, test case additionndarshan2014-04-2912-162/+3138
| | | | | | | | | | | | | This patch handles the issue of sadf not accepting time range when used with -x (xml output) option(seen in version 9.0.4). Added unit-test for memory, cpu, swap, network plugins and refactored them. Change-Id: Ie7c2ecfbb38060f236a6faed606bce0aedd27d7a Signed-off-by: ndarshan <dnarayan@redhat.com> Reviewed-on: https://cuckoo.blr.redhat.com:8443/14 Reviewed-by: Bala FA <barumuga@redhat.com> Tested-by: Bala FA <barumuga@redhat.com>
* plugins: remove server pluginsBala.FA2014-04-292-68/+0
| | | | | | | | These plugins are moved to nagios-server-addons repository Change-Id: Ie5daa7736e2acfbdf44e5c9c782d8c9b54fc413d Signed-off-by: Bala.FA <barumuga@redhat.com> Reviewed-on: https://cuckoo.blr.redhat.com:8443/7
* plugins: import plugins from githubBala.FA2014-04-293-0/+259
| | | | | | | | | All plugins are imported from https://github.com/gluster-rhsc/nagios-plugin.git Change-Id: I9880becafccc79280873039e317b4afde747806c Signed-off-by: Bala.FA <barumuga@redhat.com> Reviewed-on: https://cuckoo.blr.redhat.com:8443/4
* Initial commitv0.1.0Bala.FA2014-04-296-0/+526
Change-Id: I45f91b2017ed59b057d21de52fd94c5c83fcf86f Signed-off-by: Bala.FA <barumuga@redhat.com>