Applies To
- Zenoss 4.2.3
Summary
To change the default password for one or more hubs, follow the one of the procedures below appropriate to your scenario.
Scenario I: A Single-Server Zenoss Deployment
Procedure
A. Log into the Zenoss web UI to change the hub password
- Navigate to Advanced > Collectors
- Click on the first localhost link
- Click on the Edit link in the left-hand navigation bar
- Update the ZenHub Password field and click Save
B. Log into the Zenoss master server to update the hub and collector configuration files
- Switch to the zenoss user:
# su - zenoss - Stop Zenoss:
$ zenoss stop - Go to the Zenoss configuration directory:
$ cd $ZENHOME/etc - Update the hubpasswd file with the new password:
$ echo 'admin:NEW-PASSWORD' > hubpasswd - Update the daemon configuration files to use the new password:
$ sed -i 's/^#*hubpassword .*/hubpassword NEW-PASSWORD/' *.conf - Start Zenoss:
$ zenoss start
Scenario II: Multiple Hubs with the SAME Hub Password for All Hubs
Procedure
A. Log into the Zenoss web UI to change the hub passwords
- Navigate to Advanced > Collectors
- For each Hub:
- Click on the link to the hub
- Click on the Edit link in the left-hand navigation bar
- Update the ZenHub Password field with the new password and click Save
B. Log into the Zenoss master server to update hub and collector configuration files
- Switch to the zenoss user:
# su - zenoss - Update the hubpasswd file with the new password:
$ echo 'admin:NEW-PASSWORD' > $ZENHOME/etc/hubpasswd - Update all hubs and collectors with the new configuration:
$ dc-admin update
Note: Depending on the number of remote hubs and collectors. this may be a lengthy process.Note: If you have customized any settings in $ZENHOME/etc/global.conf, we strongly recommend that you verify those settings on all remote hubs and collectors once the update is complete.
Scenario III: Multiple Hubs with a DIFFERENT Hub Password for Each Hub
Procedure
A. Log into the Zenoss web UI to change the hub passwords
- Navigate to Advanced > Collectors
- For each hub:
- Click on the link to the hub
- Click on the Edit link in the left-hand navigation bar
- Update the ZenHub Password field with the new password and click Save
B. Log into the Zenoss master server to update hub and collector configuration files
- Switch to the zenoss user:
# su - zenoss - Update the hub password for the master server as set in step A.2 above:
$ echo 'admin:NEW-HUB-PASSWORD' > $ZENHOME/etc/hubpasswd - Update all hubs and collectors with the new password and regenerate their configuration files:
$ dc-admin update
Note: depending on the number of remote hubs and collectors. this may be a lengthy processNote: If you have customized any settings in $ZENHOME/etc/global.conf, we strongly recommend that you verify those settings on remote hubs and collectors once the update is complete - Get a list of all the remote hubs:
$ dc-admin --collector-pattern NONE list | grep -v localhost - Run the following command for each remote hub, specifying the appropriate hub-specific password as set in step A.2.c above:
$ ssh Hub-Hostname 'echo "admin:NEW-HUB-PASSWORD" > $ZENHOME/etc/hubpasswd' - Restart the Zenoss daemons on all remote hubs and collections:
$ dc-admin --no-master restart
C. Notes on subsequent configuration changes
- When adding a new hub:
- Be sure to specify a new Hub Password in the Add Hub diallog
- Once the hub has been added successfully, run the following command on the master server as the zenoss user:
$ ssh Hub-Hostname 'echo "admin:NEW-HUB-PASSWORD" > $ZENHOME/etc/hubpasswd; zenoss restart'
- After performing a global update using dc-admin update (for example, after installing a patch set or ZenPack):
- Repeat steps and B.4 – B.6 above on the master server as the zenoss user
Comments