mirror of
https://github.com/zulip/zulip.git
synced 2025-10-24 00:23:49 +00:00
zulip_ops: use check_postgres package from apt.
This commit is contained in:
@@ -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{
|
||||
|
||||
@@ -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" }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user