<?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[mysql query for object status (with grafana)]]></title><description><![CDATA[<p dir="auto">hi,</p>
<p dir="auto">i'm testing querying object status on database (mysql) with grafana. so i can put some dashboard on grafana. but seems the object status on the database isn't valid. i had already test it with 2 netxms server. do you know how i can read object status from database? what am i missing?</p>
<p dir="auto">thx.</p>
<p dir="auto">on console (valid):<br />
<img src="/assets/uploads/files/smf/0000000003952-2018-02-21_152406.png" alt="" class="img-markdown  img-fluid" width="345" height="197" /></p>
<p dir="auto">on grafana query (not valid):<br />
<img src="/assets/uploads/files/smf/0000000003950-2018-02-21_152858.png" alt="" class="img-markdown  img-fluid" width="1345" height="222" /></p>
<p dir="auto">mysql query:</p>
<blockquote>
<p dir="auto">select<br />
   <a href="http://o.name" rel="nofollow ugc">o.name</a>,<br />
   net.service_type,<br />
   <a href="http://node.name" rel="nofollow ugc">node.name</a> as `node`,<br />
   case<br />
      when <a href="http://poller.name" rel="nofollow ugc">poller.name</a> is null then "default (netxms server)"<br />
      else <a href="http://poller.name" rel="nofollow ugc">poller.name</a><br />
   end as `poller`,<br />
   ip_port as `tcp port`,<br />
   o.`status` as c<br />
from object_properties o<br />
   inner join network_services net on o.object_id = <a href="http://net.id" rel="nofollow ugc">net.id</a><br />
   inner join object_properties node on net.node_id = node.object_id<br />
   left join object_properties poller on net.poller_node_id = poller.object_id<br />
where<br />
  o.`status` &lt;&gt; 6</p>
</blockquote>
<hr />
<p dir="auto"><img src="/assets/uploads/files/smf/0000000003950-2018-02-21_152858.png" alt="2018-02-21_152858.png" class="img-markdown  img-fluid" width="1345" height="222" /></p>
<p dir="auto"><img src="/assets/uploads/files/smf/0000000003952-2018-02-21_152406.png" alt="2018-02-21_152406.png" class="img-markdown  img-fluid" width="345" height="197" /></p>
]]></description><link>https://forum.netxms.org/topic/5461/mysql-query-for-object-status-with-grafana</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 09:28:25 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/5461.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 21 Feb 2018 08:36:37 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to mysql query for object status (with grafana) on Wed, 21 Feb 2018 11:08:40 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">server only updates object_properties table when something persistent changes (like object name) and on shutdown (to save status and other runtime information). On large installations it removes a lot of unnecessary DB updates.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/23925</link><guid isPermaLink="true">https://forum.netxms.org/post/23925</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Wed, 21 Feb 2018 11:08:40 GMT</pubDate></item></channel></rss>