Bug 1081375

Summary: [Nagios] - Performance data for the services brick, Disk,swap and volume utilization does not have the units associated with it.
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: RamaKasturi <knarra>
Component: gluster-nagios-addonsAssignee: Timothy Asir <tjeyasin>
Status: CLOSED ERRATA QA Contact: RamaKasturi <knarra>
Severity: unspecified Docs Contact:
Priority: medium    
Version: rhgs-3.0CC: dpati, esammons, kmayilsa, nlevinki, rhs-bugs, sabose, sdharane
Target Milestone: ---   
Target Release: RHGS 3.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: gluster-nagios-addons-0.1.1-1.el6rhs Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-09-22 19:08:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Attaching screenshot for brick performance data
none
screenshot for Disk utilization performance datqa
none
screenshot for Swap utilization performance data
none
screenshot for volume utilization performance data none

Description RamaKasturi 2014-03-27 06:21:32 UTC
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:

Comment 1 RamaKasturi 2014-03-27 06:22:13 UTC
Created attachment 879306 [details]
screenshot for Disk utilization performance datqa

Comment 2 RamaKasturi 2014-03-27 06:22:44 UTC
Created attachment 879308 [details]
screenshot for Swap utilization performance data

Comment 3 RamaKasturi 2014-03-27 06:23:33 UTC
Created attachment 879309 [details]
screenshot for volume utilization performance data

Comment 5 Timothy Asir 2014-05-28 13:05:53 UTC
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

Comment 6 RamaKasturi 2014-06-03 16:20:08 UTC
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.

Comment 8 errata-xmlrpc 2014-09-22 19:08:03 UTC
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