Fix postgres mode 'backend' threshold
This commit is contained in:
parent
43a98053e5
commit
7760c806e6
|
@ -126,8 +126,8 @@ ORDER BY d.datname";
|
||||||
|
|
||||||
$self->{output}->perfdata_add(label => 'connections_' . $database_name,
|
$self->{output}->perfdata_add(label => 'connections_' . $database_name,
|
||||||
value => $used,
|
value => $used,
|
||||||
warning => $self->{perfdata}->get_perfdata_for_output(label => 'warning'),
|
warning => $self->{perfdata}->get_perfdata_for_output(label => 'warning', total => $max_connections, cast_int => 1),
|
||||||
critical => $self->{perfdata}->get_perfdata_for_output(label => 'critical'),
|
critical => $self->{perfdata}->get_perfdata_for_output(label => 'critical', total => $max_connections, cast_int => 1),
|
||||||
min => 0, max => $max_connections);
|
min => 0, max => $max_connections);
|
||||||
}
|
}
|
||||||
if ($database_check == 0) {
|
if ($database_check == 0) {
|
||||||
|
|
Loading…
Reference in New Issue