<?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[How to monitor non-network services on Centos 7?]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">My setup:<br />
Windows server 2012 running NetXMS server (2.2.10)<br />
Centos 7 VM running NetXMS Agent (2.2.10)</p>
<p dir="auto">On the management console, to monitor a Windows service, we just add "System.servicestate(ServiceName)" and set the expected value. (as shown in attached)</p>
<p dir="auto">This works fine if the server running the agent is Windows Server 2012/2016/2008R2, but not if the agent is running on a Centos 7 VM.</p>
<p dir="auto">Any ideas? I've looked all over the forum and the guides but can't seem to find any info!</p>
<p dir="auto">thanks!</p>
<hr />
<p dir="auto"><img src="/assets/uploads/files/smf/0000000004321-NetService.PNG" alt="NetService.PNG" class="img-markdown  img-fluid" width="963" height="93" /></p>
]]></description><link>https://forum.netxms.org/topic/5777/how-to-monitor-non-network-services-on-centos-7</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 14:55:17 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/5777.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 27 Dec 2018 14:31:06 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to monitor non-network services on Centos 7? on Fri, 11 Jan 2019 17:43:23 GMT]]></title><description><![CDATA[<p dir="auto">There is MySQL monitoring subagent, it could possibly work on MariaDB as well, but it seems to be not documented. You can get some information from it's source code here - <a href="https://github.com/netxms/netxms/tree/master/src/agent/subagents/mysql" rel="nofollow ugc">https://github.com/netxms/netxms/tree/master/src/agent/subagents/mysql</a> and I will ask next week to update administration guide as well.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/25200</link><guid isPermaLink="true">https://forum.netxms.org/post/25200</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Fri, 11 Jan 2019 17:43:23 GMT</pubDate></item><item><title><![CDATA[Reply to How to monitor non-network services on Centos 7? on Tue, 08 Jan 2019 09:51:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/tursiops" aria-label="Profile: tursiops">@<bdi>tursiops</bdi></a> said in <a href="/post/25151">How to monitor non-network services on Centos 7?</a>:</p>
<blockquote>
<p dir="auto">I believe you'll have to create an ExternalParameter for that in your Linux agent configuration.<br />
Something like the following should work (not pretty, I'm sure there's better ways):</p>
<pre><code>ExternalParameter=System.LinuxService(*):service $1 status|grep Active|sed "s/.*Active: \(.*\) (.*/\1/"
</code></pre>
<p dir="auto">Once you add that to your configuration (manually or via Agent Configuration Policy for any system determined to be running Linux and an Agent), you can reference it in your DCIs as System.LinuxService(&lt;servicename&gt;).</p>
</blockquote>
<p dir="auto">Thank you very much Tursiops! Worked perfectly. It's strange that this isn't in any of the official documentation, it should probably be added if possible.</p>
<p dir="auto">Another, slightly more complicated question. We have 2 DB servers running Centos7 and MariaDB. Are there any known monitors for DataBase statistics on Centos7 / MariaDB? Is there any way we can achieve this?</p>
<p dir="auto">Many thanks,</p>
<p dir="auto">Zac.</p>
]]></description><link>https://forum.netxms.org/post/25171</link><guid isPermaLink="true">https://forum.netxms.org/post/25171</guid><dc:creator><![CDATA[ZacHow]]></dc:creator><pubDate>Tue, 08 Jan 2019 09:51:16 GMT</pubDate></item><item><title><![CDATA[Reply to How to monitor non-network services on Centos 7? on Fri, 28 Dec 2018 03:22:40 GMT]]></title><description><![CDATA[<p dir="auto">I believe you'll have to create an ExternalParameter for that in your Linux agent configuration.<br />
Something like the following should work (not pretty, I'm sure there's better ways):</p>
<pre><code>ExternalParameter=System.LinuxService(*):service $1 status|grep Active|sed "s/.*Active: \(.*\) (.*/\1/"
</code></pre>
<p dir="auto">Once you add that to your configuration (manually or via Agent Configuration Policy for any system determined to be running Linux and an Agent), you can reference it in your DCIs as System.LinuxService(&lt;servicename&gt;).</p>
]]></description><link>https://forum.netxms.org/post/25151</link><guid isPermaLink="true">https://forum.netxms.org/post/25151</guid><dc:creator><![CDATA[Tursiops]]></dc:creator><pubDate>Fri, 28 Dec 2018 03:22:40 GMT</pubDate></item></channel></rss>