Bug 1085331 - [Nagios] cliking on Cluster utilization graph results in a error when there are no volumes are present in the cluster.
Summary: [Nagios] cliking on Cluster utilization graph results in a error when there a...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: nagios-server-addons
Version: 2.1
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Sahina Bose
QA Contact: RamaKasturi
URL:
Whiteboard:
Depends On:
Blocks: 1087818
TreeView+ depends on / blocked
 
Reported: 2014-04-08 11:42 UTC by RamaKasturi
Modified: 2015-05-13 18:15 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Known Issue
Doc Text:
Volume Utilization graph displays the error "perfdata directory for <host_directory> for <host_name> does not exist", when volume utilization data is not available.
Clone Of:
Environment:
Last Closed: 2015-02-17 09:11:41 UTC
Embargoed:
asrivast: needinfo-


Attachments (Terms of Use)
Attaching the screenshot for the same. (69.89 KB, image/png)
2014-04-08 11:42 UTC, RamaKasturi
no flags Details

Description RamaKasturi 2014-04-08 11:42:11 UTC
Created attachment 883985 [details]
Attaching the screenshot for the same.

Description of problem:
clicking on cluster utilization graph gives an error when there are no volumes present in the cluster.

Version-Release number of selected component (if applicable):
gluster-nagios-common-0.1.0-6.gitb73c5a2.el6.x86_64
nagios-server-addons-0.1.0-24.git7f06a5c.el6.x86_64
nagios-plugins-nrpe-2.14-6.el6.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Install nagios on rhs nodes, create a cluster.
2. Do not add any volumes to the cluster.
2. Run the discovery.py file 
3. Now open the nagios web-UI. 

Actual results:
Now, click on the graph next to cluster Utilization. It gives the error attached in the screenshot.

Expected results:
When clicked on graph next to cluster utilization, display some message which is relevant.

Additional info:

Comment 1 Sahina Bose 2014-05-26 10:57:42 UTC
This is the default error handler for pnp4nagios. When service performance data is not found, the error displayed is as in attachment.

To override this, we would need to build a custom error page and error handler and have an RHSC specific build for pnp4nagios. In my opinion, it's ok to go with the default error page as we are using the standard pnp4nagios build

Alok, Dusmant - please comment.

Comment 2 Dusmant 2014-05-27 06:24:24 UTC
As discussed over e-mail, we will document this behaviour (fixing it would require a good amount of effort and customization for the pnp4nagios and maintaining it for RHSC), so that customer does not get confused.

I have marked this bug with "requires_doc_text?".

Comment 4 Alok 2014-06-09 12:49:32 UTC
@Sahina, Please change the need_info on me as Dusmant has already updated the bug.

Comment 5 Shalaka 2014-06-18 05:47:55 UTC
Please add doc text for this known issue.

Comment 6 Sahina Bose 2014-06-24 09:34:17 UTC
This issue no longer exists when there are no volumes in the cluster.
When there are no volumes present - the Cluster Utilization service is not created.

However this issue could happen when the volume utilization service has not yet returned results. Hence leaving it open.

Comment 7 Shalaka 2014-06-25 13:22:08 UTC
Review and signoff edited doc text.

Comment 8 Sahina Bose 2014-09-17 05:26:08 UTC
Doc text looks fine

Comment 9 Sahina Bose 2015-02-17 09:11:41 UTC
The chances of this error has been reduced. Closing as WONTFIX for the case where volume utilization data is not present and graph cannot be displayed. The utilization data will be returned within 5 minutes, and the graphs will be shown properly


Note You need to log in before you can comment on or make changes to this bug.