You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by Andrew Onischuk <ao...@hortonworks.com> on 2014/10/15 15:51:06 UTC

Review Request 26747: Nagios password can be changed on the UI, but it's not reflected in Nagios Web itself (the password never updates)

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/26747/
-----------------------------------------------------------

Review request for Ambari and Dmytro Sen.


Bugs: AMBARI-7788
    https://issues.apache.org/jira/browse/AMBARI-7788


Repository: ambari


Description
-------

STR:

  * Deploy cluster with Nagios
  * Go to Services > Nagios > Configs
  * Change the password
  * Restart Nagios
  * Go to Services > Nagios > QuickLinks to access Nagios Web
  * You cannot log in with the new password (the original password still works).

Analysis:  
Ambari is not updating /etc/nagios/htpasswd.users file when Nagios is
restarted.

Workaround:  
If the user forgot the original password, then the password must be manually
reset on the host where Nagios resides.

    
    
    
    htpasswd /etc/nagios/htpasswd.users <nagios-admin-username> <new-password>
    


Diffs
-----

  ambari-server/src/main/resources/stacks/BIGTOP/0.8/services/NAGIOS/package/scripts/nagios.py ca2d64c 
  ambari-server/src/main/resources/stacks/HDP/1.3.2/services/NAGIOS/package/scripts/nagios.py 7756c47 
  ambari-server/src/main/resources/stacks/HDP/2.0.6/services/NAGIOS/package/scripts/nagios.py ca2d64c 
  ambari-server/src/test/python/stacks/1.3.2/NAGIOS/test_nagios_server.py 17f0dca 
  ambari-server/src/test/python/stacks/2.0.6/NAGIOS/test_nagios_server.py 58c04f3 

Diff: https://reviews.apache.org/r/26747/diff/


Testing
-------

mvn clean test


Thanks,

Andrew Onischuk


Re: Review Request 26747: Nagios password can be changed on the UI, but it's not reflected in Nagios Web itself (the password never updates)

Posted by Dmytro Sen <ds...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/26747/#review56708
-----------------------------------------------------------

Ship it!


Ship It!

- Dmytro Sen


On Окт. 15, 2014, 1:51 п.п., Andrew Onischuk wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/26747/
> -----------------------------------------------------------
> 
> (Updated Окт. 15, 2014, 1:51 п.п.)
> 
> 
> Review request for Ambari and Dmytro Sen.
> 
> 
> Bugs: AMBARI-7788
>     https://issues.apache.org/jira/browse/AMBARI-7788
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> STR:
> 
>   * Deploy cluster with Nagios
>   * Go to Services > Nagios > Configs
>   * Change the password
>   * Restart Nagios
>   * Go to Services > Nagios > QuickLinks to access Nagios Web
>   * You cannot log in with the new password (the original password still works).
> 
> Analysis:  
> Ambari is not updating /etc/nagios/htpasswd.users file when Nagios is
> restarted.
> 
> Workaround:  
> If the user forgot the original password, then the password must be manually
> reset on the host where Nagios resides.
> 
>     
>     
>     
>     htpasswd /etc/nagios/htpasswd.users <nagios-admin-username> <new-password>
>     
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/resources/stacks/BIGTOP/0.8/services/NAGIOS/package/scripts/nagios.py ca2d64c 
>   ambari-server/src/main/resources/stacks/HDP/1.3.2/services/NAGIOS/package/scripts/nagios.py 7756c47 
>   ambari-server/src/main/resources/stacks/HDP/2.0.6/services/NAGIOS/package/scripts/nagios.py ca2d64c 
>   ambari-server/src/test/python/stacks/1.3.2/NAGIOS/test_nagios_server.py 17f0dca 
>   ambari-server/src/test/python/stacks/2.0.6/NAGIOS/test_nagios_server.py 58c04f3 
> 
> Diff: https://reviews.apache.org/r/26747/diff/
> 
> 
> Testing
> -------
> 
> mvn clean test
> 
> 
> Thanks,
> 
> Andrew Onischuk
> 
>