<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:clearspace="http://www.jivesoftware.com/xmlns/clearspace/rss" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>Event Transforms : Event Transforms &amp; Examples : Comments</title>
    <link>http://community.zenoss.org/docs/DOC-2554#comments</link>
    <description>Comments on : Event Transforms &amp; Examples</description>
    <language>en</language>
    <pubDate>Wed, 16 Jun 2010 18:45:51 GMT</pubDate>
    <generator>Jive SBS 4.5.6.2  (http://jivesoftware.com/products/clearspace/)</generator>
    <dc:date>2010-06-16T18:45:51Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>RE: Event Transforms &amp; Examples</title>
      <link>http://community.zenoss.org/docs/DOC-2554#comments-2155</link>
      <description>&lt;!-- [DocumentBodyStart:d7f75539-f272-463b-8371-79afe0d092ed] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Can someone elaborate on this statement? "You have to go into the event mapping, edit and put the transform there." I made several attempts to add a transform on bad OID via /Perf/SNMP from the example and nothing is working to drop the events via the class or higher.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;- Ken&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:d7f75539-f272-463b-8371-79afe0d092ed] --&gt;</description>
      <pubDate>Wed, 16 Jun 2010 18:45:51 GMT</pubDate>
      <author>community@zenoss.org</author>
      <guid>http://community.zenoss.org/docs/DOC-2554#comments-2155</guid>
      <dc:date>2010-06-16T18:45:51Z</dc:date>
      <clearspace:dateToText>3 years, 9 months ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>RE: Event Transforms &amp; Examples</title>
      <link>http://community.zenoss.org/docs/DOC-2554#comments-2175</link>
      <description>&lt;!-- [DocumentBodyStart:ef1b8070-8c3e-4828-9583-12b8e8aaf777] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;&lt;span&gt;This has to do with where you place the Transform. I suggest you first fully read the section of the admin guide about Transforms, it explains some basics there. &lt;/span&gt;&lt;a class="jive-link-external-small" href="http://docs.zenoss.com"&gt;http://docs.zenoss.com&lt;/a&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;Also you have to understand what mappings are. Read too about these. Mappings allow unmapped events (there are not many - stuff like eventlogs, syslogs) to be put into an event class. Most events made by zenoss already have an event class assigned to them. These do not need mappings. So really, it depends on if the events you are trying to effect, come in with a mapping or already have them.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;If you dont see a transform working, check the zenhub.log to make sure there isnt a traceback in it. Maybe the transform code doesnt work on newer versions, or it was wrong to begin with. If so, it will show in this log, and you have to fix it. Goodluck&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;blockquote class="jive-quote"&gt;&lt;p&gt;Can someone elaborate on this statement? "You have to go into the event mapping, edit and put the transform there." I made several attempts to add a transform on bad OID via /Perf/SNMP from the example and nothing is working to drop the events via the class or higher.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;- Ken&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:ef1b8070-8c3e-4828-9583-12b8e8aaf777] --&gt;</description>
      <pubDate>Wed, 16 Jun 2010 20:27:37 GMT</pubDate>
      <author>community@zenoss.org</author>
      <guid>http://community.zenoss.org/docs/DOC-2554#comments-2175</guid>
      <dc:date>2010-06-16T20:27:37Z</dc:date>
      <clearspace:dateToText>3 years, 9 months ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>RE: Event Transforms &amp; Examples</title>
      <link>http://community.zenoss.org/docs/DOC-2554#comments-3578</link>
      <description>&lt;!-- [DocumentBodyStart:8e3e66d3-74fa-4941-bc2c-85fa5719956d] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;The "Interface High Utilization event enhancement using if,then,else" is something I have been looking for.&lt;/p&gt;&lt;p&gt;However when this is event is triggered I am getting the following in my email alert:&lt;/p&gt;&lt;p&gt;"threshold of high utilization exceeded: current value 1958856.28"&lt;/p&gt;&lt;p&gt;In the zenhub.log I am seeing the following when the event is triggered.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;Problem on line 28: NameError: name 'evtNewKey' is not defined&lt;br/&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; evt.summary = "High " + evtNewKey + " Utilization: Currently (%3.2f Mbps) or %3.2f%%&amp;#160; is being used." %&amp;#160; (Usage, p)&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;I am running Zenoss Core version 3.0.3 on a RHEL 5.5 x86_64 server.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;I do not understand python and will look on the web and see if i can find a solution but thought I would ask here as well.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;Please let me know what the solution is or if you need more information.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;TIA,&lt;/p&gt;&lt;p&gt;brian&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:8e3e66d3-74fa-4941-bc2c-85fa5719956d] --&gt;</description>
      <pubDate>Fri, 04 Mar 2011 00:01:16 GMT</pubDate>
      <author>community@zenoss.org</author>
      <guid>http://community.zenoss.org/docs/DOC-2554#comments-3578</guid>
      <dc:date>2011-03-04T00:01:16Z</dc:date>
      <clearspace:dateToText>3 years, 1 week ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>RE: Event Transforms &amp; Examples</title>
      <link>http://community.zenoss.org/docs/DOC-2554#comments-3974</link>
      <description>&lt;!-- [DocumentBodyStart:6ce9e764-6906-4996-be85-ffeeace4a88a] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Follow the logic of the code - evtNewKey is defined right above that code in the two ifs:&lt;/p&gt;&lt;pre&gt;&amp;#160;&amp;#160; if evtKey == "ifInOctets_ifInOctets|high utilization":&lt;br/&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; evtNewKey = "Input"&lt;br/&gt;&amp;#160;&amp;#160; elif evtKey == "ifOutOctets_ifOutOctets|high utilization":&lt;br/&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; evtNewKey = "Output"&lt;/pre&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;Maybe one of those ifs is not being run, and so the variable is not being initialized or set.&lt;/p&gt;&lt;p&gt;Can you try changing to:&lt;/p&gt;&lt;pre&gt;&amp;#160;&amp;#160; if evtKey == "ifInOctets_ifInOctets|high utilization":&lt;br/&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; evtNewKey = "Input"&lt;br/&gt;&amp;#160;&amp;#160; elif evtKey == "ifOutOctets_ifOutOctets|high utilization":&lt;br/&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; evtNewKey = "Output"&lt;br/&gt;&amp;#160;&amp;#160; else:&lt;br/&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; evtNewKey = "Input or Output"&lt;/pre&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:6ce9e764-6906-4996-be85-ffeeace4a88a] --&gt;</description>
      <pubDate>Wed, 25 May 2011 19:38:03 GMT</pubDate>
      <author>community@zenoss.org</author>
      <guid>http://community.zenoss.org/docs/DOC-2554#comments-3974</guid>
      <dc:date>2011-05-25T19:38:03Z</dc:date>
      <clearspace:dateToText>2 years, 9 months ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>RE: Event Transforms &amp; Examples</title>
      <link>http://community.zenoss.org/docs/DOC-2554#comments-4007</link>
      <description>&lt;!-- [DocumentBodyStart:fdf5f8fc-d30c-4d86-bf6a-e1048685939e] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Thanks Nick! that worked. But now i'm facing another issue, for some reason the 'event summary' is showing incorrect values for interface utilization events. Sometimes the utilization event comes for High Outbound utilization but displays the values of Inbound traffic and vice versa.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;For example:&lt;/p&gt;&lt;p&gt;Below event view details is for an Interface with HighOutput utilization and the event dedupid is for Outbound traffic but the value is showing of Inbound traffic. The Outbound traffic utilization value should have been something around 3.8 Mbps&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;dedupid: &lt;/strong&gt;&amp;#160; Router123 |Multilink123|/Perf/Interface|ifHCOutOctets_ifHCOutOctets|high utilization|2&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Message:&lt;/strong&gt; threshold of high utilization exceeded: current value 116402.76&lt;/p&gt;&lt;p&gt;&lt;strong&gt;summary&lt;/strong&gt;: High&amp;#160; Input or Output Utilization: Currently (931.22 Kbps) or 30.31%&amp;#160; is being used.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;Not sure if the transform is working properly, please advise.....&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Subba&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:fdf5f8fc-d30c-4d86-bf6a-e1048685939e] --&gt;</description>
      <pubDate>Tue, 31 May 2011 19:17:43 GMT</pubDate>
      <author>community@zenoss.org</author>
      <guid>http://community.zenoss.org/docs/DOC-2554#comments-4007</guid>
      <dc:date>2011-05-31T19:17:43Z</dc:date>
      <clearspace:dateToText>2 years, 9 months ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>RE: Event Transforms &amp; Examples</title>
      <link>http://community.zenoss.org/docs/DOC-2554#comments-4661</link>
      <description>&lt;!-- [DocumentBodyStart:81e942d9-ccd0-447f-8a89-ce464e10e32f] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Great examples. I'm wondering if its possible to have an event transformation check for other events or other device status. For example, I have two ActiveMQ brokers I monitor via JMX in an active/passive failover.&amp;#160; The passive reports "Connection refused" when it is not active. I want to set both of these to Info and only transform to Error when connections on both&amp;#160; devices are refused.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:81e942d9-ccd0-447f-8a89-ce464e10e32f] --&gt;</description>
      <pubDate>Tue, 11 Oct 2011 18:25:18 GMT</pubDate>
      <author>community@zenoss.org</author>
      <guid>http://community.zenoss.org/docs/DOC-2554#comments-4661</guid>
      <dc:date>2011-10-11T18:25:18Z</dc:date>
      <clearspace:dateToText>2 years, 5 months ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>RE: Event Transforms &amp; Examples</title>
      <link>http://community.zenoss.org/docs/DOC-2554#comments-4930</link>
      <description>&lt;!-- [DocumentBodyStart:33c926ff-1f4e-468a-a24e-510ab6d59379] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Subba,&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;Are you using SNMP v1 or v2c for your device?&amp;#160; I had the same problem and was able to resolve it by modifying the template to use the 64bit counter variables.&amp;#160; Here is what I changed:&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;# Whether Input or Output Traffic&lt;/p&gt;&lt;p&gt;&amp;#160;&amp;#160; if evtKey == "ifHCInOctets_ifHCInOctets|high utilization":&lt;/p&gt;&lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; evtNewKey = "Input"&lt;/p&gt;&lt;p&gt;&amp;#160;&amp;#160; elif evtKey == "ifHCOutOctets_ifHCOutOctets|high utilization": &lt;/p&gt;&lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; evtNewKey = "Output"&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;This allowed the transform to properly detect whether it was Input or Ouput.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;Best,&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;Matthew&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:33c926ff-1f4e-468a-a24e-510ab6d59379] --&gt;</description>
      <pubDate>Thu, 29 Dec 2011 16:57:48 GMT</pubDate>
      <author>community@zenoss.org</author>
      <guid>http://community.zenoss.org/docs/DOC-2554#comments-4930</guid>
      <dc:date>2011-12-29T16:57:48Z</dc:date>
      <clearspace:dateToText>2 years, 2 months ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>RE: Event Transforms &amp; Examples</title>
      <link>http://community.zenoss.org/docs/DOC-2554#comments-5452</link>
      <description>&lt;!-- [DocumentBodyStart:c3a25a69-588f-46f4-9840-608fb97cb5d4] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Here is a transform that will run a command (sqlplus in my example) and append the output of the script to the event message. I used this with a threshold alert on database jobs&amp;#160; that were running too long, to show which jobs were running too long.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;from subprocess import Popen, PIPE&lt;/p&gt;&lt;p&gt;if evt.device == '&amp;lt;devicename&amp;gt;':&lt;/p&gt;&lt;p&gt;&amp;#160; cmd = Popen(['sqlplus -s &amp;lt;sql.sql'], stdout=PIPE, shell=True)&lt;/p&gt;&lt;p&gt;&amp;#160; output = cmd.communicate()[0]&lt;/p&gt;&lt;p&gt;&amp;#160; evt.message += "\n" + output&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:c3a25a69-588f-46f4-9840-608fb97cb5d4] --&gt;</description>
      <pubDate>Wed, 28 Mar 2012 20:12:31 GMT</pubDate>
      <author>community@zenoss.org</author>
      <guid>http://community.zenoss.org/docs/DOC-2554#comments-5452</guid>
      <dc:date>2012-03-28T20:12:31Z</dc:date>
      <clearspace:dateToText>1 year, 11 months ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
  </channel>
</rss>

