Hi Guys,
we are using IVR application named CXP which has some webservices allow us to monitor status of the IVR application, i.e., #Total calls, rejected calls, active calls, list of instances, status of instance, ....
I have Script item (queryGIVR-detailed.sh) returning a XML result. Right in the preprocessing I am converting the result to JSON.
Dependent Item queryGIVR-detailed.sh: Instances details I am parsing JSON path $.result.serverInstances.serverInstance to get result array like:
My plan is to take stats for each instance (node123_8099, node123_8100, node123_8101).
I have created Discovery rule, dependent on Instances details: Instances, with these LLD macros:

No error is reported in the list so I suppose that it is working well.
However I do not know how to continue.
I wanted to create Item Prototype which will pick i.e. Status but getting error with Key.
What I am doing wrong and is it possible to do it by this way at all?
Thank you, Reddy
we are using IVR application named CXP which has some webservices allow us to monitor status of the IVR application, i.e., #Total calls, rejected calls, active calls, list of instances, status of instance, ....
I have Script item (queryGIVR-detailed.sh) returning a XML result. Right in the preprocessing I am converting the result to JSON.
Dependent Item queryGIVR-detailed.sh: Instances details I am parsing JSON path $.result.serverInstances.serverInstance to get result array like:
Code:
[{"error":"None","queueErr":null,"startTime":"2024-04-21T01:19:48+0200","proxy":"Enabled","jmsEmbeddedBroker":"true","configuredPort":"8099","freeMemoryMB":"9107","infostoreErr":null,"contextCookies":"Enabled/Unavailable","abortedSessions":"7","rejectedSessions":"3","clusterID":"DefaultCluster","configuredSecurePort":null,"customDBLogging":"Enabled/Unavailable","detectedIP":"165.0.0.1","totalMemoryMB":"13204","finishedSessions":"1234","activeSessions":"10","reportingDBErr":null,"queueAvailable":"Enabled/N/A","usedMemoryMB":"4097","customDBErr":null,"status":"STARTED","systemDBLogging":"Enabled","master":"true","instanceName":"node123_8099","jmsMessagesSystem":"0","clusterMode":"network","totalSessions":"1254","jmsMessagesCustom":"0","contextCookieErr":null,"group":null,"infostoreMode":"Direct","configuredIP":"165.0.0.1"},{"error":"None","queueErr":null,"startTime":"2024-04-21T01:19:53+0200","proxy":"Enabled","jmsEmbeddedBroker":"true","configuredPort":"8100","freeMemoryMB":"9170","infostoreErr":null,"contextCookies":"Enabled/Unavailable","abortedSessions":"5","rejectedSessions":"0","clusterID":"DefaultCluster","configuredSecurePort":null,"customDBLogging":"Enabled/Unavailable","detectedIP":"165.0.0.1","totalMemoryMB":"13204","finishedSessions":"1097","activeSessions":"12","reportingDBErr":null,"queueAvailable":"Enabled/N/A","usedMemoryMB":"4034","customDBErr":null,"status":"STARTED","systemDBLogging":"Enabled","master":"false","instanceName":"node123_8100","jmsMessagesSystem":"0","clusterMode":"network","totalSessions":"1114","jmsMessagesCustom":"0","contextCookieErr":null,"group":null,"infostoreMode":"Direct","configuredIP":"165.0.0.1"},{"error":"None","queueErr":null,"startTime":"2024-04-21T01:20:00+0200","proxy":"Enabled","jmsEmbeddedBroker":"true","configuredPort":"8101","freeMemoryMB":"9692","infostoreErr":null,"contextCookies":"Enabled/Unavailable","abortedSessions":"2","rejectedSessions":"0","clusterID":"DefaultCluster","configuredSecurePort":null,"customDBLogging":"Enabled/Unavailable","detectedIP":"165.0.0.1","totalMemoryMB":"13204","finishedSessions":"685","activeSessions":"2","reportingDBErr":null,"queueAvailable":"Enabled/N/A","usedMemoryMB":"3512","customDBErr":null,"status":"STARTED","systemDBLogging":"Enabled","master":"false","instanceName":"node123_8101","jmsMessagesSystem":"0","clusterMode":"network","totalSessions":"689","jmsMessagesCustom":"0","contextCookieErr":null,"group":null,"infostoreMode":"Direct","configuredIP":"165.0.0.1"}]
I have created Discovery rule, dependent on Instances details: Instances, with these LLD macros:
No error is reported in the list so I suppose that it is working well.
However I do not know how to continue.
I wanted to create Item Prototype which will pick i.e. Status but getting error with Key.
What I am doing wrong and is it possible to do it by this way at all?
Thank you, Reddy

Comment