<?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: New SNMP Component in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/New-SNMP-Component/m-p/2272947#M50085</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;org.snmp4j.CommunityTarget mCommunityTarget = null;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;mCommunityTarget is initialized as null and just after you try to use a set method on it.&lt;BR /&gt;So it's logical to have a null pointer problem.&lt;BR /&gt;HTH,</description>
    <pubDate>Wed, 03 Dec 2008 21:23:11 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2008-12-03T21:23:11Z</dc:date>
    <item>
      <title>New SNMP Component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/New-SNMP-Component/m-p/2272946#M50084</link>
      <description>I've been trying to develop a new component for sending simple SNMP messages from Talend. Think of it as an alternative to a tWarn. However, my java skills are lacking, and I'm kind of stuck. 
&lt;BR /&gt;Basically, I keep getting a NullPointer exception and I'm not sure why. My component uses the SNMP4J library. This component isn't finished yet, but if someone could have a look and maybe point me in the right direction I would be most grateful. 
&lt;BR /&gt;Here are the files to create the component. You can find it under the "Internet" heading. It's called tSNMP. 
&lt;BR /&gt;tSNMP_main.javajet 
&lt;BR /&gt; 
&lt;PRE&gt;&amp;lt;%@ jet &lt;BR /&gt;	imports="&lt;BR /&gt;		org.talend.core.model.process.INode &lt;BR /&gt;		org.talend.core.model.process.ElementParameterParser &lt;BR /&gt;		org.talend.core.model.metadata.IMetadataTable &lt;BR /&gt;		org.talend.core.model.metadata.IMetadataColumn &lt;BR /&gt;		org.talend.core.model.process.IConnection&lt;BR /&gt;		org.talend.core.model.process.IConnectionCategory&lt;BR /&gt;		org.talend.designer.codegen.config.CodeGeneratorArgument&lt;BR /&gt;		org.talend.core.model.metadata.types.JavaTypesManager&lt;BR /&gt;		org.talend.core.model.metadata.types.JavaType&lt;BR /&gt;		java.util.List &lt;BR /&gt;    	java.util.Map&lt;BR /&gt;    	java.util.StringTokenizer&lt;BR /&gt;    	java.net.InetAddress&lt;BR /&gt;    	&lt;BR /&gt;	" &lt;BR /&gt;%&amp;gt;&lt;BR /&gt;&amp;lt;% &lt;BR /&gt;    CodeGeneratorArgument codeGenArgument = (CodeGeneratorArgument) argument;&lt;BR /&gt;    INode node = (INode)codeGenArgument.getArgument();&lt;BR /&gt;    String cid = node.getUniqueName();&lt;BR /&gt;    &lt;BR /&gt;    &lt;BR /&gt;	//InetAddress snmp_server = InetAddress.getByName(ElementParameterParser.getValue(node, "__SNMP_SERVER__"));&lt;BR /&gt;	//InetAddress snmp_server = InetAddress.getByName("noc1-iis1.uscc.com");&lt;BR /&gt;	String snmp_server = ElementParameterParser.getValue(node, "__SNMP_SERVER__");&lt;BR /&gt;    int snmp_port = Integer.parseInt(ElementParameterParser.getValue(node, "__SNMP_SERVER_PORT__"));&lt;BR /&gt;    String snmp_oid = ElementParameterParser.getValue(node, "__OID__");&lt;BR /&gt;    String snmp_com = ElementParameterParser.getValue(node, "__COMMUNITY_STRING__");&lt;BR /&gt;    String snmp_msg = ElementParameterParser.getValue(node, "__SNMP_MSG__");&lt;BR /&gt;    &lt;BR /&gt;        &lt;BR /&gt;    &lt;BR /&gt;%&amp;gt;&lt;BR /&gt;   org.snmp4j.Snmp mSnmp = null;&lt;BR /&gt;   org.snmp4j.CommunityTarget mCommunityTarget = null;&lt;BR /&gt;   &lt;BR /&gt;   org.snmp4j.TransportMapping vTransport = new org.snmp4j.transport.DefaultUdpTransportMapping();&lt;BR /&gt;   mSnmp = new org.snmp4j.Snmp(vTransport);&lt;BR /&gt;   org.snmp4j.PDUv1 vTrapPdu = new org.snmp4j.PDUv1();&lt;BR /&gt;   vTransport.listen();&lt;BR /&gt;   &lt;BR /&gt;   //SETUP FROM USER&lt;BR /&gt;   mCommunityTarget.setCommunity(new org.snmp4j.smi.OctetString(&amp;lt;%=snmp_com %&amp;gt;));&lt;BR /&gt;   mCommunityTarget.setAddress(new org.snmp4j.smi.UdpAddress(java.net.InetAddress.getByName(&amp;lt;%=snmp_server %&amp;gt;),&amp;lt;%=snmp_port %&amp;gt;));   &lt;BR /&gt;   mCommunityTarget.setRetries(4);&lt;BR /&gt;   mCommunityTarget.setTimeout(4096);&lt;BR /&gt;   mCommunityTarget.setVersion(org.snmp4j.mp.SnmpConstants.version1);&lt;BR /&gt;   //vTrapPdu.setType(org.snmp4j.PDU.V1TRAP);&lt;BR /&gt;   vTrapPdu.setGenericTrap(6);&lt;BR /&gt;   vTrapPdu.setSpecificTrap(org.snmp4j.PDUv1.ENTERPRISE_SPECIFIC);&lt;BR /&gt;     &lt;BR /&gt;   vTrapPdu.setEnterprise(new org.snmp4j.smi.OID(&amp;lt;%=snmp_oid %&amp;gt;));&lt;BR /&gt;   vTrapPdu.setTimestamp((long)java.lang.System.currentTimeMillis()/10l);&lt;BR /&gt;   vTrapPdu.add(new org.snmp4j.smi.VariableBinding(new org.snmp4j.smi.OID(&amp;lt;%=snmp_oid %&amp;gt;), new org.snmp4j.smi.OctetString(&amp;lt;%=snmp_msg %&amp;gt;)));&lt;BR /&gt;   mSnmp.send(vTrapPdu, mCommunityTarget);&lt;/PRE&gt; 
&lt;BR /&gt;tSNMP_java.xml 
&lt;BR /&gt; 
&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&amp;lt;COMPONENT&amp;gt; &lt;BR /&gt;  &amp;lt;HEADER AUTHOR="Dustin W" COMPATIBILITY="ALL" DATA_AUTO_PROPAGATE="false" PLATEFORM="ALL" RELEASE_DATE="20080229A" SERIAL="" STARTABLE="true" STATUS="ALPHA" VERSION="0.1"&amp;gt; &lt;BR /&gt;    &amp;lt;SIGNATURE/&amp;gt; &lt;BR /&gt;  &amp;lt;/HEADER&amp;gt;  &lt;BR /&gt;  &amp;lt;DOCUMENTATION&amp;gt; &lt;BR /&gt;    &amp;lt;URL/&amp;gt; &lt;BR /&gt;  &amp;lt;/DOCUMENTATION&amp;gt;  &lt;BR /&gt;  &amp;lt;CONNECTORS&amp;gt;&lt;BR /&gt;    &amp;lt;CONNECTOR CTYPE="SUBJOB_OK" MAX_INPUT="1" /&amp;gt;&lt;BR /&gt;    &amp;lt;CONNECTOR CTYPE="SUBJOB_ERROR" MAX_INPUT="1" /&amp;gt;&lt;BR /&gt;    &amp;lt;CONNECTOR CTYPE="COMPONENT_OK"/&amp;gt;&lt;BR /&gt;    &amp;lt;CONNECTOR CTYPE="COMPONENT_ERROR"/&amp;gt;&lt;BR /&gt;    &amp;lt;CONNECTOR CTYPE="RUN_IF"/&amp;gt;	&lt;BR /&gt;&amp;lt;/CONNECTORS&amp;gt;  &lt;BR /&gt;  &amp;lt;PARAMETERS&amp;gt; &lt;BR /&gt;    &amp;lt;PARAMETER FIELD="TEXT" NAME="SNMP_SERVER" REQUIRED="true" NB_LINES="1" NUM_ROW="10"&amp;gt; &amp;lt;DEFAULT&amp;gt;"127.0.0.1"&amp;lt;/DEFAULT&amp;gt; &amp;lt;/PARAMETER&amp;gt; &lt;BR /&gt;    &amp;lt;PARAMETER FIELD="TEXT" NAME="SNMP_SERVER_PORT" REQUIRED="true" NB_LINES="1" NUM_ROW="10"&amp;gt; &amp;lt;DEFAULT&amp;gt;162&amp;lt;/DEFAULT&amp;gt; &amp;lt;/PARAMETER&amp;gt; &lt;BR /&gt;    &amp;lt;PARAMETER FIELD="TEXT" NAME="OID" NB_LINES="1" REQUIRED="true" NUM_ROW="30"&amp;gt; &amp;lt;DEFAULT&amp;gt;".1.3.6.1.4.1.99998"&amp;lt;/DEFAULT&amp;gt; &amp;lt;/PARAMETER&amp;gt; &lt;BR /&gt;    &amp;lt;PARAMETER FIELD="TEXT" NAME="COMMUNITY_STRING" REQUIRED="true" NB_LINES="1" NUM_ROW="40"&amp;gt; &amp;lt;DEFAULT&amp;gt;"public"&amp;lt;/DEFAULT&amp;gt; &amp;lt;/PARAMETER&amp;gt;&lt;BR /&gt;    &amp;lt;PARAMETER FIELD="TEXT" NAME="SNMP_MSG" REQUIRED="true" NB_LINES="1" NUM_ROW="50"&amp;gt; &amp;lt;DEFAULT&amp;gt;"Your custom error message goes here"&amp;lt;/DEFAULT&amp;gt; &amp;lt;/PARAMETER&amp;gt;&lt;BR /&gt;    &lt;BR /&gt;  &amp;lt;/PARAMETERS&amp;gt;  &lt;BR /&gt;  &amp;lt;CODEGENERATION&amp;gt; &lt;BR /&gt;    &amp;lt;IMPORTS&amp;gt;&lt;BR /&gt;    &amp;lt;IMPORT NAME="SNMP4J" MODULE="SNMP4J.jar" REQUIRED="true"/&amp;gt;&lt;BR /&gt;    &amp;lt;/IMPORTS&amp;gt;&lt;BR /&gt;  &amp;lt;/CODEGENERATION&amp;gt;  &lt;BR /&gt;  &amp;lt;RETURNS&amp;gt;&amp;lt;/RETURNS&amp;gt; &lt;BR /&gt;&amp;lt;/COMPONENT&amp;gt;&lt;/PRE&gt; 
&lt;BR /&gt;tSNMP_messages.properties 
&lt;BR /&gt; 
&lt;PRE&gt;#&lt;BR /&gt;#Tue Nov 25 18:13:37 CST 2008&lt;BR /&gt;PROPERTY.NAME=PROPERTY&lt;BR /&gt;OID.NAME=OID&lt;BR /&gt;NB_LINE.NAME=NB_LINE&lt;BR /&gt;FAMILY=Internet&lt;BR /&gt;HELP=org.talend.help.tSNMP&lt;BR /&gt;LONG_NAME=Send SNMP trap message&lt;BR /&gt;SNMP_SERVER.NAME=SNMP Server&lt;BR /&gt;COMMUNITY_STRING.NAME=Community String&lt;BR /&gt;SNMP_MSG.NAME=SNMP Message&lt;BR /&gt;NAME=tSNMP&lt;BR /&gt;SNMP_SERVER_PORT.NAME=SNMP Server Port&lt;/PRE&gt;</description>
      <pubDate>Sat, 16 Nov 2024 14:08:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/New-SNMP-Component/m-p/2272946#M50084</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T14:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: New SNMP Component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/New-SNMP-Component/m-p/2272947#M50085</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;org.snmp4j.CommunityTarget mCommunityTarget = null;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;mCommunityTarget is initialized as null and just after you try to use a set method on it.&lt;BR /&gt;So it's logical to have a null pointer problem.&lt;BR /&gt;HTH,</description>
      <pubDate>Wed, 03 Dec 2008 21:23:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/New-SNMP-Component/m-p/2272947#M50085</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-12-03T21:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: New SNMP Component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/New-SNMP-Component/m-p/2272948#M50086</link>
      <description>That was it! Thank you so much! Ok, just some more clean up and testing and I will release this into the wild.</description>
      <pubDate>Wed, 03 Dec 2008 22:17:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/New-SNMP-Component/m-p/2272948#M50086</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-12-03T22:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: New SNMP Component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/New-SNMP-Component/m-p/2272949#M50087</link>
      <description>Ok, this is up in beta form on the ecosystem! Thanks again for your help.</description>
      <pubDate>Thu, 04 Dec 2008 16:24:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/New-SNMP-Component/m-p/2272949#M50087</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-12-04T16:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: New SNMP Component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/New-SNMP-Component/m-p/2272950#M50088</link>
      <description>Great, Congratulations !</description>
      <pubDate>Fri, 05 Dec 2008 00:39:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/New-SNMP-Component/m-p/2272950#M50088</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-12-05T00:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: New SNMP Component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/New-SNMP-Component/m-p/2272951#M50089</link>
      <description>Hi dweaver,
&lt;BR /&gt;I added this component in my Talend palette. Can you give your inputs on configuring tSNMP component in Talend Job. I am using TOS v 3.2 r3300. Any PDF or image on this component is appreciable.
&lt;BR /&gt;Thanks in Advance
&lt;BR /&gt;Naju</description>
      <pubDate>Fri, 26 Feb 2010 07:17:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/New-SNMP-Component/m-p/2272951#M50089</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-26T07:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: New SNMP Component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/New-SNMP-Component/m-p/2272952#M50090</link>
      <description>I don't have a PDF or image, but it's really simple. Just create a link from your subjob to the component using the "On Subjob Error" link. In the "SNMP Message" part, just hit Ctl+Space to bring up the list of variables in Talend. From this list, you can choose the subjob.error from the list. 
&lt;BR /&gt;Make sure you change the IP,port, and community string to match your environment.</description>
      <pubDate>Mon, 01 Mar 2010 15:39:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/New-SNMP-Component/m-p/2272952#M50090</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-03-01T15:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: New SNMP Component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/New-SNMP-Component/m-p/2272953#M50091</link>
      <description>Hi dweaver ,&lt;BR /&gt;i have done all that you said to make tsnmp to work but it is not working i am unable to see the message.&lt;BR /&gt;can you help me how to display the message infront of user&lt;BR /&gt;Thanks in advance&lt;BR /&gt;hari</description>
      <pubDate>Thu, 04 Mar 2010 06:22:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/New-SNMP-Component/m-p/2272953#M50091</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2010-03-04T06:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: New SNMP Component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/New-SNMP-Component/m-p/2272954#M50092</link>
      <description>Do you have your SNMP settings correct? I would start out by installing a trap receiver on your local machine:
&lt;BR /&gt;
&lt;A href="http://www.trapreceiver.com/" rel="nofollow noopener noreferrer"&gt;http://www.trapreceiver.com/&lt;/A&gt;
&lt;BR /&gt;Then you can see how the messages look. 
&lt;BR /&gt;Also, if you'll post a screen shot of your job, I can get a better idea of what you're doing.</description>
      <pubDate>Thu, 04 Mar 2010 15:21:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/New-SNMP-Component/m-p/2272954#M50092</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-03-04T15:21:36Z</dc:date>
    </item>
    <item>
      <title>Re: New SNMP Component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/New-SNMP-Component/m-p/2272955#M50093</link>
      <description>I have updated this component to allow you to set trap types. 
&lt;BR /&gt;We are using this component in our environment 3 ways: 
&lt;BR /&gt;1. Send a heartbeat message to our fault management system to check if ANY jobs run (Complete Talend failure) 
&lt;BR /&gt;2. Send a heartbeat message to our fault management system if a single job server runs (Jobserver failure) 
&lt;BR /&gt;3. Send a specific trap if a failure in the job (tWarn, tDie replacement). 
&lt;BR /&gt;Using these 3 ways, we now have a complete monitoring picture of our Talend environment. 
&lt;BR /&gt;You can find it here: 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCsRfCAK" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/tRouter/td-p/57225&lt;/A&gt;</description>
      <pubDate>Wed, 01 Dec 2010 22:30:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/New-SNMP-Component/m-p/2272955#M50093</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-01T22:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: New SNMP Component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/New-SNMP-Component/m-p/2272956#M50094</link>
      <description>dweaver,
&lt;BR /&gt;Thank you so much for creating this component! 
&lt;BR /&gt;It took me some time to figure out how it works ( as I didn't know anything about SNMP myself) and now that it's working it fits the needs. 
&lt;BR /&gt;So once again thanks for creating and sharing this component with the community!!
&lt;BR /&gt;Regards,
&lt;BR /&gt;Mario De Pauw</description>
      <pubDate>Mon, 31 Dec 2012 14:58:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/New-SNMP-Component/m-p/2272956#M50094</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-12-31T14:58:10Z</dc:date>
    </item>
  </channel>
</rss>

