Created attachment 879305 [details] Attaching screenshot for brick performance data Description of problem: performance data for the services brick, disk,Swap and volume does not have units associated with it. Version-Release number of selected component (if applicable): gluster-nagios-common-0.1.0-4.gitf3a2474.el6.x86_64 gluster-nagios-addons-0.1.0-9.git611be3b.el6.x86_64 How reproducible: Always Steps to Reproduce: 1. Add the nodes which you want to monitor to nagios server. 2. Create a volume. 3. Add bricks and volume to the configuration file so that they can be monitored. 4. Now click on any of the brick, volume.Swap and Disk utilization. Actual results: Perfomance data for all the above services does not have units assoicated with it. i.e (KB/MB/GB). Expected results: Perfomance data for all the above services should have units associated with it. Additional info:
Created attachment 879306 [details] screenshot for Disk utilization performance datqa
Created attachment 879308 [details] screenshot for Swap utilization performance data
Created attachment 879309 [details] screenshot for volume utilization performance data
Nagios is designed to allow plugins to return optional performance data in addition to normal status data to external applications for processing. It has some limitation like we can assign unit only for the initial data in the performance data filed and would not be possible to mention any unit for the subsequent data after ';' in the data series. Currently, the Swap and Volume utilization already has an unit associated with its initial performance data (which is called as usage/used). So we will add unit type only for brick and disk utilization. Patch sent to upstream for brick percent usage and disk percent usage to have unit associate with the performance data. http://review.gluster.org/7912
Verified and works fine with build gluster-nagios-addons-0.1.1-1.el6rhs.x86_64. The following gets displayed in nagios UI. Swap Utilization Performance Data:Used=0.00GB;1.60;1.80;0;2.00 Disk Utilization Performance Data: /boot=14.00%;80;90;0;1.0 /boot=1.00%;80;90;0;128016.0 /=13.00%;80;90;0;18.0 /=5.00%;80;90;0;1148304.0 /rhs/brick1=1.00%;80;90;0;40.0 /rhs/brick1=1.00%;80;90;0;20969472.0 /rhs/brick2=1.00%;80;90;0;40.0 /rhs/brick2=1.00%;80;90;0;20969472.0 /rhs/brick3=1.00%;80;90;0;40.0 /rhs/brick3=1.00%;80;90;0;20969472.0 /rhs/brick4=1.00%;80;90;0;40.0 /rhs/brick4=1.00%;80;90;0;20969472.0 Brick Utilization Performance Data: /rhs/brick1=1.00%;80;90;0;40.0 Volume Utilization Performance Data: utilization=0%;70;90 total=83836970 used=67168 free=83769802 For brick,disk and volume units are displayed in percentage and for swap it is in GB.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHEA-2014-1277.html