enh(mode) add nlabel to centreon sql modes (#3233)

* + add nlabel to centreon sql modes

* + add nlabel to centreon sql modes

* + add nlabel to centreon sql modes

* + missing unit
This commit is contained in:
Simon Bomm 2021-11-08 10:12:09 +01:00 committed by GitHub
parent b4c08728b0
commit 8824c3cd4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 9 deletions

View File

@ -33,7 +33,7 @@ sub set_counters {
];
$self->{maps_counters}->{poller} = [
{ label => 'host', set => {
{ label => 'host', nlabel => 'centreon.hosts.count', set => {
key_values => [ { name => 'hosts' }, { name => 'display' } ],
output_template => 'Number of hosts : %s',
perfdatas => [
@ -42,7 +42,7 @@ sub set_counters {
],
}
},
{ label => 'service', set => {
{ label => 'service', nlabel => 'centreon.services.count', set => {
key_values => [ { name => 'services' }, { name => 'display' } ],
output_template => 'Number of services : %s',
perfdatas => [
@ -62,7 +62,7 @@ sub prefix_poller_output {
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 => {

View File

@ -34,7 +34,7 @@ sub set_counters {
];
$self->{maps_counters}->{global} = [
{ label => 'total-queue-cache', set => {
{ label => 'total-queue-cache', nlabel => 'centreon.dsm.queue.cache.count', set => {
key_values => [ { name => 'total_queue_cache' } ],
output_template => 'Total current cache queue : %s',
perfdatas => [
@ -42,7 +42,7 @@ sub set_counters {
],
}
},
{ label => 'total-queue-lock', set => {
{ label => 'total-queue-lock', nlabel => 'centreon.dsm.queue.lock.count', set => {
key_values => [ { name => 'total_queue_lock' } ],
output_template => 'Total current lock queue : %s',
perfdatas => [
@ -52,7 +52,7 @@ sub set_counters {
},
];
$self->{maps_counters}->{host} = [
{ label => 'host-queue-cache', set => {
{ label => 'host-queue-cache', nlabel => 'centreon.dsm.host.queue.cache.count', set => {
key_values => [ { name => 'num' }, { name => 'display' } ],
output_template => 'current cache queue : %s',
perfdatas => [
@ -72,7 +72,7 @@ sub prefix_host_output {
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 =>

View File

@ -33,7 +33,7 @@ sub set_counters {
];
$self->{maps_counters}->{poller} = [
{ label => 'delay', set => {
{ label => 'delay', nlabel => 'centreon.poller.delay.seconds', set => {
key_values => [ { name => 'delay' }, { name => 'display' } ],
output_template => 'delay for last update is %d seconds',
perfdatas => [
@ -53,7 +53,7 @@ sub prefix_poller_output {
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 => {