Postfix is a fast, easy to administer, and secure Wietse Venema’s mail server that started life at IBM research as an alternative to the widely-used Sendmail program. Now at Google, Wietse continues to support Postfix. Built from a source code, Postfix can run on systems such as UNIX, AIX, BSD, HP-UX, Linux, MacOS X, and Solaris.

Postfix is also distributed as ready-to-run code by operating system vendors, appliance vendors, and other providers.

Prerequisites

  1. For Virtual Machines, install the Linux Agent.
  2. Grant sudo access to the OpsRamp Agent.

Configuring the application

Virtual machine

Configure the application in the directory /opt/opsramp/agent/conf/app/discovery/auto-detection.yaml

- name: postfix
  instance-checks:
    service-check:
      - postfix
    process-check:
      - postfix
    port-check:
      - 25
    command-check:
      - "postfix -c /etc/postfix/ status >/dev/null 2>&1;echo $?"

Validate

Go to Resources under the Infrastructure tab to check if your resources are onboarded and the metrics are collected.

Metrics

OpsRamp MetricMetric Display NameUnit
postfix_queues_incoming

Postfix incoming mail queues count
Queues IncomingQueue count
postfix_queues_active

Postfix active mails queues count
Queues ActiveQueue count
postfix_queues_maildrop

Postfix maildrop mails queues count
Queues MaildropQueue count
postfix_queues_deferred

Postfix deferred mails queues count
Queues DeferredQueue count
postfix_queues_bounce

Postfix bounce mails queues count
Queues BounceQueue count