summaryrefslogtreecommitdiffstats
path: root/plugins/check_vol_utilization.py
Commit message (Collapse)AuthorAgeFilesLines
* PEP8: Fixed pep8 issues in plugins/check_vol_utilization.pydarshan n2015-08-161-3/+3
| | | | | | | | Change-Id: Iaac5ab54e3d5f9efbefadd8c3bb98209839e87bf Signed-off-by: darshan n <dnarayan@redhat.com> Reviewed-on: http://review.gluster.org/9593 Reviewed-by: Ramesh N <rnachimu@redhat.com> Reviewed-by: Sahina Bose <sabose@redhat.com>
* nagios-addons: Using ctypes to call gfapiRamesh Nachimuthu2014-08-141-18/+25
| | | | | | | | | | | | Removing the volCap.c which was used to call libgfapi and calling libgfapi directly from python using ctypes. Change-Id: Ia78f212c769c34e5cb991e429623946a4256e2af Signed-off-by: Ramesh Nachimuthu <rnachimu@redhat.com> Reviewed-on: http://review.gluster.org/8090 Reviewed-by: Sahina Bose <sabose@redhat.com> Reviewed-by: Bala FA <barumuga@redhat.com>
* Fix pep8 errorsv0.1.1Timothy Asir Jeyasingh2014-06-261-8/+8
| | | | | | | | 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>
* gluster-nagios-addons: Volume utilization returns negative values when size ↵Nishanth Thomas2014-06-201-19/+13
| | | | | | | | | | | | | | | | in TB data overflow error in volcap.c. statvfs returns unsigned long which is boxed into int causing the error Change-Id: I85a1e0d584bf4d9e73b2bfebebea83cd9fbddf68 Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1111558 Signed-off-by: Nishanth Thomas <nthomas@redhat.com> Reviewed-on: http://review.gluster.org/8136 Tested-by: Nishanth Thomas <nishusemail@gmail.com> Reviewed-by: Shubhendu Tripathi <shtripat@redhat.com> Reviewed-by: Bala FA <barumuga@redhat.com> Reviewed-by: Sahina Bose <sabose@redhat.com>
* gluster-nagios-addons:Added more checks to provide details in plugin outputNishanth Thomas2014-06-041-4/+19
| | | | | | | | | | | | | | | | check_proc_status.py - when a volume is down, brick status was always showing up unless initiate a pre-scheduled check. Removed an unnecessary check to fix this issue check_vol_utilization.py - modified the volume utilization plugin so that the plugin ouput is meaninful when a volume is nonexistent or stopped Change-Id: I04b8d8fc5ae19b2ae9f4969a7239a9449f2acd0f Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1083451 Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1090854 Signed-off-by: Nishanth Thomas <nthomas@redhat.com> Reviewed-on: http://review.gluster.org/7959 Reviewed-by: Sahina Bose <sabose@redhat.com> Tested-by: Sahina Bose <sabose@redhat.com>
* gluster-nagios-addons : modified the plugin output for UNKNOWNNishanth Thomas2014-05-131-5/+6
| | | | | | | | | | | | Modified the plugin output when there is failure from ligfapi and not able to retrieve the data Bug-Url:https://bugzilla.redhat.com/show_bug.cgi?id=1095611 Change-Id: I3b48772b80882c67d4260c036090961a97347390 Signed-off-by: Nishanth Thomas <nthomas@redhat.com> Reviewed-on: http://review.gluster.org/7712 Reviewed-by: Sahina Bose <sabose@redhat.com> Tested-by: Nishanth Thomas <nishusemail@gmail.com>
* plugins: Added the files for volume utilization and status plugins fixed few ↵Nishanth Thomas2014-04-291-0/+105
issues with code fixed the pep8 issues Change-Id: I2c2b32e7bbdc30a7b68acc1ce4e0468fd53a3050 Signed-off-by: Nishanth Thomas <nthomas@redhat.com> Reviewed-on: https://cuckoo.blr.redhat.com:8443/42 Reviewed-by: Sahina Bose <sabose@redhat.com> Tested-by: Sahina Bose <sabose@redhat.com>