centreon / centreon-plugins

Collection of standard plugins to discover and gather cloud-to-edge metrics and status across your whole IT infrastructure.
https://www.centreon.com
Apache License 2.0
310 stars 273 forks source link

UNKNOWN: Illegal division by zero at /usr/lib/centreon/plugins//centreon_commvault_commserve_restapi.pl line 1547 #5194

Open gb-dev-anses opened 1 week ago

gb-dev-anses commented 1 week ago

With the service "Storage-Pools" from comvault Rest API plugin pack i got this message :

_UNKNOWN: Illegal division by zero at /usr/lib/centreon/plugins//centreon_commvault_commserverestapi.pl line 1547

How to reproduce

u need to have an active commvault serveur and launch this command :

_/usr/lib/centreon/plugins//centreon_commvault_commserve_restapi.pl --plugin=apps::backup::commvault::commserve::restapi::plugin --mode=storage-pools --hostname='xx.xx.xx.xx' --api-username='?????' --api-password='????' --port='443' --proto='https' --http-backend=curl --insecure --filter-name='' --warning-status='' --critical-status='%{status} !~ /online/i' --warning-usage='' --critical-usage='' --warning-usage-free='' --critical-usage-free='' --warning-usage-prct='' --critical-usage-prct='' --verbose__

Expected result

the Storage-Pools list with maybe somes perf counters ?

Actual result

An error

Other requests

i try to post to the watch before open a bug here :
https://thewatch.centreon.com/centreon-it-100-users-54/unknown-illegal-division-by-zero-at-usr-lib-centreon-plugins-centreon-versa-snmp-pl-line-9878-3816?tid=3816

ponchoh commented 1 week ago

CTOR-851

lucie-dubrunfaut commented 6 days ago

Hello :)

As @ponchoh suggested, could you try the solution proposed in the PR https://github.com/centreon/centreon-plugins/pull/5141 to see if it solves your problem?