Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. How to monitor non-network services on Centos 7?

How to monitor non-network services on Centos 7?

Scheduled Pinned Locked Moved Support
4 Posts 3 Posters 25.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z
    Z
    ZacHow
    wrote on last edited by
    #1

    Hi,

    My setup:
    Windows server 2012 running NetXMS server (2.2.10)
    Centos 7 VM running NetXMS Agent (2.2.10)

    On the management console, to monitor a Windows service, we just add "System.servicestate(ServiceName)" and set the expected value. (as shown in attached)

    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.

    Any ideas? I've looked all over the forum and the guides but can't seem to find any info!

    thanks!


    NetService.PNG

    1 Reply Last reply
    0
    • T
      T
      Tursiops
      wrote on last edited by
      #2

      I believe you'll have to create an ExternalParameter for that in your Linux agent configuration.
      Something like the following should work (not pretty, I'm sure there's better ways):

      ExternalParameter=System.LinuxService(*):service $1 status|grep Active|sed "s/.*Active: \(.*\) (.*/\1/"
      

      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(<servicename>).

      1 Reply Last reply
      0
      • Z
        Z
        ZacHow
        wrote on last edited by
        #3

        @tursiops said in How to monitor non-network services on Centos 7?:

        I believe you'll have to create an ExternalParameter for that in your Linux agent configuration.
        Something like the following should work (not pretty, I'm sure there's better ways):

        ExternalParameter=System.LinuxService(*):service $1 status|grep Active|sed "s/.*Active: \(.*\) (.*/\1/"
        

        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(<servicename>).

        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.

        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?

        Many thanks,

        Zac.

        1 Reply Last reply
        0
        • V
          V
          Victor Kirhenshtein
          wrote on last edited by
          #4

          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 - https://github.com/netxms/netxms/tree/master/src/agent/subagents/mysql and I will ask next week to update administration guide as well.

          Best regards,
          Victor

          1 Reply Last reply
          0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          Powered by NodeBB Contributors
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups