From 0e71d69514d90b22a6ec741e5156bf9b0b515169 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Sabati=C3=A9?= Date: Thu, 4 Dec 2014 14:52:13 +0100 Subject: [PATCH] postgres: tablespace => help update --- database/postgres/mode/tablespace.pm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/database/postgres/mode/tablespace.pm b/database/postgres/mode/tablespace.pm index 47f9b1217..636295aad 100644 --- a/database/postgres/mode/tablespace.pm +++ b/database/postgres/mode/tablespace.pm @@ -50,7 +50,7 @@ sub new { { "warning:s" => { name => 'warning', default => ''}, "critical:s" => { name => 'critical', default => ''}, - "tablespace:s" => { name => 'tablespace', }, # tablespace nema to check + "tablespace:s" => { name => 'tablespace', }, # tablespace name to check }); return $self; @@ -86,7 +86,6 @@ sub run { my $result = $self->{sql}->fetchrow_array(); if (defined($result)) { - my $exit_code = $self->{perfdata}->threshold_check(value => $result, threshold => [ { label => 'critical', exit_litteral => 'critical' }, { label => 'warning', exit_litteral => 'warning' } ]); my ($value, $value_unit) = $self->{perfdata}->change_bytes(value => $result); $self->{output}->output_add(severity => $exit_code, @@ -123,6 +122,10 @@ Threshold warning in bytes, maximum size allowed. Threshold critical in bytes, maximum size allowed. +=item B<--tablespace> + +The of the tablespace to check. + =back =cut