Skip to content

Infrastructure Integration

Configuration

  1. Configure the agent by editing /etc/nutanix/epoch-dd-agent/conf.d/postfix.yamlin the collectors.

Example:

    # The user running dd-agent must have passwordless sudo access for the find
    # command to run the postfix check.  Here's an example:
    #
    # example /etc/sudoers entry:
    #          dd-agent ALL=(ALL) NOPASSWD:/usr/bin/find
    #
    # Redhat/CentOS/Amazon Linux flavours will need to add:
    #          Defaults:dd-agent !requiretty

    init_config:

    instances:
      - directory: /var/spool/postfix
        queues:
          - incoming
          - active
          - deferred
        tags:
          - optional_tag1
          - optional_tag2
      - directory: /var/spool/postfix-2
        queues:
          - incoming
          - active
          - deferred
        tags:
          - optional_tag3
          - optional_tag4
  1. Check and make sure that all yaml files are valid with following command:

    /etc/init.d/epoch-collectors configcheck
    
  2. Restart the Agent using the following command:

    /etc/init.d/epoch-collectors restart
    
  3. Execute the info command to verify that the integration check has passed:

    /etc/init.d/epoch-collectors info
    

The output of the command should contain a section similar to the following:

    Checks
    ======

      [...]

      postfix
      -------
          - instance #0 [OK]
          - Collected 8 metrics & 0 events

Infrastructure Datasources

Datasource Available Aggregations Unit Description
postfix.queue.size avg max min sum email The number of mails in this queue.