monitoring PostgreSQL

Started by PAWAN SHARMAover 8 years ago9 messagesgeneral
Jump to latest
#1PAWAN SHARMA
er.pawanshr0963@gmail.com

Hi All,

Please provide me a list of tools which we can use for monitoring
PostgreSQL.

-Monitor all the services and health of server
-Able to send critical and warning alert on mail.

OS: Redhat-7
PostgreSQL Version: 9.5.7

-Pawan

#2Nikolay Samokhvalov
samokhvalov@gmail.com
In reply to: PAWAN SHARMA (#1)
Re: monitoring PostgreSQL

okmeter.io is good (though it's cloud-based and costs some money), I'm
using it and definitely can recommend.

There much more tools, see: https://wiki.postgresql.org/wiki/Monitoring

On Mon, Jul 24, 2017 at 4:27 AM, PAWAN SHARMA <er.pawanshr0963@gmail.com>
wrote:

Show quoted text

Hi All,

Please provide me a list of tools which we can use for monitoring
PostgreSQL.

-Monitor all the services and health of server
-Able to send critical and warning alert on mail.

OS: Redhat-7
PostgreSQL Version: 9.5.7

-Pawan

#3Achilleas Mantzios
achill@matrix.gatewaynet.com
In reply to: PAWAN SHARMA (#1)
Re: monitoring PostgreSQL

pgbadger is a very nice reporting tool, overall, albeit not exactly at the system side, but more to the DBA side.
For system level monitoring maybe take a look here : https://wiki.postgresql.org/wiki/Monitoring#check_postgres .
Also you might want to write a script that parses logs for FATAL and PANIC and sends out emails.

On 24/07/2017 14:27, PAWAN SHARMA wrote:

Hi All,

Please provide me a list of tools which we can use for monitoring PostgreSQL.

-Monitor all the services and health of server
-Able to send critical and warning alert on mail.

OS: Redhat-7
PostgreSQL Version: 9.5.7

-Pawan

--
Achilleas Mantzios
IT DEV Lead
IT DEPT
Dynacom Tankers Mgmt

#4Tim Clarke
tim.clarke@manifest.co.uk
In reply to: Achilleas Mantzios (#3)
Re: monitoring PostgreSQL

We use nagios for all alerting, it'll do what you need.

Tim Clarke

Show quoted text

On 24/07/17 12:38, Achilleas Mantzios wrote:

pgbadger is a very nice reporting tool, overall, albeit not exactly at
the system side, but more to the DBA side.
For system level monitoring maybe take a look here :
https://wiki.postgresql.org/wiki/Monitoring#check_postgres .
Also you might want to write a script that parses logs for FATAL and
PANIC and sends out emails.

On 24/07/2017 14:27, PAWAN SHARMA wrote:

Hi All,

Please provide me a list of tools which we can use for monitoring
PostgreSQL.

-Monitor all the services and health of server
-Able to send critical and warning alert on mail.

OS: Redhat-7
PostgreSQL Version: 9.5.7

-Pawan

--
Achilleas Mantzios
IT DEV Lead
IT DEPT
Dynacom Tankers Mgmt

Attachments:

smime.p7sapplication/pkcs7-signature; name=smime.p7sDownload
#5PAWAN SHARMA
er.pawanshr0963@gmail.com
In reply to: Tim Clarke (#4)
Re: monitoring PostgreSQL

On Mon, Jul 24, 2017 at 5:20 PM, Tim Clarke <tim.clarke@manifest.co.uk>
wrote:

We use nagios for all alerting, it'll do what you need.

Tim Clarke

On 24/07/17 12:38, Achilleas Mantzios wrote:

pgbadger is a very nice reporting tool, overall, albeit not exactly at
the system side, but more to the DBA side.
For system level monitoring maybe take a look here :
https://wiki.postgresql.org/wiki/Monitoring#check_postgres .
Also you might want to write a script that parses logs for FATAL and
PANIC and sends out emails.

On 24/07/2017 14:27, PAWAN SHARMA wrote:

Hi All,

Please provide me a list of tools which we can use for monitoring
PostgreSQL.

-Monitor all the services and health of server
-Able to send critical and warning alert on mail.

OS: Redhat-7
PostgreSQL Version: 9.5.7

-Pawan

--
Achilleas Mantzios
IT DEV Lead
IT DEPT
Dynacom Tankers Mgmt

Hi Tim,

Thanks for update,

Please share the steps, how to configure Nagios??

#6PAWAN SHARMA
er.pawanshr0963@gmail.com
In reply to: PAWAN SHARMA (#5)
Re: monitoring PostgreSQL

On Mon, Jul 24, 2017 at 5:50 PM, PAWAN SHARMA <er.pawanshr0963@gmail.com>
wrote:

On Mon, Jul 24, 2017 at 5:20 PM, Tim Clarke <tim.clarke@manifest.co.uk>
wrote:

We use nagios for all alerting, it'll do what you need.

Tim Clarke

On 24/07/17 12:38, Achilleas Mantzios wrote:

pgbadger is a very nice reporting tool, overall, albeit not exactly at
the system side, but more to the DBA side.
For system level monitoring maybe take a look here :
https://wiki.postgresql.org/wiki/Monitoring#check_postgres .
Also you might want to write a script that parses logs for FATAL and
PANIC and sends out emails.

On 24/07/2017 14:27, PAWAN SHARMA wrote:

Hi All,

Please provide me a list of tools which we can use for monitoring
PostgreSQL.

-Monitor all the services and health of server
-Able to send critical and warning alert on mail.

OS: Redhat-7
PostgreSQL Version: 9.5.7

-Pawan

--
Achilleas Mantzios
IT DEV Lead
IT DEPT
Dynacom Tankers Mgmt

Hi Tim,

Thanks for update,

Please share the steps, how to configure Nagios??

Hi Tim,

Facing below issue

[abc@test:/home/psharm89/nrpe-2.15]#
Redirecting to /bin/systemctl restart xinetd.service
Failed to restart xinetd.service: Unit xinetd.service failed to load: No
such file or directory.
[abc@test:/home/psharm89/nrpe-2.15]#

[abc@test:/home/psharm89/nrpe-2.15]#
#-> less /etc/xinetd.d/nrpe
# default: on
# description: NRPE (Nagios Remote Plugin Executor)
service nrpe
{
flags = REUSE
socket_type = stream
port = 5666
wait = no
user = nagios
group = nagios
server = /usr/local/nagios/bin/nrpe
server_args = -c /usr/local/nagios/etc/nrpe.cfg --inetd
log_on_failure += USERID
disable = no
only_from = 127.0.0.1
}

#7Tim Clarke
tim.clarke@manifest.co.uk
In reply to: PAWAN SHARMA (#6)
Re: monitoring PostgreSQL

On 24/07/17 14:47, PAWAN SHARMA wrote:

Hi Tim,

Facing below issue

[abc@test:/home/psharm89/nrpe-2.15]#
Redirecting to /bin/systemctl restart xinetd.service
Failed to restart xinetd.service: Unit xinetd.service failed to load:
No such file or directory.
[abc@test:/home/psharm89/nrpe-2.15]#

[abc@test:/home/psharm89/nrpe-2.15]#
#-> less /etc/xinetd.d/nrpe
# default: on
# description: NRPE (Nagios Remote Plugin Executor)
service nrpe
{
flags = REUSE
socket_type = stream
port = 5666
wait = no
user = nagios
group = nagios
server = /usr/local/nagios/bin/nrpe
server_args = -c /usr/local/nagios/etc/nrpe.cfg --inetd
log_on_failure += USERID
disable = no
only_from = 127.0.0.1
}

xinetd is broken? restore the config from backup.

Tim

Attachments:

smime.p7sapplication/pkcs7-signature; name=smime.p7sDownload
#8PAWAN SHARMA
er.pawanshr0963@gmail.com
In reply to: Tim Clarke (#7)
Re: monitoring PostgreSQL

On Mon, Jul 24, 2017 at 7:28 PM, Tim Clarke <tim.clarke@manifest.co.uk>
wrote:

On 24/07/17 14:47, PAWAN SHARMA wrote:

Hi Tim,

Facing below issue

[abc@test:/home/psharm89/nrpe-2.15]#
Redirecting to /bin/systemctl restart xinetd.service
Failed to restart xinetd.service: Unit xinetd.service failed to load:
No such file or directory.
[abc@test:/home/psharm89/nrpe-2.15]#

[abc@test:/home/psharm89/nrpe-2.15]#
#-> less /etc/xinetd.d/nrpe
# default: on
# description: NRPE (Nagios Remote Plugin Executor)
service nrpe
{
flags = REUSE
socket_type = stream
port = 5666
wait = no
user = nagios
group = nagios
server = /usr/local/nagios/bin/nrpe
server_args = -c /usr/local/nagios/etc/nrpe.cfg --inetd
log_on_failure += USERID
disable = no
only_from = 127.0.0.1
}

xinetd is broken? restore the config from backup.

Tim

#-> /etc/init.d/nagios restart
Restarting nagios (via systemctl): Job for nagios.service failed because
the control process exited with error code. See "systemctl status
nagios.service" and "journalctl -xe" for details.

#9Tim Clarke
tim.clarke@manifest.co.uk
In reply to: PAWAN SHARMA (#8)
Re: monitoring PostgreSQL

On 24/07/17 15:01, PAWAN SHARMA wrote:

On Mon, Jul 24, 2017 at 7:28 PM, Tim Clarke <tim.clarke@manifest.co.uk
<mailto:tim.clarke@manifest.co.uk>> wrote:

On 24/07/17 14:47, PAWAN SHARMA wrote:

Hi Tim,

Facing below issue

[abc@test:/home/psharm89/nrpe-2.15]#
Redirecting to /bin/systemctl restart xinetd.service
Failed to restart xinetd.service: Unit xinetd.service failed to

load:

No such file or directory.
[abc@test:/home/psharm89/nrpe-2.15]#

[abc@test:/home/psharm89/nrpe-2.15]#
#-> less /etc/xinetd.d/nrpe
# default: on
# description: NRPE (Nagios Remote Plugin Executor)
service nrpe
{
flags = REUSE
socket_type = stream
port = 5666
wait = no
user = nagios
group = nagios
server = /usr/local/nagios/bin/nrpe
server_args = -c /usr/local/nagios/etc/nrpe.cfg --inetd
log_on_failure += USERID
disable = no
only_from = 127.0.0.1
}

xinetd is broken? restore the config from backup.

Tim

#-> /etc/init.d/nagios restart
Restarting nagios (via systemctl): Job for nagios.service failed
because the control process exited with error code. See "systemctl
status nagios.service" and "journalctl -xe" for details.

And what do

"systemctl status nagios.service"
and
"journalctl -xe"

tell you?

Tim

Attachments:

smime.p7sapplication/pkcs7-signature; name=smime.p7sDownload