Hello,
[HP NNMi integration 2.4.2]
I need to make some enrichments in APXML message. Source Node attributes is not polled from HP NNMi (please see raw content below).
I want to add attribute Device Category And Device Profile from Source Node
How can I do this? It seems I need to make additional call to HP NNMi webservice with Node Name token.
I found this function in nnmi-response.js, but didn't know which properties this object have.
/** * Retrieve the Node using its name. * @param nodeName * @return Node * @throws RemoteException * @throws NmsNodeFaultException0 */ function getNode(params) { var nnmiUser = params.remove("nnmiUser"); var nnmiPass = params.remove("nnmiPass"); var nodeName = params.get( "nodeName" ); var wrapper = new NetworkNodeManagerMobileGatewayWrapper(NNMI_HOST, NNMI_PORT, nnmiUser, nnmiPass); try{ return wrapper.getNode(nodeName); }catch(e){ return e; } }
What I currently get in apia.content, not much.
2012-11-23 08:08:16,867 [httpConnector.receiver.3] DEBUG - Agent Client: [hpnnmi.js] MSKcontent: <arg0 xmlns:sys="http://notification.sdk.nms.ov.hp.com/nms-sdk-notify" xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:wse="http://schemas.xmlsoap.org/ws/2004/08/eventing"> <id>49392132532</id> <uuid>583329de-a161-4a6b-97de-21407add6301</uuid> <name>TestTrap</name> <sourceUuid>null</sourceUuid> <sourceName>none</sourceName> <sourceNodeUuid>1a85b8a6-debc-4946-9e35-db2eb1c26e5e</sourceNodeUuid> <sourceNodeName>esxcl07</sourceNodeName> <sourceNodeLongName>esxcl07.somedomain.tt</sourceNodeLongName> <lifecycleState>com.hp.nms.incident.lifecycle.Registered</lifecycleState> <severity>CRITICAL</severity> <priority>com.hp.nms.incident.priority.None</priority> <category>com.hp.nms.incident.category.Status</category> <family>com.hp.nms.incident.family.Node</family> <nature>ROOTCAUSE</nature> <origin>SNMPTRAP</origin> <duplicateCount>0</duplicateCount> <rcaActive>false</rcaActive> <formattedMessage>Test trap for XMatters testing</formattedMessage> <originOccurrenceTime>2012-11-23T09:08:16.747+04:00</originOccurrenceTime> <firstOccurrenceTime>2012-11-23T09:08:16.750+04:00</firstOccurrenceTime> <lastOccurrenceTime>2012-11-23T09:08:16.750+04:00</lastOccurrenceTime> <incidentResent>0</incidentResent> <created>2012-11-23T09:08:16.762+04:00</created> <previousLifecycleState/> <previousRcaActive/> <cias> <name>MF_Category</name> <type>STRING</type> <value>ESXhost Network events</value> </cias> <cias> <name>cia.address</name> <type>STRING</type> <value>10.99.191.17</value> </cias> <cias> <name>cia.snmpoid</name> <type>STRING</type> <value>.1.3.6.1.4.1.11.2.17.1.0.50009</value> </cias> <cias> <name>cia.tenant.name</name> <type>STRING</type> <value>Windows_SAS</value> </cias> <cias> <name>cia.tenant.uuid</name> <type>STRING</type> <value>72d5253d-57f8-4864-8939-c88f42fc7945</value> </cias></arg0>