Introduction
All of the configuration files for Imunify products are located here:
/etc/sysconfig/imunify360
.
├── cpanel
│ ├── conf
│ ├── imunify360.conf
│ └── imunify-antivirus.conf.rpmsave
├── custom_billing.config.rpmsave
├── imunify360.config
├── imunify360.config.old
├── imunify360.config.rpmnew
├── imunify360.config.rpmsave
└── malware-filters-admin-conf
├── .backup
├── ignored.txt
├── processed
└── watched.txt
The highlighted file is the main configuration file. Any value added to this file will override the default values. In the config file, it is possible to set up Imunify360 configuration options. For a complete list of available configuration options and their explanation you can refer to this link from Imunify's official documentation:
https://docs.imunify360.com/config_file_description/
How To Apply Configuration Options From The Command-Line?
In order to apply changes via the command-line interface (CLI), you can use the following command:
imunify360-agent config update '{"SECTION": {"parameter": value}}
For example, if you want to set MALWARE_SCAN_INTENSITY.cpu = 1
, MALWARE_SCAN_INTENSITY.ram = 1024
, MALWARE_SCAN_INTENSITY.user_scan_cpu = 1
from a command line, then you should execute the following commands:
imunify360-agent config update '{"MALWARE_SCAN_INTENSITY": {"cpu": 1}}'
imunify360-agent config update '{"MALWARE_SCAN_INTENSITY": {"ram": 1024}}'
imunify360-agent config update '{"MALWARE_SCAN_INTENSITY": {"user_scan_cpu": 1}}'
After running these commands you can confirm that the changes have been applied by running this command:
grep -Ei "(cpu|\bram)" /etc/sysconfig/imunify360/imunify360.config
cpu: 2
ram: 2048
user_scan_cpu: 2
cpu_limit: 2
ram_limit: 500