[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Monitor sssd and its children

From: Sebastian Stark
Subject: Monitor sssd and its children
Date: Thu, 5 Dec 2013 10:28:08 +0100


I wonder how to monitor sub processes like in the example given below:

# monit procmatch sssd
List of processes matching pattern "sssd":
        /usr/lib/sssd/sssd/sssd_be --domain XXX
Total matches: 4

# pstree -A -p 1030

Sometimes a bug makes sssd_be crash with a segfault and sssd is not
able to restart it (it usually does). Now when that happens I want
"stop sssd; start sssd" to be executed. My humble way of doing this so
far is:

check process sssd matching "^sssd"
    start program = "/usr/local/sbin/"
    stop program = "/sbin/stop sssd"
    if children < 3 then restart
    if 5 restarts within 5 cycles then timeout

which works, but I would like to know wether somebody has a better way
for this case. I would also rather not have to use the
script for issueing stop/start.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]