Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

iclevels.conf not exist

Discussion in 'General Discussion' started by Luke J, Oct 11, 2016.

  1. Luke J

    Luke J Registered

    Joined:
    Oct 11, 2016
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    London
    cPanel Access Level:
    Root Administrator
    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.
     
  2. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,569
    Likes Received:
    45
    Trophy Points:
    308
    cPanel Access Level:
    Root Administrator
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Luke J

    Luke J Registered

    Joined:
    Oct 11, 2016
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    London
    cPanel Access Level:
    Root Administrator

    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 stored
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,442
    Likes Received:
    1,961
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    It looks like you might be using the wrong name. The file name is "clevels.conf" and is located at:

    Code:
    /var/cpanel/clevels.conf
    Could you verify if you can find the file with this name?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Luke J

    Luke J Registered

    Joined:
    Oct 11, 2016
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    London
    cPanel Access Level:
    Root Administrator
    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

    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.
     
  6. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,442
    Likes Received:
    1,961
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @Luke J,

    That was true at the time (2014), but the functionality of that file has since been replaced by:

    Code:
    /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!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice