iclevels.conf not exist
Hi guys,
I am trying to prepare some pre-configured template with WHM and cPanel.
This pre-configuration regards cPHulk notification which can be configured in Contact Manager.
I have found out that settings for Contact Manager/Notification are stored in /var/cpanel/iclevels.conf. The problem is that this file does not exist
The file /var/cpanel/clevels.conf exists.
Can you please where these settings are stored ??
During initial WHM configuration, I was asked about the notification from cPHulk. Can I pre-configure this as well ?
Many thanks for your help.
-
Hello, That file does not exist until the 'Save' button is clicked inside WHM -> Contact Manager. There's a couple of ways you can approach this for your needs: 1. Configure the contact levels the way you want on a server, then copy the resulting /var/cpanel/clevels.conf and /var/cpanel/ icontact_event_importance.json files to your template 2. Use the WHM command line API utils to set the levels on first boot. 0 -
Hello, That file does not exist until the 'Save' button is clicked inside WHM -> Contact Manager. There's a couple of ways you can approach this for your needs: 1. Configure the contact levels the way you want on a server, then copy the resulting /var/cpanel/clevels.conf and /var/cpanel/ icontact_event_importance.json files to your template 2. Use the WHM command line API utils to set the levels on first boot.
Thank you for reply. I went through initial setup and I clicked save in Contact Manager / Notification but it seems this file is still missing. For my testing, I'm using trial cPanel licence. Does it even matter ? I rebooted the server couple of times and settings are saved but there is no file such as iclevels.conf so have no idea where these settings can be stored0 -
I rebooted the server couple of times and settings are saved but there is no file such as iclevels.conf so have no idea where these settings can be stored
Hello, It looks like you might be using the wrong name. The file name is "clevels.conf" and is located at:/var/cpanel/clevels.conf
Could you verify if you can find the file with this name? Thank you.0 -
Hello, It looks like you might be using the wrong name. The file name is "clevels.conf" and is located at:
/var/cpanel/clevels.conf
Could you verify if you can find the file with this name? Thank you.
Hi Michael, Yes, file clevels.conf exist in the location you provided but according to what you guys said in this topic: Ability to edit "contact manager" options via command line [QUOTE="cPanelBrianO"> Editing the priority levels for the contact types (pager, email, etc) is done within: /var/cpanel/clevels.conf Editing the individual alert levels for the various notifications is done within:/var/cpanel/iclevels.conf
So I'm concerned about iclevels.conf because it does not exist and I can't setup alert levels for various notifications. Hope this is now clear.0 -
Hello @Luke J, That was true at the time (2014), but the functionality of that file has since been replaced by: /var/cpanel/icontact_event_importance.json
Also, you may find WHM API 1 much easier to use for making changes to the "Contact Manager" configuration, as using WHM API 1 will always update to the correct path, should it change again in the future. Here are the two specific WHM API 1 functions you would use: WHM API 1 Functions - set_application_contact_event_importance - Software Development Kit - cPanel Documentation WHM API 1 Functions - set_application_contact_importance - Software Development Kit - cPanel Documentation Let us know if you have any additional questions. Thanks!0
Please sign in to leave a comment.
Comments
5 comments