Issue
For proper operation of Imunify360 stand-alone on servers with ISPmanager, it is necessary to use additional integration scripts. And adjust Imunify360 to work with users and domains on the server.
Environment
- Imunify360 stand-alone
- ISPmanager panel
- Any OS
Solution
The scripts have been added to the attachments in this article. Its configuration is described below.
Users and domains integration.
1. Make it executable:
chmod +x /etc/sysconfig/imunify360/ispmanager_integration.py
2. Manually print all users on the server:
# /etc/sysconfig/imunify360/ispmanager_integration.py users
{"data": [{"id": 6001, "username": "userlitco"}, {"id": 6002, "username": "userdenba"}], "metadata": {"result": "ok"}}
3. List all domains:
# /etc/sysconfig/imunify360/ispmanager_integration.py domains
{"data": {"domain.com": {"document_root": "www/domain.com", "owner": "userlitco"}, "domain.ru": {"document_root": "www/domain.ru", "owner": "userdenba"}}, "metadata": {"result": "ok"}}
Add it to integration.conf file:
# cat /etc/sysconfig/imunify360/integration.conf
...
[integration_scripts]
users = /etc/sysconfig/imunify360/ispmanager_integration.py users
domains = /etc/sysconfig/imunify360/ispmanager_integration.py domains
...
SSL cache integration.
Imunify integration script for ISPManager. Collect users' certificates that were created/imported via ISPmanager and add them to ssl-cache. The script runs as follows:
python3 ./cache_ssl_certs.py
The appearance of new certificates can then be checked using the command:
im360-ssl-cache
The script is intended to run without args and doesn't output anything to stdout. If an error was encountered, the traceback will be printed.
Useful links
- https://docs.ispsystem.com/ispmanager6-lite/
- https://docs.imunify360.com/installation/#imunify360-stand-alone-non-panel-generic-panel-integration
Comments
0 comments
Please sign in to leave a comment.