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

Error in snapshot_health check if 0 sized vlome : Illegal division by zero at line 1464. #56

Open
f-vt opened this issue Nov 21, 2017 · 0 comments

Comments

@f-vt
Copy link

f-vt commented Nov 21, 2017

Issue Type

Bug report

Issue Detail

  • check_netapp_ontap version:
  • NetApp Ontap version:
  • Monitoring solution: Centreon / Centreon-Broker

Expected Behavior
No bug in check snapshot_health if volume is 0 sized

Actual Behavior
Illegal division by zero at check_netapp_ontap.pl line 1464

How to resolve Behavior
at line 1458 add space-total condition :
From :
if ($hrefVolInfo->{$strVol}->{'state'} eq 'online') {
To :
if ( ($hrefVolInfo->{$strVol}->{'state'} eq 'online') && ($hrefVolInfo->{$strVol}->{'space-total'} ne 0) ) {

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

No branches or pull requests

2 participants