The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

eximon - Exim Monitor installation on cPanel machines (CentOS 7)

Discussion in 'Workarounds and Optimization' started by cPanelTristan, Aug 10, 2015.

  1. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Hi,

    Next month, I will be presenting at the cPanel Conference in Denver for my topic on Exim Optimization. During the course of preparing that topic, I decided to try installing eximon on a CentOS 7 machine.

    The following tutorial covers how to install this component, but I do need to note that X-Windows is installed in the process on the cPanel box. The tool is useful enough to warrant having X-Windows installed, although we typically would not encourage installing interfaces onto a cPanel-based machine. As any component not provided by default, this component would have the caveat to use or install at your own risk.

    1. Grabbing exim monitoring script (exim-mon):

    The only copy is in the Fedora project:

    Code:
    wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/exim-mon-4.84-4.el7.x86_64.rpm
    2. Install libXaw, required for the script to install:

    Code:
    yum install libXaw
    3. Install the rpm itself now:

    Code:
    rpm -Uvh exim-mon-4.84-4.el7.x86_64.rpm
    4. Install X Windows

    Code:
    yum -y groupinstall "X Window System"
    5. Configuration of eximon

    Create the file at /usr/local/eximon.conf by taking the copy from https://github.com/Exim/exim/blob/master/src/OS/eximon.conf-Default location

    In the file, change this line:

    Code:
    EXIMON_BINARY="${EXIMON_BINARY-$0.bin}"
    To this:

    Code:
    EXIMON_BINARY="/usr/sbin/eximon.bin"
    Now, create this directory:

    Code:
    mkdir -p /etc/exim
    Then symlink the exim configuration into that folder location (this is because that's where eximon expects the file to be found):

    Code:
    ln -s /etc/exim.conf /etc/exim/exim.conf
    6. Getting X Windows working:

    Code:
    touch /root/.Xauthority
    Now, SSH to the box from your system:

    Code:
    ssh -X root@servername
    eximon
    Of note, I tested this on Mac OSX 10.10 and 10.8 where I also had X Windows setup for the connection (I setup X Windows some time ago on the Mac, so I don't have the steps for that portion). If using another system for connecting, that system also needs to have X Windows working on it.
     
  2. Osama Tariq

    Osama Tariq Well-Known Member

    Joined:
    Nov 27, 2014
    Messages:
    187
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Lahore, Pakistan
    cPanel Access Level:
    Root Administrator
    Twitter:
    Getting:
     
Loading...

Share This Page