johnnynoc
2011-12-15 21:49:40 UTC
johnnynoc [http://community.zenoss.org/people/johnnynoc] created the discussion
"Interface utilization over 100%"
To view the discussion, visit: http://community.zenoss.org/message/63318#63318
--------------------------------------------------------------
Hello Zenoss-Users,
I regularly see high utilization alerts over 100% on some interfaces and haven't been able to determine why.  I'm hoping someone here could help me figure it out.
The device in question is using the ethernetCsmacd_64 template and is running CentOS 5.5.
Here is the summary of the alert:Â High Utilization: Currently (1.19 Gbps) or 118.66% is being used.
As always, thanks in advance!
John
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/63318#63318]
Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
"Interface utilization over 100%"
To view the discussion, visit: http://community.zenoss.org/message/63318#63318
--------------------------------------------------------------
Hello Zenoss-Users,
I regularly see high utilization alerts over 100% on some interfaces and haven't been able to determine why.  I'm hoping someone here could help me figure it out.
The device in question is using the ethernetCsmacd_64 template and is running CentOS 5.5.
1000000000
Here is the message in the alert:Â threshold of high utilization exceeded: current value 148319948.38Here is the summary of the alert:Â High Utilization: Currently (1.19 Gbps) or 118.66% is being used.
import re
fs_id = device.prepId(evt.component)
  if f.id != fs_id: continue
  # Extract the percent and utilization from the summary
  m = re.search("threshold of [^:]+: current value ([\d\.]+)", evt.message)
  if not m: continue
  currentusage = (float(m.groups()[0])) * 8
  if f.speed == 0: continue
  p = (currentusage / f.speed) * 100
  evtKey = evt.eventKey
  evtNewKey = ""
  # Whether Input or Output Traffic
      evtNewKey = "Input"
      evtNewKey = "Output"
  # Check the speed to determine the appropriate conversion
  # Gbps utilization
      Usage = currentusage / 1000000000
      evt.summary = "High " + evtNewKey + " Utilization: Currently (%3.2f Gbps) or %3.2f%% is being used." % (Usage, p)
  # Mbps utilization
      Usage = currentusage / 1000000
      evt.summary = "High " + evtNewKey + " Utilization: Currently (%3.2f Mbps) or %3.2f%% is being used." % (Usage, p)
  # Kbps utilization
      Usage = currentusage / 1000
      evt.summary = "High " + evtNewKey + " Utilization: Currently (%3.2f Kbps) or %3.2f%% is being used." % (Usage, p)
  # bps utilization
      Usage = currentusage
      evt.summary = "High " + evtNewKey + " Utilization: Currently (%3.2f bps) or %3.2f%% is being used." % (Usage, p)
  break
Any suggestions on what to look into? I'm assuming the problem exists with the value I'm getting as this transform seems to be standard.fs_id = device.prepId(evt.component)
  if f.id != fs_id: continue
  # Extract the percent and utilization from the summary
  m = re.search("threshold of [^:]+: current value ([\d\.]+)", evt.message)
  if not m: continue
  currentusage = (float(m.groups()[0])) * 8
  if f.speed == 0: continue
  p = (currentusage / f.speed) * 100
  evtKey = evt.eventKey
  evtNewKey = ""
  # Whether Input or Output Traffic
      evtNewKey = "Input"
      evtNewKey = "Output"
  # Check the speed to determine the appropriate conversion
  # Gbps utilization
      Usage = currentusage / 1000000000
      evt.summary = "High " + evtNewKey + " Utilization: Currently (%3.2f Gbps) or %3.2f%% is being used." % (Usage, p)
  # Mbps utilization
      Usage = currentusage / 1000000
      evt.summary = "High " + evtNewKey + " Utilization: Currently (%3.2f Mbps) or %3.2f%% is being used." % (Usage, p)
  # Kbps utilization
      Usage = currentusage / 1000
      evt.summary = "High " + evtNewKey + " Utilization: Currently (%3.2f Kbps) or %3.2f%% is being used." % (Usage, p)
  # bps utilization
      Usage = currentusage
      evt.summary = "High " + evtNewKey + " Utilization: Currently (%3.2f bps) or %3.2f%% is being used." % (Usage, p)
  break
As always, thanks in advance!
John
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/63318#63318]
Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]