Commit Graph

6507 Commits

Author SHA1 Message Date
matoy 37fb41a10c Update cloud/azure/database/redis/mode/connectedclients.pm
Co-authored-by: Thibault S <48209914+thibaults-centreon@users.noreply.github.com>
2021-06-01 18:26:13 +02:00
matoy a9da8e7082 Update cloud/azure/database/redis/mode/cachethroughput.pm
Co-authored-by: Thibault S <48209914+thibaults-centreon@users.noreply.github.com>
2021-06-01 18:26:02 +02:00
matoy 32153d017d Update cloud/azure/database/redis/mode/errors.pm
Co-authored-by: Thibault S <48209914+thibaults-centreon@users.noreply.github.com>
2021-06-01 18:25:44 +02:00
matoy fe21cb3cd5 Update cloud/azure/database/redis/mode/cachethroughput.pm
Co-authored-by: Thibault S <48209914+thibaults-centreon@users.noreply.github.com>
2021-06-01 18:25:27 +02:00
matoy ef29c4a01a Update cloud/azure/database/redis/mode/cachelatency.pm
Co-authored-by: Thibault S <48209914+thibaults-centreon@users.noreply.github.com>
2021-06-01 18:25:15 +02:00
matoy 53d5debccf Update cloud/azure/database/redis/mode/cachehits.pm
Co-authored-by: Thibault S <48209914+thibaults-centreon@users.noreply.github.com>
2021-06-01 18:25:04 +02:00
matoy 0777c832c7 Update cloud/azure/database/redis/mode/connectedclients.pm
Co-authored-by: Thibault S <48209914+thibaults-centreon@users.noreply.github.com>
2021-06-01 18:24:49 +02:00
matoy 5c2d647090 Update cloud/azure/database/redis/mode/cachehits.pm
Co-authored-by: Thibault S <48209914+thibaults-centreon@users.noreply.github.com>
2021-06-01 18:24:37 +02:00
matoy 0f8fecd116 Update cloud/azure/database/redis/mode/serverload.pm
Co-authored-by: Thibault S <48209914+thibaults-centreon@users.noreply.github.com>
2021-06-01 18:21:25 +02:00
matoy c0d2bdd689 Update cloud/azure/database/redis/mode/memory.pm
Co-authored-by: Thibault S <48209914+thibaults-centreon@users.noreply.github.com>
2021-06-01 18:21:20 +02:00
matoy 7ee437c85e Update cloud/azure/database/redis/mode/errors.pm
Co-authored-by: Thibault S <48209914+thibaults-centreon@users.noreply.github.com>
2021-06-01 18:21:15 +02:00
matoy 8eae52cf89 Update cloud/azure/database/redis/mode/cpu.pm
Co-authored-by: Thibault S <48209914+thibaults-centreon@users.noreply.github.com>
2021-06-01 18:21:08 +02:00
matoy 901416893c Update cloud/azure/database/redis/mode/cpu.pm
Co-authored-by: Thibault S <48209914+thibaults-centreon@users.noreply.github.com>
2021-06-01 18:21:02 +02:00
matoy 24fa9e608d Update cloud/azure/database/redis/mode/connectedclients.pm
Co-authored-by: Thibault S <48209914+thibaults-centreon@users.noreply.github.com>
2021-06-01 18:20:55 +02:00
matoy 80f62658aa Update cloud/azure/database/redis/mode/cachethroughput.pm
Co-authored-by: Thibault S <48209914+thibaults-centreon@users.noreply.github.com>
2021-06-01 18:20:49 +02:00
matoy fe93fa4630 Update cloud/azure/database/redis/mode/cachethroughput.pm
Co-authored-by: Thibault S <48209914+thibaults-centreon@users.noreply.github.com>
2021-06-01 18:20:42 +02:00
matoy ec9afc3937 Update cloud/azure/database/redis/mode/cachelatency.pm
Co-authored-by: Thibault S <48209914+thibaults-centreon@users.noreply.github.com>
2021-06-01 18:20:29 +02:00
Thibault S de9a0dde25 Merge pull request #2819 from matoy/Azure-Appserviceplan-new-mode
enh(plugin): Appserviceplan new mode "queue"
2021-05-27 17:54:21 +02:00
Thibault S 5338918cd3 fix(mode): fix help 2021-05-27 17:53:07 +02:00
Thibault S ef6002e642 enh(mode): metrics nlabel adjustments 2021-05-27 17:50:50 +02:00
Simon Bomm b57a79404b reorg(plugin)make nmap a dedicated plugin (#2834)
Co-authored-by: Thibault S <48209914+thibaults-centreon@users.noreply.github.com>
2021-05-27 17:46:53 +02:00
Thibault S 46af4756fe fix(plugin): reorder modes 2021-05-27 17:41:48 +02:00
qgarnier deb1b7490b add(plugin): tplink snmp (#2831) 2021-05-26 14:57:42 +02:00
qgarnier 3195c5fdfb enh(core): add perfdata eval function (#2829) 2021-05-25 16:41:42 +02:00
qgarnier e8beda2186 fix(powershell): double-quote escape (#2828) 2021-05-25 14:54:12 +02:00
qgarnier c077ad700a enh(varnish): add compatibility 6.6.x version (#2827) 2021-05-25 13:24:57 +02:00
qgarnier 0df833b21e en(perfdata): some minor perfdata changes + fix (#2825) 2021-05-25 09:02:17 +02:00
itoussies 69694b63ec Apps squid snmp metricsv2 (#2823)
* enh(plugin): Squid SNMP metricsv2

* enh(plugin): Squid SNMP metricsv2

* nlabel names fix
2021-05-24 17:58:01 +02:00
itoussies c4d6ecc442 enh(plugin): SAHI Pro REST API metricsv2 (#2821)
* enh(plugin): SAHI Pro REST API metricsv2

* nlabel name fix
2021-05-24 17:56:49 +02:00
UrBnW f7d5229a5e enh(Synology) Use disk name rather than its ID (#2746) 2021-05-24 14:47:15 +02:00
itoussies 465a37ab8c enh(plugin): Slack REST API metricsv2 (#2822) 2021-05-24 14:12:40 +02:00
itoussies 1e79829632 enh(plugin): PVX Rest API metricsv2 (#2820)
* enh(plugin): PVX Restapi metricsv2

* nlabel name fix
2021-05-24 11:47:28 +02:00
matoy 32643af08f Azure Appserviceplan new mode
Azure Appserviceplan new mode:

[ appserviceplan]# /usr/lib/centreon/plugins//centreon-plugins/centreon_plugins.pl --plugin=cloud::azure::web::appserviceplan::plugin --custommode='api' --mode='queue' --subscription='xxx' --tenant='xxx' --client-id='xxx' --client-secret='***' --resource-group='xxx' --resource='xxx' --warning-disk-queue-length='8' --critical-disk-queue-length='9'
OK: Instance 'xxx' Statistic 'average' Metrics Http Queue Length: 0, Disk Queue Length: 0 | 'AEUW-Diorpress-prd-ServicePlan~average#appserviceplan.http.queue.length'=0;;;0; 'AEUW-Diorpress-prd-ServicePlan~average#appserviceplan.disk.queue.length'=0;0:8;0:9;0;
2021-05-21 16:03:11 +02:00
UrBnW cb5d170caf enh(equallogic) add time mode (#2817) 2021-05-21 14:12:02 +02:00
Simon Bomm ee49c303ac + add shields to readme 2021-05-21 11:51:49 +02:00
matoy bcfd41d2d3 new mode: --mode='backend-health' (#2795)
* Update plugin.pm

adds a mode to get backends unhealthy host count (FYI: mode backend-status DOES ONLY work on App Gateway v2, not on v1 which are the most deployed globally; app gateway v2 is recent)

* Add files via upload

* Update backendunhealthyhost.pm

* Update backendunhealthyhost.pm

* Update and rename backendunhealthyhost.pm to backendhealth.pm

* Update backendhealth.pm

* Update plugin.pm

* Update cloud/azure/network/appgateway/plugin.pm

Co-authored-by: Thibault S <48209914+thibaults-centreon@users.noreply.github.com>

* Update cloud/azure/network/appgateway/mode/backendhealth.pm

Co-authored-by: Thibault S <48209914+thibaults-centreon@users.noreply.github.com>

* fix help and style

Co-authored-by: Thibault S <48209914+thibaults-centreon@users.noreply.github.com>
2021-05-21 11:33:47 +02:00
matoy 8b6fdde603 new mode "capacity" for Azure APIM (#2803)
* new mode "capacity" for Azure APIM

new mode "capacity" for Azure APIM
gives the percentage of used capacity of the APIM

[root@svzam-cenpol001 apimanagement]# /usr/lib/centreon/plugins//centreon-plugins/centreon_plugins.pl --plugin=cloud::azure::management::apimanagement::plugin --custommode='api' --mode='capacity' --subscription='xxx' --tenant='xxx' --client-id='xxx' --client-secret='***' --resource-group='xxx' --resource='xxx' --warning-capacity-percentage='80' --critical-capacity-percentage='90'
OK: Instance 'xxx' Statistic 'average' Metrics Capacity: 2.46% | 'xxx#apimanagement.capacity.percentage'=2.46%;0:80;0:90;0;

* Add files via upload

* Update plugin.pm

* Update cloud/azure/management/apimanagement/mode/capacity.pm

Co-authored-by: itoussies <65223458+itoussies@users.noreply.github.com>

* Update cloud/azure/management/apimanagement/mode/capacity.pm

Co-authored-by: itoussies <65223458+itoussies@users.noreply.github.com>

* Update cloud/azure/management/apimanagement/mode/capacity.pm

Co-authored-by: itoussies <65223458+itoussies@users.noreply.github.com>

* Update cloud/azure/management/apimanagement/mode/capacity.pm

Co-authored-by: itoussies <65223458+itoussies@users.noreply.github.com>

Co-authored-by: itoussies <65223458+itoussies@users.noreply.github.com>
2021-05-21 11:33:29 +02:00
Thibault S 31249e8c98 fix(mode): remove inoperative metrics (#2816) 2021-05-21 11:32:42 +02:00
Thibault S 011ac501fc fix(mode): fix interval on mode status (#2814) 2021-05-21 09:19:11 +02:00
matoy ea4eb2d1b3 New plugin for StorageSync service (discovery, 2 modes, 3 metrics)
New plugin for StorageSync service (discovery, 2 modes, 3 metrics)

[]# /usr/lib/centreon/plugins//centreon-plugins/centreon_plugins.pl --plugin=cloud::azure::storage::storagesync::plugin --custommode='api' --mode='heartbeat' --subscription='xxx' --tenant='xxx' --client-id='xxx' --client-secret='***' --resource-group='xxx' --resource='xxx' --critical-heartbeat='1:'
OK: Instance 'xxx' Statistic 'maximum' Metrics Heartbeat: 1.00 | 'xxx~maximum#storage.storagesync.heartbeat'=1.00;;1:;0;

[]# /usr/lib/centreon/plugins//centreon-plugins/centreon_plugins.pl --plugin=cloud::azure::storage::storagesync::plugin --custommode='api' --mode='sessions' --subscription='xxx' --tenant='xxx' --client-id='xxx' --client-secret='***' --resource-group='xxx' --resource='xxx' --warning-item-errors='15' --critical-item-errors='20' --zeroed
OK: Instance 'xxx' Statistic 'total' Metrics Item errors: 0.00, Files Synced: 0.00 | 'xxx~total#storage.storagesync.item.errors'=0.00;0:15;0:20;0; 'xxx~total#storage.storagesync.files.synced'=0.00;;;0;
2021-05-21 09:01:28 +02:00
garnier-quentin 53e5265e08 prepare release 2021-05-20 10:25:21 +02:00
qgarnier da13d106e6 enh(server/fujitsu): add disk and raid component (#2811) 2021-05-20 10:15:03 +02:00
itoussies 4657372851 Merge pull request #2802 from matoy/patch-6
fix(plugin): Azure DB for MySQL
2021-05-19 16:06:02 +02:00
itoussies dfcb0ebc74 Update replication.pm 2021-05-19 16:00:56 +02:00
itoussies ca8c715004 Update connections.pm 2021-05-19 15:58:25 +02:00
matoy 951576e594 Update cloud/azure/database/mysql/mode/replication.pm
Co-authored-by: itoussies <65223458+itoussies@users.noreply.github.com>
2021-05-19 15:08:40 +02:00
matoy af007e438c Update cloud/azure/database/mysql/mode/storage.pm
Co-authored-by: itoussies <65223458+itoussies@users.noreply.github.com>
2021-05-19 15:08:27 +02:00
matoy 0aa6aac474 new plugin for Azure Redis Cache with 10 modes + discovery
[root@svzam-cenpol001 mode]# /usr/lib/centreon/plugins//centreon-plugins/centreon_plugins.pl --plugin=cloud::azure::database::redis::plugin --custommode='api' --list-mode

Plugin Description:
    Check Microsoft Azure Redis Cache service.

Global Options:
    --mode  Choose a mode.

    --dyn-mode
            Specify a mode with the path (separated by '::').

    --list-mode
            List available modes.

    --mode-version
            Check minimal version of mode. If not, unknown error.

    --version
            Display plugin version.

    --custommode
            Choose a custom mode.

    --list-custommode
            List available custom modes.

    --multiple
            Multiple custom mode objects (required by some specific modes)

    --pass-manager
            Use a password manager.

Modes Meta:
   multi

Modes Available:
   cache-hits
   cache-latency
   cache-miss-rate
   cache-throughput
   connected-clients
   cpu
   discovery
   errors
   memory
   operations
   server-load


[xxx redis]# /usr/lib/centreon/plugins//centreon-plugins/centreon_plugins.pl --plugin=cloud::azure::database::redis::plugin --custommode='api' --mode='discovery' --subscription='xxx' --tenant='xxx' --client-id='xxx' --client-secret='***' --resource-group='xxx'
{"end_time":1621416611,"start_time":1621416611,"duration":0,"discovered_items":1,"results":[{"location":"westeurope","name":"xxx","resourceGroup":"xxx","type":"Microsoft.Cache/Redis","id":"/subscriptions/xxx/resourceGroups/xxx/providers/Microsoft.Cache/Redis/xxx","tags":[]}]}

[xxx mode]# /usr/lib/centreon/plugins//centreon-plugins/centreon_plugins.pl --plugin=cloud::azure::database::redis::plugin --custommode='api' --mode='cache-hits' --subscription='xxx' --tenant='xxx' --client-id='xxx' --client-secret='***' --resource-group='xxx' --resource='xxx' --warning-cache-misses='800' --critical-cache-misses='900'
OK: Instance 'xxx' Statistic 'total' Metrics Cache Misses: 426.00, Cache Hits: 494.00 | 'xxx~total#redis.cache.misses.count'=426.00;0:800;0:900;0; 'xxx~total#redis.cache.hits.count'=494.00;;;0;

[xxx mode]# /usr/lib/centreon/plugins//centreon-plugins/centreon_plugins.pl --plugin=cloud::azure::database::redis::plugin --custommode='api' --mode='cache-latency' --subscription='xxx' --tenant='xxx' --client-id='xxx' --client-secret='***' --resource-group='xxx' --resource='cdc-abcdior-redis-eu-dev' --warning-cache-latency='8000' --critical-cache-latency='9000'
OK: Instance 'cdc-abcdior-redis-eu-dev' Statistic 'average' Metrics Cache Latency: 2190.66μs | 'cdc-abcdior-redis-eu-dev~average#redis.cache.latency.microseconds'=2190.66μs;0:8000;0:9000;0;

xxx mode]# /usr/lib/centreon/plugins//centreon-plugins/centreon_plugins.pl --plugin=cloud::azure::database::redis::plugin --custommode='api' --mode='cache-miss-rate' --subscription='xxx' --tenant='xxx' --client-id='xxx' --client-secret='***' --resource-group='xxx' --resource='xxx' --warning-cache-miss-rate='40' --critical-cache-miss-rate='50'
OK: Instance 'xxx' Statistic 'average' Metrics Cache Miss Rate: 14.00% | 'xxx~average#redis.cache.miss.rate'=14.00%;0:40;0:50;0;100

[xxx mode]# /usr/lib/centreon/plugins//centreon-plugins/centreon_plugins.pl --plugin=cloud::azure::database::redis::plugin --custommode='api' --mode='connected-clients' --subscription='xxx' --tenant='xxx' --client-id='xxx' --client-secret='***' --resource-group='xxx' --resource='xxx' --warning-connected-clients='800' --critical-connected-clients='900'
OK: Instance 'xxx' Statistic 'average' Metrics Connected Clients: 25.90 | 'xxx~average#redis.cache.connected.clients.count'=25.90;0:800;0:900;0;

[xxx mode]# /usr/lib/centreon/plugins//centreon-plugins/centreon_plugins.pl --plugin=cloud::azure::database::redis::plugin --custommode='api' --mode='server-load' --subscription='xxx' --tenant='xxx' --client-id='xxx' --client-secret='***' --resource-group='xxx' --resource='xxx' --warning-server-load-percentage='80' --critical-server-load-percentage='90'
OK: Instance 'xxx' Statistic 'maximum' Metrics Server Load: 1.00% | 'xxx~maximum#redis.cache.server-load'=1.00%;0:80;0:90;0;100

[xxx mode]# /usr/lib/centreon/plugins//centreon-plugins/centreon_plugins.pl --plugin=cloud::azure::database::redis::plugin --custommode='api' --mode='operations' --subscription='xxx' --tenant='xxx' --client-id='xxx' --client-secret='***' --resource-group='xxx' --resource='xxx' --warning-operations-per-second='80' --critical-operations-per-second='90'
OK: Instance 'xxx' Statistic 'maximum' Metrics Operations per seconds: 8.80op/s | 'xxx~average#redis.cache.operations.persecond'=8.80op/s;0:80;0:90;0;

[xxx mode]# /usr/lib/centreon/plugins//centreon-plugins/centreon_plugins.pl --plugin=cloud::azure::database::redis::plugin --custommode='api' --mode='cpu' --subscription='xxx' --tenant='xxx' --client-id='xxx' --client-secret='***' --resource-group='xxx' --resource='xxx' --warning-cpu-usage-percentage='80' --critical-cpu-usage-percentage='90'
OK: Instance 'xxx' Statistic 'maximum' Metrics CPU Usage Percentage: 13.00% | 'xxx~maximum#redis.cache.cpu.usage.percentage'=13.00%;0:80;0:90;0;100

[xxx mode]# /usr/lib/centreon/plugins//centreon-plugins/centreon_plugins.pl --plugin=cloud::azure::database::redis::plugin --custommode='api' --mode='memory' --subscription='xxx' --tenant='xxx' --client-id='xxx' --client-secret='***' --resource-group='xxx' --resource='xxx' --warning-memory-usage-percentage='80' --critical-memory-usage-percentage='90'
OK: Instance 'xxx' Statistic 'maximum' Metrics Memory Usage Percentage: 1.00% | 'xxx~maximum#redis.cache.memory.usage.percentage'=1.00%;0:80;0:90;0;100

[xxx mode]# /usr/lib/centreon/plugins//centreon-plugins/centreon_plugins.pl --plugin=cloud::azure::database::redis::plugin --custommode='api' --mode='errors' --subscription='xxx' --tenant='xxx' --client-id='xxx' --client-secret='***' --resource-group='xxx' --resource='xxx' --critical-errors-count='1'
OK: Instance 'xxx' Statistic 'total' Metrics Errors: 0.00 | 'xxx~total#redis.cache.errors.count'=0.00;;;0;

[xxx mode]# /usr/lib/centreon/plugins//centreon-plugins/centreon_plugins.pl --plugin=cloud::azure::database::redis::plugin --custommode='api' --mode='cache-throughput' --subscription='xxx' --tenant='xxx' --client-id='xxx' --client-secret='***' --resource-group='xxx' --resource='xxx' --warning-cache-read-throughput='800000' --critical-cache-read-throughput='900000'
OK: Instance 'xxx' Statistic 'maximum' Metrics Cache Read Throughput: 352527.00B/s, Cache Write Throughput: 133482.00B/s | 'xxx~maximum#redis.cache.read.throughput'=352527.00B/s;0:800000;0:900000;0; 'xxx~maximum#redis.cache.write.throughput'=133482.00B/s;;;0;
2021-05-19 14:17:36 +02:00
matoy 0e4f45998b Update plugin.pm 2021-05-19 11:27:05 +02:00
Thibault S 11e455bdf6 fix metrics case (#2807) 2021-05-19 10:14:23 +02:00