Re: Database and OS monitoring

From: Andy Colson <andy(at)squeakycode(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Database and OS monitoring
Date: 2014-12-13 20:02:22
Message-ID: 548C9B4E.8090904@squeakycode.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 12/13/2014 12:55 PM, Edson Carlos Ericksson Richter wrote:
> Dear list,
>
> I've been searching in web for guidelines on OS (Linux) and PostgreSQL (9.3.5) active monitoring best practices.
> Can someone share experiences?
> I'm inclined to look at Cacti and Nagios. Any other experiences? Recommended books?
> I don't want to use SaaS for monitoring - I'll have a cloud server hired specifically for this purpose, outside my main data center infrastructure.
>
> Thanks in advance,
>
> Edson
>
>

Stats are one thing, but errors are another. I've found my best monitor is rsyslog and a perl script.

rsyslog.conf contains:

local0.* action(type="omprog"
binary="/usr/local/bin/logMonitor.pl"
template="RSYSLOG_TraditionalFileFormat")

the perl script is sort of like:

while (<>)
{
emailme() if (/error/);
}

-Andy

In response to

Browse pgsql-general by date

  From Date Subject
Next Message wetter wetterana 2014-12-14 04:03:39 Error: "Out of memory while reading tuples." in pushing table from SAS to PostgreSQL on Mac
Previous Message John R Pierce 2014-12-13 19:28:59 Re: Database and OS monitoring