Introduction
All of the configuration files for Imunify products are located here:
/etc/sysconfig/imunify360
├── cpanel
│ ├── antivirus_conf
│ │ ├── antivirus.png
│ │ └── install.json
│ └── imunify-antivirus.conf
├── custom_billing.config
├── imunify360.config
├── imunify360.config.d
│ ├── 10_on_first_install.config
│ └── 90-local.config -> ../imunify360.config
├── imunify360.config.defaults.example
├── imunify360.config.old
├── imunify360-merged.config
└── malware-filters-admin-conf
├── ignored.txt
├── pd-combined.txt -> /etc/sysconfig/imunify360/malware-filters-admin-conf/processed/ignored/pd-combined.txt
├── processed
│ ├── basedirs-list.txt
│ ├── ignored
│ │ ├── av-admin-paths.txt
│ │ ├── av-admin.txt
│ │ ├── av-internal.txt
│ │ └── pd-combined.txt
│ └── watched
│ ├── av-admin.txt
│ └── av-internal.txt
└── watched.txt
The highlighted files are the main configuration files. Any value added to these files will override the default values. In the config files, it is possible to set up Imunify360 configuration options. For a complete list of available configuration options and their explanation you can refer to these links from Imunify's official documentation:
Imunify360's Documentation: Config File Description
Imunify360's Documentation: Overridable config
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:
root@server [~]# grep -Ei "(cpu|\bram)" /etc/sysconfig/imunify360/imunify360.config
cpu: 2
ram: 2048
user_scan_cpu: 2
cpu_limit: 2
ram_limit: 500