Introduction
The Contact Manager provides options to configure which level of alerts is sent to each contact point. This configuration is typically done through the WHM "Contact Manager" interface, but it can also be set up via the command line. There is no API method available for configuring the contact settings; instead, these settings can be configured by creating a specific file:
/var/cpanel/clevels.conf
The contents of this file specify the contact methods and the corresponding alert levels associated with each contact:
CONTACTUIN 2
CONTACTSLACK 3
CONTACTPOSTURL 3
CONTACTPUSHBULLET 2
CONTACTICQ 2
CONTACTEMAIL 3
CONTACTPAGER 1
Procedure
To make changes to the contact settings using the command line, follow this procedure:
- Connect to your server using SSH as the root user
- Create the clevels.conf file if it does not already exist:
touch /var/cpanel/clevels.conf
- Use your preferred text editor to edit the clevels.conf file:
/var/cpanel/clevels.conf
- To adjust the contact levels, modify the numbers next to the contact methods. The following key indicates which alert level each number corresponds to:
0 - None
1 - High Only
2 - High and Medium Only
3 - All - Save the file and restart the cPanel service for the changes to take effect:
/scripts/restartsrv_cpsrvd --hard
Comments
0 comments
Article is closed for comments.