summaryrefslogtreecommitdiffstats
path: root/plugins/check_disk_and_inode.py
Commit message (Collapse)AuthorAgeFilesLines
* plugin::check_disk_and_inode: fix backward compatibility in perfdatandarshan2014-11-261-1/+2
| | | | | | | | | | | | | | changed the label for brick utilization perfdata from "Virtual" to the brick mount path. This is done to retain backward compatibility. Change-Id: I45c5058d254ecb4ee23a28e093bed3ebf378db2f Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1143995 Signed-off-by: ndarshan <dnarayan@redhat.com> Reviewed-on: http://review.gluster.org/9202 Reviewed-by: Bala FA <barumuga@redhat.com> Reviewed-by: Kanagaraj M <kmayilsa@redhat.com> Reviewed-by: Sahina Bose <sabose@redhat.com>
* gluster-nagios-addons: Add thin lv details to check_disk_and_inode plugin.ndarshan2014-11-181-22/+104
| | | | | | | | | | | | | | | | check_disk_and_inode plugin is modified to show the underlying thin pool details when invoked with -t option. This is used to get the brick utilization. If the brick is made up of thin lv then it returns the virtual and actual utilization detail else the plugin returns the normal output. Change-Id: I2a2853a1b6e3e91c0178c3ed1cbc34de88ce3da2 Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1143995 Signed-off-by: ndarshan <dnarayan@redhat.com> Reviewed-on: http://review.gluster.org/9115 Reviewed-by: Sahina Bose <sabose@redhat.com> Reviewed-by: Bala FA <barumuga@redhat.com>
* Add option to show critical and warning disks in the statusTimothy Asir2014-07-101-9/+23
| | | | | | | | | | | | | | | | | | Currently the critical status message shows the sum of all usage which is actually confusing the user when there are multiple disks available and any/few disk status moved to critical state. This patch adds option to show critical and warning disk details in the status message whenever there is any change in disk status to critical or warning. Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1116710 Change-Id: I7a44f669a4a554aff748c2758bcf6a104365aed8 Signed-off-by: Timothy Asir <tjeyasin@redhat.com> Reviewed-on: http://review.gluster.org/8273 Tested-by: Timothy Asir <tim.gluster@gmail.com> Reviewed-by: Kanagaraj M <kmayilsa@redhat.com> Reviewed-by: Sahina Bose <sabose@redhat.com>
* fix brick utilization graph errorTimothy Asir Jeyasingh2014-06-251-1/+1
| | | | | | | | | | | | | | Remove unit type from disk utilization plugin perf data which is not allowed by pnp4nagios which causes failure in creating RRD file. Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1112966 Change-Id: I508f724da5a7896e310699180f319c0195378ca4 Signed-off-by: Timothy Asir Jeyasingh <tjeyasin@redhat.com> Reviewed-on: http://review.gluster.org/8170 Tested-by: Timothy Asir <tim.gluster@gmail.com> Reviewed-by: Kanagaraj M <kmayilsa@redhat.com> Reviewed-by: Sahina Bose <sabose@redhat.com>
* Add status information to show disk usageTimothy Asir2014-06-101-77/+173
| | | | | | | | | | | | | | | | | | | | | | 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>
* plugins: fix pep8 error in check_disk_inodeKanagaraj M2014-06-051-2/+2
| | | | | | | | | | Fix pep8 issue. Change-Id: Ib4cb81e74f2fa05e68be71e6c33b58ab64713eac Bug-Url: https://bugzilla.redhat.com/1083849 Signed-off-by: Kanagaraj M <kmayilsa@redhat.com> Reviewed-on: http://review.gluster.org/7990 Reviewed-by: Shubhendu Tripathi <shtripat@redhat.com>
* Send brick path not found error when a brick path not found.Timothy Asir2014-06-041-2/+14
| | | | | | | | | | | Change-Id: Ib8d40b862d0102d352af472c7862e79ac0e085d8 Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1083849 Signed-off-by: Timothy Asir <tjeyasin@redhat.com> Reviewed-on: http://review.gluster.org/7930 Tested-by: Timothy Asir <tim.gluster@gmail.com> Reviewed-by: Shubhendu Tripathi <shtripat@redhat.com> Reviewed-by: Kanagaraj M <kmayilsa@redhat.com> Reviewed-by: Sahina Bose <sabose@redhat.com>
* Add performance data to have unit type for brick and disk usage.Timothy Asir2014-05-291-2/+2
| | | | | | | | | Bug-Url:https://bugzilla.redhat.com/show_bug.cgi?id=1081375 Change-Id: I5f3f97275c6a4d8ad3a28c8d7add0a2ed3253283 Signed-off-by: Timothy Asir <tjeyasin@redhat.com> Reviewed-on: http://review.gluster.org/7912 Tested-by: Timothy Asir <tim.gluster@gmail.com> Reviewed-by: Shubhendu Tripathi <shtripat@redhat.com>
* plugins: Fixed repeated warn/crit words in disk util pluginSahina Bose2014-05-261-21/+22
| | | | | | | | | | The disk utilization plugin output had repetition of words - Warn/Crit. Fixed this Change-Id: Idf5d657fd373189a1eb40c1f0d1b45ba4dd49e7b Bug-Url: https://bugzilla.redhat.com/1084421 Signed-off-by: Sahina Bose <sabose@redhat.com> Reviewed-on: http://review.gluster.org/7869
* fixed pep8 error in check_disk_and_inode.pyTimothy Asir2014-05-131-8/+8
| | | | | | | | Change-Id: I4a36319fd2d5bf15adc46a2ff37732a83dc0bd13 Signed-off-by: Timothy Asir <tjeyasin@redhat.com> Reviewed-on: http://review.gluster.org/7752 Tested-by: Timothy Asir <tim.gluster@gmail.com> Reviewed-by: Sahina Bose <sabose@redhat.com>
* Add disk and inode total usage in the performance dataTimothy Asir2014-05-121-8/+10
| | | | | | | | Change-Id: Ifc2b679a4f4e6f7ab50ba091befacb4194790ccf Signed-off-by: Timothy Asir <tjeyasin@redhat.com> Reviewed-on: http://review.gluster.org/7684 Reviewed-by: Sahina Bose <sabose@redhat.com> Tested-by: Sahina Bose <sabose@redhat.com>
* Enhanced check_disk_and_inode pluginTimothy Asir2014-04-291-120/+152
| | | | | | | | | | | 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-291-2/+10
| | | | | | | | | | | | | 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: import plugins from githubBala.FA2014-04-291-0/+195
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