<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Parsing webpage result]]></title><description><![CDATA[<p dir="auto">Hello</p>
<p dir="auto">Is it possible to parse webpage output into dci result?</p>
<p dir="auto">for example if webpage returned data like:</p>
<pre><code>{
  "cluster_name" : "test",
  "status" : "green",
  "timed_out" : false,
  "number_of_nodes" : 2,
  "number_of_data_nodes" : 2,
  "active_primary_shards" : 0,
  "active_shards" : 0,
  "relocating_shards" : 0,
  "initializing_shards" : 0,
  "unassigned_shards" : 0,
  "delayed_unassigned_shards" : 0,
  "number_of_pending_tasks" : 0,
  "number_of_in_flight_fetch" : 0,
  "task_max_waiting_in_queue_millis" : 0,
  "active_shards_percent_as_number" : 100.0
}
</code></pre>
<p dir="auto">how would i get "status = good" out of it ?</p>
]]></description><link>https://forum.netxms.org/topic/6534/parsing-webpage-result</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 09:39:44 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/6534.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 18 May 2020 09:44:41 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Parsing webpage result on Mon, 25 May 2020 09:57:01 GMT]]></title><description><![CDATA[<p dir="auto">Thats exactly what i needed, many thanks! <img src="https://forum.netxms.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=72b86a538fc" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:1.4em;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
<p dir="auto">Egert</p>
]]></description><link>https://forum.netxms.org/post/27955</link><guid isPermaLink="true">https://forum.netxms.org/post/27955</guid><dc:creator><![CDATA[Egert143]]></dc:creator><pubDate>Mon, 25 May 2020 09:57:01 GMT</pubDate></item><item><title><![CDATA[Reply to Parsing webpage result on Mon, 25 May 2020 07:19:21 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">starting with 3.2 you can also define web service and use it for data collection. For example you can define web service named TestService with correct URL and authentication options and then create DCI with origin "web service". As parameter you should use service_name:path_to_element. For example, to access number_of_pending_tasks element:</p>
<pre><code>TestService:/number_of_pending_tasks
</code></pre>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/27940</link><guid isPermaLink="true">https://forum.netxms.org/post/27940</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Mon, 25 May 2020 07:19:21 GMT</pubDate></item><item><title><![CDATA[Reply to Parsing webpage result on Wed, 20 May 2020 10:48:48 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for the reply, i managed to make litle powershell script for task at hand.</p>
<p dir="auto">Egert</p>
]]></description><link>https://forum.netxms.org/post/27905</link><guid isPermaLink="true">https://forum.netxms.org/post/27905</guid><dc:creator><![CDATA[Egert143]]></dc:creator><pubDate>Wed, 20 May 2020 10:48:48 GMT</pubDate></item><item><title><![CDATA[Reply to Parsing webpage result on Tue, 19 May 2020 23:43:35 GMT]]></title><description><![CDATA[<p dir="auto">In short, yes.  So you can take advantage of existing Nagios probes or other scripts you've written.  But you'll have to write your script.</p>
<p dir="auto">Download the manual and see section 6.9 and 6.10 for using "external metrics".</p>
<p dir="auto">Here are two easy examples you can add to your nxagentd.conf file to try it out:<br />
# Windows examples<br />
# Get number of files in a directory (C:\ here)<br />
ExternalParameterShellExec = AAFileCount:dir C:\ | find /c /v ""</p>
<p dir="auto"># See what directory the agent runs in by default<br />
ExternalParameterShellExec = AAWhatDirIsTheAgentIn:cd</p>
<p dir="auto">After you add the lines restart the agent.</p>
<p dir="auto">(I named them AA-whatever so they'd be at the top of the list.  )</p>
<p dir="auto">On the nxmc right-click the node, and select Data Collection Configuration.<br />
Click the New Parameter button.<br />
Click Select<br />
Choose either of the above parameters, then click Query.  If you've done it right, it will come back with values.<br />
You can then have NetXMS do different things based on the values, like it does with any other data point.</p>
]]></description><link>https://forum.netxms.org/post/27903</link><guid isPermaLink="true">https://forum.netxms.org/post/27903</guid><dc:creator><![CDATA[tfines]]></dc:creator><pubDate>Tue, 19 May 2020 23:43:35 GMT</pubDate></item></channel></rss>