Background
Some users do not want to use some of the provided applications and would like to remove them from being visible in the UI
Procedure
For this document we will use Cacti as the example application to disable from the UI.
- First you will need to login as the portal administrator. The default user is root but if you changed this, you will need to use the updated user account.
- Go to Portal Navigation
- Select Edit Navigation.
- Scroll down to Advanced and expand the + symbol. Then Right click the Network Graphing item and select Delete Node
- Do the same for the Network Map which is also part of Cacti.
- Now we want to replace the Cacti portlet as the default on the Advanced tab. Right click the Advanced tab and select Edit Node's Page
- Hover over the Cacti portlet placeholder and click the red X and confirm the deletion.
- Now use the Page Editor to drag the NMS Nedi portlet from the Groundwork Portlets to the empty page template.
- Add permissions so that the new portlet is visible when users click on Advanced. The default is Groundwork Administrators and *.
- Click the save button symbol on the top of the Page Editor.
- Click Save at the bottom of the Portal Navigation dialog.
- Open the User and Group Management window.
- Select Membership Management and then the edit button symbol next to a Membership that has access to Cacti. Uncheck the box next to Cacti and then save.
- This should be repeated for each Membership that has the box for Cacti checked.
- You can now log in as a user other than root and navigate to the Advanced tab. You should no longer see the pages for Network Graphing and Network Map. Also the default portlet for Advanced should now be Nedi.
- Since we are no longer using the cacti application, it makes sense to also disable related processes like the cronjob and feeder:
run as root
crontab -l -u nagios | sed -e '/cacti/s/^/#/' | crontab -u nagios - touch /usr/local/groundwork/core/services/feeder-cacti/down /usr/local/groundwork/common/bin/svc -d /usr/local/groundwork/core/services/feeder-cacti/ mv /usr/local/groundwork/config/cacti.properties{,.disabled}
- As a final step you can block apache from proxying requests to these URI's by adding a Location block to the httpd.conf:
/usr/local/groundwork/apache2/conf/httpd.conf
<Location */nms-cacti/*> Order deny,allow deny from all </Location>
This will require a restart of apache to take affect.
run as rootservice groundwork restart apache