rict;
use warnings;
use JSON;
use File::Path qw(make_path);
use File::ReadBackwards;
use Carp;
use File::Slurp;
use Time::Piece;
=head1 NAME
Sagan::Monitoring - LibreNMS JSON SNMP extend and Nagios
=> 1,
files=>{
'ids'=>'/var/log/sagan/alert-ids.json',
'foo'=>'/var/log/sagan/alert-foo.json',
},
};
my $sm=Sagan::Monitoring->new( $args
h ref. The keys are documented as below.
The only must have is 'files'.
This assumes that stats-json.subtract_old_values is set to 'true'
for Sagan.
- drop_percent_warn :: Drop percent warning