Ad Widget

Collapse

Monitor Linux Services

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • miramira007
    Member
    • Sep 2015
    • 89

    #1

    Monitor Linux Services

    Hi together,

    i'm looking for a solution to monitor linux/unix machines. Can you tell me, how you are monitoring services in linux/unix machines? I want to monitor them like in windows with service_state[name].

    I tried this here:
    I added
    "UserParameter=services.check[*], /usr/bin/sudo /usr/bin/systemctl status $1 | /usr/bin/grep -c running" and
    "UserParameter=systemctl.check[*], /usr/bin/sudo /usr/bin/systemctl status $1 | /usr/bin/grep -c running"
    But i cant handle the whole linux/unix environment with this commands. From some hosts i'm getting error messages "grep no such file or directory" or i'm getting a wrong value.

    I would be pleased if you tell me, how you monitor your services?

    cu, mira
  • Firm
    Senior Member
    • Dec 2009
    • 342

    #2
    Probably, you need to use any SCM system (ansible/chef/puppet/salt/etc.) to ensure that grep is installed and correct mechanism is used (systemctl on systemd-supported flavours, service on rhel-based etc.)

    Comment

    • miramira007
      Member
      • Sep 2015
      • 89

      #3
      Ok, thank, and how do you monitor processes, which has not a dependencies to a pid. I understand that grep is searching for the pid.

      cu, mira

      Comment

      Working...