#!/usr/bin/env perl

use 5.24.0;

use Data::Dumper;
use Storable;

my $data = retrieve $ARGV[0];

for my $mod ($data->{modules}->@*) {
	if ($mod =~ /Nagios/ && !$data->{jobstatus}{$mod}{tested}) {
		$data->{jobstatus}{$mod}={tested => 3, status => "nagios failure"};
	}
}

store $data, $ARGV[0];
