• EnglishEspañol日本語한국어Português
  • Log inStart now

Cacti integration

Integrating Cacti with New Relic provides you with a user-friendly, graphical representation of your RRD data, all within New Relic's unified platform.

You can see your data in a dashboard after setting up the Cacti integration with New Relic.

Set up the Cacti integration

Complete the following steps to set up the Cacti integration:

Install the infrastructure agent

To use the Cacti integration, you need to first install the infrastructure agent on the same host.

Expose Cacti metrics

Complete the steps below to expose your RRD data in either a CSV or JSON format:

  1. Export data from Cacti's RRD files into the XML format using RRDTool.
  2. Convert the XML data into a CSV or JSON format.

Use NRI-Flex to capture CSV format metrics

Flex comes bundled with the New Relic infrastructure agent. You need to configure NRI-Flex for Cacti and create a flex configuration file. Follow these steps:

  1. Create a file named cacti-config.yml in the /newrelic-infra/integrations.d path.

  2. Update the cacti-config.yml with the following configuration example:

    - name: nri-flex
    name: machineLoad
    - name: machineLoad
    file: /home/ubuntu/xmlToCsv/local_linux_machine_load_1min_2.csv
    - name: memSwap
    file: /home/ubuntu/xmlToCsv/local_linux_machine_mem_swap_5.csv
    - name: proc
    file: /home/ubuntu/xmlToCsv/local_linux_machine_proc_1.csv
    - name: machineUser
    file: /home/ubuntu/xmlToCsv/local_linux_machine_users_3.csv
    - name: memBuffers
    file: /home/ubuntu/xmlToCsv/local_linux_machine_mem_buffers_4.csv
    - name: ApacheCpuLoad
    file: /home/ubuntu/xmlToCsv/local_linux_machine_apache_cpuload_6.csv
    - name: ApacheTotalHits
    file: /home/ubuntu/xmlToCsv/local_linux_machine_apache_total_hits_7.csv
    - name: ApacheTotalKbytes
    file: /home/ubuntu/xmlToCsv/local_linux_machine_apache_total_kbytes_8.csv
    - name: UserLogins
    file: /home/ubuntu/xmlToCsv/local_linux_machine_active_10.csv

Forward Cacti logs

Follow these steps to forward Cacti logs to New Relic:

  1. Edit the log file named logging.yml located at the following path:

    cd /etc/newrelic-infra/logging.d
  2. Add the following snippet to the logging.yml file. Replace file with your Cacti log file path if needed:

    - name: cacti.log
    file: /var/www/html/cacti/log/LOG_FILE_NAME
    logtype: cacti_log

Find your data

You can use our pre-built dashboard template to monitor your Cacti application metrics. Follow these steps to use our pre-built dashboard template:

  1. From one.newrelic.com, go to the + Integrations & Agents page
  2. Click on Dashboards
  3. In the search bar, type Cacti
  4. The Cacti dashboard should appear. Click on it to install it

Your Cacti dashboard is considered a custom dashboard and can be found in the Dashboards UI. For docs on using and editing dashboards, see our dashboard docs.

Here is an example NRQL query to view the count of the user login :

SELECT latest(value) FROM UserLoginsSample FACET name

What's next?

To learn more about building NRQL queries and generating dashboards, check out these docs:

Copyright © 2024 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.