Monitoring Postfix Processes

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Monitoring Postfix Processes

Martin Barry
Hi all

We run Postfix on most servers and would like to have accurate monitoring of
the various processes that are running.

The monitoring has configuration for processes that "must" be running (and
will alert if they are not) and those "allowed" to be running (and will
alert if anything not present in either list is running).

I've read http://www.postfix.org/OVERVIEW.html and can compile a list of
Postfix components but my question relates to which ones should be running
100% of the time and therefore should be in our "must" configuration.

My understanding is that only 'master', 'smtpd' and 'qmgr' fit this criteria
but any clarification the list can offer would be appreciated.

cheers
Marty
Reply | Threaded
Open this post in threaded view
|

Re: Monitoring Postfix Processes

Victor Duchovni
On Tue, Oct 14, 2008 at 02:19:02PM +1100, Martin Barry wrote:

> We run Postfix on most servers and would like to have accurate monitoring of
> the various processes that are running.

I take a different approach, I send probe messages every ~30s and monitor
their arrival time. If everything is running that needs to run, messages
arrive. Otherwise, they stop.

> The monitoring has configuration for processes that "must" be running (and
> will alert if they are not) and those "allowed" to be running (and will
> alert if anything not present in either list is running).

The only required process is "master". Everything else is restarted on
demand, but in the queue manager, such restarts must not be too frequent.

> I've read http://www.postfix.org/OVERVIEW.html and can compile a list of
> Postfix components but my question relates to which ones should be running
> 100% of the time and therefore should be in our "must" configuration.

Just "master".

> My understanding is that only 'master', 'smtpd' and 'qmgr' fit this criteria
> but any clarification the list can offer would be appreciated.

When no clients are connecting, after $max_idle, there will be no smtpd(8)
processes. A minimal Postfix installation will have just:

      PID    PPID  PGID USER     COMMAND
      11549     1 11549 root     master
      11551 11549 11549 postfix  qmgr
       6402 11549 11549 postfix  pickup

with all other daemons launched on demand, but it is really sufficient
to make sure mail is being delivered (and perhaps that master is
running). Don't worry about individual processes.

--
        Viktor.

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.

To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:[hidden email]?body=unsubscribe%20postfix-users>

If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.