CentOS V5-6

Installation via Devo repository

  1. Add the Devo repository to the system repository list. This only needs to be performed once.

  2. Create the following file:

    /etc/yum.repos.d/logtrust.repo file

    [logtrust]
    name=logtrust
    baseurl=http://repository.logtrust.net/rpms/
    enabled=1
    gpgcheck=1
    gpgkey=http://repository.logtrust.net/PublicKey
  3. Import the Devo repository public key. This only needs to be performed once. 

    sudo rpm --import http://repository.logtrust.net/PublicKey
  4. Download the Devo packages found here:
  5. Install the packages using the following command:

    sudo yum install logtrust-system logtrust-monitor
  6. Configure the Devo packages using the following commands:

    • logtrust-system

      sudo logtrust-system-configure
    • logtrust-monitor

      sudo logtrust-monitor-configure

Update via Devo repository

To upgrade to the latest version of any Devo package, follow the same procedure as for a standard distribution package. Below is an example for RPM-based distributions:

# yum --enablerepo=logtrust clean metadata
# yum update logtrust-system
# logtrust-system-configure

Installation via .rpm packages

Install the following RPM packages:

  • logtrust-system

    sudo rpm -ivh http://repository.logtrust.net/rpms/logtrust-system.rpm
    
  • logtrust-monitor

    sudo rpm -ivh http://repository.logtrust.net/rpms/logtrust-monitor.rpm
    

Modifying the configuration of a Devo package

After the packages have been installed, you can access the configuration options by running the following commands:

  • logtrust-system

    sudo logtrust-system-configure
    
  • logtrust-monitor

    sudo logtrust-monitor-configure
    

Uninstalling a Devo package

There are two command formats for removing a package:

  • logtrust-system

    yum erase logtrust-system

    Or:

    rpm -e logtrust-system
  • logtrust-monitor

    yum erase logtrust-monitor

    Or:

    rpm -e logtrust-monitor

Tested Versions

  • CentOS 6.x
  • CentOS 5.x

Common errors in CentOS

In all versions of CentOS, SELinux is disabled by default. To check the status of SELinux, run the command getenforce. If you are using CentOS with SELinux enabled, the SELinux policy must be updated to allow rsyslog to report its events to Devo. For more information, check out the syslog & SELinux configuration article.

Errors in CentOS 5.x

CentOS 5.x uses a syslog-ng daemon instead of rsyslog. Therefore, you need to uninstall syslog-ng and then install rsyslog. 

  1. Run the following commands to remove syslog-ng and install rsyslog:

    rpm --nodeps -e syslog-ng
    rm /var/run/syslogd.pid
    yum install rsyslog
  2.  Open the /etc/sysconfig/rsyslog file and set the SYSLOGD_OPTIONS variable to -c 3: 

    SYSLOGD_OPTIONS="-c 3"
  3. Open the /etc/rsyslog.conf file and insert the following line at the beginning of the file:

    $IncludeConfig /etc/rsyslog.d/*.conf
  4. Create the /etc/rsyslog.d/ directory if necessary:

    mkdir /etc/rsyslog.d/
  5. Devo-monitor package requires a newer version of Python than the one that comes with CentOS 5.x. Update Python version: 

    yum install python26
  6. Finally, replace the first line, #!/usr/bin/env python, with #!/usr/bin/python26 in the following files:   

    • /opt/logtrust/monitor/diskstat/diskstat
    • /opt/logtrust/monitor/dstat/dstat
    • /opt/logtrust/system/downloadCerts.py


 

Have we answered your question?

If not, please contact our technical support team via email by clicking the button below.

CONTACT US