mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-27 23:54:18 +02:00
fix date format refs #5643
This commit is contained in:
parent
728d4a085b
commit
24abe4b08d
@ -103,8 +103,9 @@ sub run {
|
|||||||
my $job_name = $$row[0];
|
my $job_name = $$row[0];
|
||||||
my $run_status = $$row[1];
|
my $run_status = $$row[1];
|
||||||
my $run_date = $$row[2];
|
my $run_date = $$row[2];
|
||||||
|
$run_date =~ s/(\d{4})(\d{2})(\d{2})/$1-$2-$3/;
|
||||||
my $run_time = $$row[3];
|
my $run_time = $$row[3];
|
||||||
$self->{output}->output_add(long_msg => sprintf("Job %s status %s [Date : %s] [Runtime : %s]", $job_name, $states{$run_status}, $run_date, $run_time));
|
$self->{output}->output_add(long_msg => sprintf("Job %s status %s [Date : %s] [Runtime : %ss]", $job_name, $states{$run_status}, $run_date, $run_time));
|
||||||
if ($run_status == 0) {
|
if ($run_status == 0) {
|
||||||
$count_failed++;
|
$count_failed++;
|
||||||
$self->{output}->output_add(severity => 'Critical',
|
$self->{output}->output_add(severity => 'Critical',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user