Infrastructure Integration¶
Configuration¶
- Configure the agent by editing
/etc/nutanix/epoch-dd-agent/conf.d/postfix.yaml
in 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
-
Check and make sure that all yaml files are valid with following command:
/etc/init.d/epoch-collectors configcheck
-
Restart the Agent using the following command:
/etc/init.d/epoch-collectors restart
-
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 |
The number of mails in this queue. |