misc(dynamics/ax): force new perfdata + indent (#3296)
This commit is contained in:
parent
f44d8e2177
commit
1ae3404f4e
|
@ -60,15 +60,14 @@ sub set_counters {
|
|||
|
||||
sub new {
|
||||
my ($class, %options) = @_;
|
||||
my $self = $class->SUPER::new(package => __PACKAGE__, %options);
|
||||
my $self = $class->SUPER::new(package => __PACKAGE__, %options, force_new_perfdata => 1);
|
||||
bless $self, $class;
|
||||
|
||||
$options{options}->add_options(arguments =>
|
||||
{
|
||||
"timeframe:s" => { name => 'timeframe', default => '14400' },
|
||||
"filter-module:s" => { name => 'filter_module' },
|
||||
"filter-company:s" => { name => 'filter_company' },
|
||||
"filter-portname:s" => { name => 'filter_portname' }
|
||||
$options{options}->add_options(arguments => {
|
||||
'timeframe:s' => { name => 'timeframe', default => 14400 },
|
||||
'filter-module:s' => { name => 'filter_module' },
|
||||
'filter-company:s' => { name => 'filter_company' },
|
||||
'filter-portname:s' => { name => 'filter_portname' }
|
||||
});
|
||||
|
||||
return $self;
|
||||
|
@ -80,7 +79,8 @@ sub manage_selection {
|
|||
# $options{sql} = sqlmode object
|
||||
$self->{sql} = $options{sql};
|
||||
|
||||
my $query = " SELECT
|
||||
my $query = "
|
||||
SELECT
|
||||
[AIFEXCEPTIONMAP].[MESSAGEID],
|
||||
[SYSEXCEPTIONTABLE].[EXCEPTION],
|
||||
[SYSEXCEPTIONTABLE].[DESCRIPTION],
|
||||
|
@ -161,6 +161,7 @@ Thresholds.
|
|||
Can be: 'order-critical', 'order-warning'.
|
||||
|
||||
=item B<--timeframe>
|
||||
|
||||
Set the timeframe to query in seconds (Default: 14400).
|
||||
|
||||
=item B<--filter-module>
|
||||
|
|
Loading…
Reference in New Issue