Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gb-dev-anses opened this issue Sep 18, 2024 · 3 comments

Comments

@gb-dev-anses
Copy link

gb-dev-anses commented Sep 18, 2024

  • what it your bug about?*

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_commserve_restapi.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_

  • Environment:
    Linux localhost.localdomain 5.14.0-427.31.1.el9_4.x86_64 Support of connecting via Unix-socket for MySQL checks #1 SMP PREEMPT_DYNAMIC Thu Aug 15 14:47:52 EDT 2024 x86_64 x86_64 x86_64 GNU/Linux_

  • Version of the plugin:

  • Information about the monitored resource:
    Comvault version 11.32.54

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
Copy link
Contributor

ponchoh commented Sep 18, 2024

#CTOR-851

@lucie-dubrunfaut
Copy link
Contributor

Hello :)

As @ponchoh suggested, could you try the solution proposed in the PR #5141 to see if it solves your problem?

@gagzou
Copy link

gagzou commented Nov 6, 2024

Hi, fix #5141 is ok for me.
I don't have anymore "UNKNOWN: Illegal division by zero at /usr/lib/centreon/plugins//centreon_commvault_commserve_restapi.pl line 1547" but "OK: All storage pools are ok"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants