<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: NetApp Harvest error: Illegal division by zero at /opt/netapp-harvest/plugin/cdo in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/NetApp-Harvest-error-nic-common-plugin-failed-to-compile/m-p/122653#M22017</link>
    <description>&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN&gt;I've &lt;/SPAN&gt;&lt;SPAN&gt;nic_common&lt;/SPAN&gt; &lt;SPAN&gt;tried to&lt;/SPAN&gt; &lt;SPAN class=""&gt;edit it as follows&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;		{
			$link_speed = 1.25 if ($h{$start}{$port}{link_speed} == 10000000 );  #10Mbit
			$link_speed = 12.5 if ($h{$start}{$port}{link_speed} == 100000000 );  #100Mbit
			$link_speed = 125  if ($h{$start}{$port}{link_speed} == 1000000000 );  #1Gbit
			$link_speed = 1250 if ($h{$start}{$port}{link_speed} == 10000000000 ); #10Gbit
		}
		elsif ($connection{normalized_xfer} eq 'kb_per_sec')
		{
			$link_speed = 1250 if ($h{$start}{$port}{link_speed} == 10000000 );  #10Mbit
			$link_speed = 12500 if ($h{$start}{$port}{link_speed} == 100000000 );  #100Mbit
			$link_speed = 125000  if ($h{$start}{$port}{link_speed} == 1000000000 );  #1Gbit
			$link_speed = 1250000 if ($h{$start}{$port}{link_speed} == 10000000000 ); #10Gbit
		}
		elsif ($connection{normalized_xfer} eq 'b_per_sec')
		{
			$link_speed = 1250000 if ($h{$start}{$port}{link_speed} == 10000000 );  #10Mbit
			$link_speed = 12500000 if ($h{$start}{$port}{link_speed} == 100000000 );  #100Mbit
			$link_speed = 125000000  if ($h{$start}{$port}{link_speed} == 1000000000 );  #1Gbit
			$link_speed = 1250000000 if ($h{$start}{$port}{link_speed} == 10000000000 ); #10Gbit
		}
		elsif ($connection{normalized_xfer} eq 'gb_per_sec')
		{
			$link_speed = .00125 if ($h{$start}{$port}{link_speed} == 10000000 );  #10Mbit
			$link_speed = .0125 if ($h{$start}{$port}{link_speed} == 100000000 );  #100Mbit
			$link_speed = .125  if ($h{$start}{$port}{link_speed} == 1000000000 );  #1Gbit
			$link_speed = 1.25  if ($h{$start}{$port}{link_speed} == 10000000000 ); #10Gbit
		}&lt;/PRE&gt;&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN class=""&gt;error is no longer out&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN class=""&gt;but &lt;SPAN&gt;Calculation&lt;/SPAN&gt; &lt;SPAN&gt;of&lt;/SPAN&gt; eth port &lt;SPAN&gt;utilization percent&lt;/SPAN&gt; &lt;SPAN&gt;became&lt;/SPAN&gt; strange&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN class=""&gt;e0M(node management port) utilization 3820 percent....&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN class=""&gt;e0M is 100Mbit port &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN class=""&gt;Hmm....&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 26 Aug 2016 16:57:04 GMT</pubDate>
    <dc:creator>hashiya1112</dc:creator>
    <dc:date>2016-08-26T16:57:04Z</dc:date>
    <item>
      <title>NetApp Harvest error: [nic_common] plugin failed to compile</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/NetApp-Harvest-error-nic-common-plugin-failed-to-compile/m-p/120528#M21599</link>
      <description>&lt;P&gt;Collection on one of my 8.3.2.P2 clusters stopped with the errors below logged. All other clusters seem to be fine. Has anyone seen this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[2016-06-21 11:36:00] [NORMAL ] Poller status: status, secs=14400, api_time=8170, plugin_time=274, metrics=1978019, skips=587, fails=0&lt;BR /&gt;[2016-06-21 13:00:42] [WARNING] [nic_common] plugin failed to compile: Illegal division by zero at /opt/netapp-harvest/plugin/cdot-nic-common line 86.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[2016-06-21 13:00:42] [ERROR ] [nic_common] Restarting netapp-worker as an attempt to clear issue&lt;BR /&gt;[2016-06-21 13:00:42] [NORMAL ] WORKER STARTED [Version: 1.2.2] [Conf: netapp-harvest.conf] [Poller: ntap-cla01]&lt;BR /&gt;[2016-06-21 13:00:42] [NORMAL ] [main] Poller will monitor a [FILER] at [192.168.94.1:443]&lt;BR /&gt;[2016-06-21 13:00:42] [NORMAL ] [main] Poller will use [password] authentication with username [netapp-harvest] and password [**********]&lt;BR /&gt;[2016-06-21 13:00:43] [NORMAL ] [main] Collection of system info from [192.168.94.1] running [NetApp Release 8.3.2P2] successful.&lt;BR /&gt;[2016-06-21 13:00:43] [NORMAL ] [main] Using best-fit collection template: [cdot-8.3.0.conf]&lt;BR /&gt;[2016-06-21 13:00:43] [NORMAL ] [main] Using graphite_root [netapp.perf.springfield.ntap-cla01]&lt;BR /&gt;[2016-06-21 13:00:43] [NORMAL ] [main] Using graphite_meta_metrics_root [netapp.poller.perf.springfield.ntap-cla01]&lt;BR /&gt;[2016-06-21 13:00:43] [NORMAL ] [smb2:node] Collection of object not enabled; skipping&lt;BR /&gt;[2016-06-21 13:00:43] [NORMAL ] [smb2:vserver] Collection of object not enabled; skipping&lt;BR /&gt;[2016-06-21 13:00:43] [NORMAL ] [main] Startup complete. Polling for new data every [60] seconds.&lt;BR /&gt;[2016-06-21 13:02:39] [WARNING] [nic_common] plugin failed to compile: Illegal division by zero at /opt/netapp-harvest/plugin/cdot-nic-common line 86.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 20:16:29 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/NetApp-Harvest-error-nic-common-plugin-failed-to-compile/m-p/120528#M21599</guid>
      <dc:creator>dlmaldonado</dc:creator>
      <dc:date>2025-06-04T20:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: NetApp Harvest error: Illegal division by zero at /opt/netapp-harvest/plugin/cdo</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/NetApp-Harvest-error-nic-common-plugin-failed-to-compile/m-p/120531#M21601</link>
      <description>&lt;P&gt;no, and I was about to push P2 to a DEV cluster. &amp;nbsp;This was running fine against P1?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2016 14:06:28 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/NetApp-Harvest-error-nic-common-plugin-failed-to-compile/m-p/120531#M21601</guid>
      <dc:creator>J_curl</dc:creator>
      <dc:date>2016-06-23T14:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: NetApp Harvest error: Illegal division by zero at /opt/netapp-harvest/plugin/cdo</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/NetApp-Harvest-error-nic-common-plugin-failed-to-compile/m-p/120533#M21603</link>
      <description>&lt;P&gt;It's working on other 832P2 clusters and had been working fine after we upgraded. For at least 2 weeks. Not sure why this stopped collecting.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2016 14:16:31 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/NetApp-Harvest-error-nic-common-plugin-failed-to-compile/m-p/120533#M21603</guid>
      <dc:creator>dlmaldonado</dc:creator>
      <dc:date>2016-06-23T14:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: NetApp Harvest error: Illegal division by zero at /opt/netapp-harvest/plugin/cdo</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/NetApp-Harvest-error-nic-common-plugin-failed-to-compile/m-p/120593#M21618</link>
      <description>&lt;P&gt;FYI, in order to pull back any metrics I had to comment out these lines in "/opt/netapp-harvest/plugin/cdot-nic-common"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my $rx_pct = sprintf ("%.2f", $h{$start}{$port}{rx_bytes_per_sec} / $link_speed * 100 );&lt;BR /&gt;my $tx_pct = sprintf ("%.2f", $h{$start}{$port}{tx_bytes_per_sec} / $link_speed * 100 );&lt;BR /&gt;my $pct = sprintf ("%.2f", $tx_pct);&lt;BR /&gt;$pct = sprintf ("%.2f", $rx_pct) if ($rx_pct &amp;gt; $tx_pct);&lt;BR /&gt;push @emit_items, "$start.$port.rx_pct_util $rx_pct $timestamp";&lt;BR /&gt;push @emit_items, "$start.$port.tx_pct_util $tx_pct $timestamp";&lt;BR /&gt;push @emit_items, "$start.$port.link_pct_util $pct $timestamp";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I realize this is not a solution, but I need to collect something vs nothing and as I said, I only experienced this on one cluster. The others are fine. And it had been working previously after 8.3.2P2 upgrade. It's a 14 node NFS cluster. After a certain date, collection failed with&amp;nbsp;[WARNING] [nic_common] plugin failed to compile: Illegal division by zero at /opt/netapp-harvest/plugin/cdot-nic-common.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2016 18:48:30 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/NetApp-Harvest-error-nic-common-plugin-failed-to-compile/m-p/120593#M21618</guid>
      <dc:creator>dlmaldonado</dc:creator>
      <dc:date>2016-06-24T18:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: NetApp Harvest error: Illegal division by zero at /opt/netapp-harvest/plugin/cdo</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/NetApp-Harvest-error-nic-common-plugin-failed-to-compile/m-p/120645#M21630</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/12299"&gt;@dlmaldonado﻿&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There appears to be an issue with the link_speed counter value on some interface(s) on your cluster. &amp;nbsp;My guess is either something changed in 8.3.2P2, or after the upgrade/reboot some unused interface didn't get a value set as it should (which could also be a new behavior in 8.3.2P2).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you restart&amp;nbsp;the poller in verbose mode, wait for 5 minutes, and then restart again in normal mode?:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;/opt/netapp-harvest/netapp-manager -restart -poller &amp;lt;clustername&amp;gt; -v
&lt;BR /&gt;&amp;lt;wait 5 minutes&amp;gt;
&lt;BR /&gt;/opt/netapp-harvest/netapp-manager -restart -poller &amp;lt;clustername&amp;gt;&lt;/PRE&gt;&lt;P&gt;Then provide the logfile in /opt/netapp-harvest/log/&amp;lt;poller&amp;gt;_netapp-harvest.log&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From that log I can see what the incoming link_speed values are and hopefully explain why it's not working as it should.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will also send you a private message in case you prefer to share the logs privately.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;BR /&gt;Chris Madden&lt;/P&gt;&lt;P&gt;Storage Architect, NetApp EMEA (and author of Harvest)&lt;/P&gt;&lt;P&gt;Blog:&amp;nbsp;&lt;A href="http://blog.pkiwi.com/" target="_blank"&gt;It all begins with data&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If this post resolved your issue, please help others by selecting&amp;nbsp;&lt;STRONG&gt;ACCEPT AS SOLUTION&lt;/STRONG&gt;&amp;nbsp;or adding a&amp;nbsp;&lt;STRONG&gt;KUDO &lt;/STRONG&gt;or both!&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2016 14:55:09 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/NetApp-Harvest-error-nic-common-plugin-failed-to-compile/m-p/120645#M21630</guid>
      <dc:creator>madden</dc:creator>
      <dc:date>2016-06-27T14:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: NetApp Harvest error: Illegal division by zero at /opt/netapp-harvest/plugin/cdo</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/NetApp-Harvest-error-nic-common-plugin-failed-to-compile/m-p/122637#M22012</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;We are using harvest to get performance on cDOT8.2.3 and 8.3&lt;/P&gt;&lt;P&gt;Aug 23 8.2.3 upgrading to 8.2.4P4&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN class=""&gt;after upgrade &lt;/SPAN&gt;&lt;SPAN class=""&gt;the same error&lt;/SPAN&gt; &lt;SPAN class=""&gt;has occurred&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;When you confirm&lt;/SPAN&gt; the netapp-dashboard-cluster of grafana&lt;BR /&gt;eth port utilization &lt;SPAN&gt;is greater than&lt;/SPAN&gt; &lt;SPAN&gt;3000&lt;/SPAN&gt; &lt;SPAN&gt;percent&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;dlmaldonado wrote&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;"/opt/netapp-harvest/plugin/cdot-nic-common"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;--------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;my $rx_pct = sprintf ("%.2f", $h{$start}{$port}{rx_bytes_per_sec} / $link_speed * 100 );&lt;BR /&gt;my $tx_pct = sprintf ("%.2f", $h{$start}{$port}{tx_bytes_per_sec} / $link_speed * 100 );&lt;BR /&gt;my $pct = sprintf ("%.2f", $tx_pct);&lt;BR /&gt;$pct = sprintf ("%.2f", $rx_pct) if ($rx_pct &amp;gt; $tx_pct);&lt;BR /&gt;push @emit_items, "$start.$port.rx_pct_util $rx_pct $timestamp";&lt;BR /&gt;push @emit_items, "$start.$port.tx_pct_util $tx_pct $timestamp";&lt;BR /&gt;push @emit_items, "$start.$port.link_pct_util $pct $timestamp";&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;--------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;How to fix this code?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2016 14:06:06 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/NetApp-Harvest-error-nic-common-plugin-failed-to-compile/m-p/122637#M22012</guid>
      <dc:creator>hashiya1112</dc:creator>
      <dc:date>2016-08-26T14:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: NetApp Harvest error: Illegal division by zero at /opt/netapp-harvest/plugin/cdo</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/NetApp-Harvest-error-nic-common-plugin-failed-to-compile/m-p/122644#M22014</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/53005"&gt;@hashiya1112﻿&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Actually, we resolved offline. &amp;nbsp;One of the ports was link up but&amp;nbsp;at 10Mbit and the plugin logic was not able to convert this correctly. &amp;nbsp;I have added a fix and it will ship in the next Harvest release on the toolchest. &amp;nbsp;In the meantime perhaps you can just find the port(s) that are&amp;nbsp;online at 10Mbit and fix that to be 100Mbit or faster?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;BR /&gt;Chris Madden&lt;/P&gt;&lt;P&gt;Storage Architect, NetApp EMEA (and author of Harvest)&lt;/P&gt;&lt;P&gt;Blog:&amp;nbsp;&lt;A href="http://blog.pkiwi.com/" target="_blank"&gt;It all begins with data&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If this post resolved your issue, please help others by selecting&amp;nbsp;&lt;STRONG&gt;ACCEPT AS SOLUTION&lt;/STRONG&gt;&amp;nbsp;or adding a&amp;nbsp;&lt;STRONG&gt;KUDO &lt;/STRONG&gt;or both!&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2016 15:45:07 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/NetApp-Harvest-error-nic-common-plugin-failed-to-compile/m-p/122644#M22014</guid>
      <dc:creator>madden</dc:creator>
      <dc:date>2016-08-26T15:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: NetApp Harvest error: Illegal division by zero at /opt/netapp-harvest/plugin/cdo</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/NetApp-Harvest-error-nic-common-plugin-failed-to-compile/m-p/122645#M22015</link>
      <description>&lt;P&gt;Hi Chris&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for reply&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN class=""&gt;There is an&lt;/SPAN&gt; &lt;SPAN class=""&gt;offline port&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN class=""&gt;Not&lt;/SPAN&gt; &lt;SPAN&gt;10Mbit&lt;/SPAN&gt; &lt;SPAN&gt;in&lt;/SPAN&gt; &lt;SPAN class=""&gt;online port&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN&gt;Do I&lt;/SPAN&gt; &lt;SPAN&gt;change the&lt;/SPAN&gt; &lt;SPAN&gt;network port modify&lt;/SPAN&gt; &lt;SPAN&gt;command&lt;/SPAN&gt;&lt;SPAN class=""&gt;?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2016 15:58:39 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/NetApp-Harvest-error-nic-common-plugin-failed-to-compile/m-p/122645#M22015</guid>
      <dc:creator>hashiya1112</dc:creator>
      <dc:date>2016-08-26T15:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: NetApp Harvest error: Illegal division by zero at /opt/netapp-harvest/plugin/cdo</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/NetApp-Harvest-error-nic-common-plugin-failed-to-compile/m-p/122653#M22017</link>
      <description>&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN&gt;I've &lt;/SPAN&gt;&lt;SPAN&gt;nic_common&lt;/SPAN&gt; &lt;SPAN&gt;tried to&lt;/SPAN&gt; &lt;SPAN class=""&gt;edit it as follows&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;		{
			$link_speed = 1.25 if ($h{$start}{$port}{link_speed} == 10000000 );  #10Mbit
			$link_speed = 12.5 if ($h{$start}{$port}{link_speed} == 100000000 );  #100Mbit
			$link_speed = 125  if ($h{$start}{$port}{link_speed} == 1000000000 );  #1Gbit
			$link_speed = 1250 if ($h{$start}{$port}{link_speed} == 10000000000 ); #10Gbit
		}
		elsif ($connection{normalized_xfer} eq 'kb_per_sec')
		{
			$link_speed = 1250 if ($h{$start}{$port}{link_speed} == 10000000 );  #10Mbit
			$link_speed = 12500 if ($h{$start}{$port}{link_speed} == 100000000 );  #100Mbit
			$link_speed = 125000  if ($h{$start}{$port}{link_speed} == 1000000000 );  #1Gbit
			$link_speed = 1250000 if ($h{$start}{$port}{link_speed} == 10000000000 ); #10Gbit
		}
		elsif ($connection{normalized_xfer} eq 'b_per_sec')
		{
			$link_speed = 1250000 if ($h{$start}{$port}{link_speed} == 10000000 );  #10Mbit
			$link_speed = 12500000 if ($h{$start}{$port}{link_speed} == 100000000 );  #100Mbit
			$link_speed = 125000000  if ($h{$start}{$port}{link_speed} == 1000000000 );  #1Gbit
			$link_speed = 1250000000 if ($h{$start}{$port}{link_speed} == 10000000000 ); #10Gbit
		}
		elsif ($connection{normalized_xfer} eq 'gb_per_sec')
		{
			$link_speed = .00125 if ($h{$start}{$port}{link_speed} == 10000000 );  #10Mbit
			$link_speed = .0125 if ($h{$start}{$port}{link_speed} == 100000000 );  #100Mbit
			$link_speed = .125  if ($h{$start}{$port}{link_speed} == 1000000000 );  #1Gbit
			$link_speed = 1.25  if ($h{$start}{$port}{link_speed} == 10000000000 ); #10Gbit
		}&lt;/PRE&gt;&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN class=""&gt;error is no longer out&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN class=""&gt;but &lt;SPAN&gt;Calculation&lt;/SPAN&gt; &lt;SPAN&gt;of&lt;/SPAN&gt; eth port &lt;SPAN&gt;utilization percent&lt;/SPAN&gt; &lt;SPAN&gt;became&lt;/SPAN&gt; strange&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN class=""&gt;e0M(node management port) utilization 3820 percent....&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN class=""&gt;e0M is 100Mbit port &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN class=""&gt;Hmm....&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2016 16:57:04 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/NetApp-Harvest-error-nic-common-plugin-failed-to-compile/m-p/122653#M22017</guid>
      <dc:creator>hashiya1112</dc:creator>
      <dc:date>2016-08-26T16:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: NetApp Harvest error: Illegal division by zero at /opt/netapp-harvest/plugin/cdo</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/NetApp-Harvest-error-nic-common-plugin-failed-to-compile/m-p/122659#M22018</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/53005"&gt;@hashiya1112﻿&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe give this a try:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;		my $link_speed = 1;
		if ($connection{normalized_xfer} eq 'mb_per_sec')
		{
			$link_speed = $h{$start}{$port}{link_speed} / 8000000;
		}
		elsif ($connection{normalized_xfer} eq 'kb_per_sec')
		{
			$link_speed = $h{$start}{$port}{link_speed} / 8000;
		}
		elsif ($connection{normalized_xfer} eq 'b_per_sec')
		{
			$link_speed = $h{$start}{$port}{link_speed} / 8;
		}
		elsif ($connection{normalized_xfer} eq 'gb_per_sec')
		{
			$link_speed = $h{$start}{$port}{link_speed} / 8000000000;
		}
		next if ($link_speed == 1); # Skip posting utilization if we couldn't normalize&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you still see a weird utilization check&amp;nbsp;higher in this post for instructions on how to collect logs needed to understand what is happening. &amp;nbsp;Send me these logs in a private message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;BR /&gt;Chris Madden&lt;/P&gt;&lt;P&gt;Storage Architect, NetApp EMEA (and author of Harvest)&lt;/P&gt;&lt;P&gt;Blog:&amp;nbsp;&lt;A href="http://blog.pkiwi.com/" target="_blank"&gt;It all begins with data&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If this post resolved your issue, please help others by selecting&amp;nbsp;&lt;STRONG&gt;ACCEPT AS SOLUTION&lt;/STRONG&gt;&amp;nbsp;or adding a&amp;nbsp;&lt;STRONG&gt;KUDO &lt;/STRONG&gt;or both!&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2016 19:36:06 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/NetApp-Harvest-error-nic-common-plugin-failed-to-compile/m-p/122659#M22018</guid>
      <dc:creator>madden</dc:creator>
      <dc:date>2016-08-26T19:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: NetApp Harvest error: Illegal division by zero at /opt/netapp-harvest/plugin/cdo</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/NetApp-Harvest-error-nic-common-plugin-failed-to-compile/m-p/122663#M22020</link>
      <description>&lt;P&gt;Hi Chris&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN&gt;Thanks for the&lt;/SPAN&gt; &lt;SPAN class=""&gt;code!!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;I&lt;/SPAN&gt; There is also another project&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN class=""&gt;using the harvest &lt;SPAN&gt;even&lt;/SPAN&gt; in a other project&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;We're&lt;/SPAN&gt; &lt;SPAN&gt;using the&lt;/SPAN&gt; &lt;SPAN&gt;cDOT8.2.3P3&lt;/SPAN&gt; &lt;SPAN&gt;and&lt;/SPAN&gt; &lt;SPAN&gt;cODT8.2.4P4&lt;/SPAN&gt; &lt;SPAN&gt;in another&lt;/SPAN&gt; project&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN class=""&gt;In that case&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;cp /opt/netapp-harvest/plugin/cdot-nic-common /opt/netapp-harvest/plugin/cdot-nic-common-8.2.4

vi /opt/netapp-harvest/plugin/cdot-nic-common-8.2.4
------------------Fix to this code-------------------------
		my $link_speed = 1;
		if ($connection{normalized_xfer} eq 'mb_per_sec')
		{
			$link_speed = $h{$start}{$port}{link_speed} / 8000000;
		}
		elsif ($connection{normalized_xfer} eq 'kb_per_sec')
		{
			$link_speed = $h{$start}{$port}{link_speed} / 8000;
		}
		elsif ($connection{normalized_xfer} eq 'b_per_sec')
		{
			$link_speed = $h{$start}{$port}{link_speed} / 8;
		}
		elsif ($connection{normalized_xfer} eq 'gb_per_sec')
		{
			$link_speed = $h{$start}{$port}{link_speed} / 8000000000;
		}
		next if ($link_speed == 1); # Skip posting utilization if we couldn't normalize
-------------------------------------------

cp /opt/netapp-harvest/template/default/cdot-8.2.0.conf /opt/netapp-harvest/template/default/cdot-8.2.4.conf

vi /opt/netapp-harvest/template/default/cdot-8.2.4.conf

	'nic_common' =&amp;gt;
			{ 
				counter_list     =&amp;gt; [ qw(node_name node_uuid instance_name
									rx_bytes_per_sec tx_bytes_per_sec 
									link_speed link_up_to_downs
									) ],
				graphite_leaf    =&amp;gt; 'node.{node_name}.eth_port.{instance_name}',
				plugin           =&amp;gt; 'cdot-nic-common-8.2.4',
				enabled          =&amp;gt; '1'							
			},&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;Modify the part of the plugin to create a new cdot-8.2.4.conf and cdot-nic-common-8.2.4?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;Apart from the nic_common file&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;because Calculation of eth port utilization percent became strange of cDOT8.2.3P3....&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;Regards.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Aug 2016 01:36:06 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/NetApp-Harvest-error-nic-common-plugin-failed-to-compile/m-p/122663#M22020</guid>
      <dc:creator>hashiya1112</dc:creator>
      <dc:date>2016-08-27T01:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: NetApp Harvest error: Illegal division by zero at /opt/netapp-harvest/plugin/cdo</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/NetApp-Harvest-error-nic-common-plugin-failed-to-compile/m-p/122679#M22021</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/53005"&gt;@hashiya1112﻿&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think the issue is related to bug&amp;nbsp;915637. &amp;nbsp;The counters in nic_common that track tx/rx are stored as 4bit numbers which means they rollover quite frequently which can impact display. &amp;nbsp;New 8 bit counters were added in 8.2.4 and 8.3.2 and Harvest v1.3 will include this fix. &amp;nbsp;I will contact you offline to provide a patch in the meantime.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;BR /&gt;Chris Madden&lt;/P&gt;&lt;P&gt;Storage Architect, NetApp EMEA (and author of Harvest)&lt;/P&gt;&lt;P&gt;Blog:&amp;nbsp;&lt;A href="http://blog.pkiwi.com/" target="_blank"&gt;It all begins with data&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If this post resolved your issue, please help others by selecting&amp;nbsp;&lt;STRONG&gt;ACCEPT AS SOLUTION&lt;/STRONG&gt;&amp;nbsp;or adding a&amp;nbsp;&lt;STRONG&gt;KUDO &lt;/STRONG&gt;or both!&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2016 06:32:58 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/NetApp-Harvest-error-nic-common-plugin-failed-to-compile/m-p/122679#M22021</guid>
      <dc:creator>madden</dc:creator>
      <dc:date>2016-08-29T06:32:58Z</dc:date>
    </item>
  </channel>
</rss>

