zulip_ops: use check_postgres package from apt.

This commit is contained in:
Tim Abbott
2016-07-30 23:15:23 -07:00
committed by Tim Abbott
parent 165b4d3126
commit 65774e1c4f
2 changed files with 4 additions and 2 deletions

View File

@@ -88,12 +88,12 @@ define command{
define command{
command_name check_postgres
command_line /usr/lib/nagios/plugins/check_by_ssh -p 22 -l nagios -t 30 -i /var/lib/nagios/.ssh/id_rsa -H $HOSTADDRESS$ -C '/usr/lib/nagios/plugins/zulip_postgres_common/check_postgres.pl --dbname=$ARG1$ --dbuser=$ARG2$ --action $ARG3$'
command_line /usr/lib/nagios/plugins/check_by_ssh -p 22 -l nagios -t 30 -i /var/lib/nagios/.ssh/id_rsa -H $HOSTADDRESS$ -C '/usr/bin/check_postgres --dbname=$ARG1$ --dbuser=$ARG2$ --action $ARG3$'
}
define command{
command_name check_postgres_alert_args
command_line /usr/lib/nagios/plugins/check_by_ssh -p 22 -l nagios -t 30 -i /var/lib/nagios/.ssh/id_rsa -H $HOSTADDRESS$ -C '/usr/lib/nagios/plugins/zulip_postgres_common/check_postgres.pl --dbname=$ARG1$ --dbuser=$ARG2$ --action $ARG3$ --warning="$ARG4$" --critical="$ARG5$"'
command_line /usr/lib/nagios/plugins/check_by_ssh -p 22 -l nagios -t 30 -i /var/lib/nagios/.ssh/id_rsa -H $HOSTADDRESS$ -C '/usr/bin/check_postgres --dbname=$ARG1$ --dbuser=$ARG2$ --action $ARG3$ --warning="$ARG4$" --critical="$ARG5$"'
}
define command{

View File

@@ -5,6 +5,8 @@ class zulip_ops::postgres_common {
"lzop",
"pv",
"python-pip",
# Postgres Nagios check plugin
"check-postgres",
]
package { $internal_postgres_packages: ensure => "installed" }