Red Hat Bugzilla – Bug 1111549
Trends are NOT working if the "Name" field in RHSC is NOT matching the 'Hostname' in Nagios
Last modified: 2018-08-14 07:15:57 EDT
Description of problem: Trends are NOT working if the "Name" field in RHSC is NOT matching the 'Hostname' in Nagios In RHSC, there is a field called 'Name' in Host popup. Currently, this field SHOULD match the host name in Nagios for the Trends to work in RHSC. IMO, this is not the right way to map. Since the "Name" field can have any unique name as per the admin's choice, mapping this field with Nagios for the pnp4nagios charts to work is NOT a good idea. Since there is a separate field below that called "Address" in which the IP address, or resolvable hostname of the host is expected as the input, we can't expect the "Name" field also to have the same Hostname value. The Admin should have the flexibility to give any value in the "Name" field as per his/her choice for the servers in a cluster for various reasons. Just for making RHSC Trends to work with pnp4nagios, we can't mandate them to enter Hostname in the "Name" field as well. When we execute the auto discovery script (/usr/lib64/nagios/plugins/gluster/discovery.py) from the RHSC + Nagios Server, the conf files are generated with the resolvable hostname of the servers, which is fine. The same resolvable Hostname or it's corresponding address will definitely be present in the "Address" field of ANY host added to a cluster in RHSC. So we should have ideally mapped it to the same "Address" field instead of "Name" field. Version-Release number of selected component (if applicable): rhsc-3.0.0-0.11.el6_5.noarch How reproducible: 100% Steps to Reproduce: 1. In RHSC, click on "New Host" and enter ANY name of your choice in "Name" field and enter the Hostname or IP of the server in "Address" field. 2. Add 2 servers in the same way 3. Try to get the Trends for the Hosts Actual results: Trends are NOT working if the "Name" field is NOT matching the Hostname of the server which is present in the NAgios conf files. Expected results: Trends should work irrespective of the value in the "Name" field. Additional info:
Review and signoff edited doc text.
Doc text looks good to me.
We should find a proper fix for this. RHSC should configures Nagios server with the host names using which it's managing the nodes in the cluster. OR Auto discovery should be able to access the data from RHSC. Ramesh is working on this and it might take some time to choose the correct approach. So, pushing it out to 3.0.3
Thank you for your report. This bug is filed against a component for which no further new development is being undertaken