Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am using monit to monitor all my processes which is matched using.

check process [name] matching [process name pattern]

Monit is able to match using the pattern and "monit procmatch [process name pattern]" lists all the process.

The problem is it is not listing in the web interface, it just displays only the first process.

Is it possible to list all the process in web interface ?

How can I have start and stop commands in monit for all those processes which are matched ?

share|improve this question

1 Answer 1

Monit only checks the first process matched by the string. If you have any way to refine the pattern to be more unique, you'll have more success. From the monit procmatch output...

[root@abc ~]# monit procmatch dbc
List of processes matching pattern "dbc":
------------------------------------------
        /ppro/dbcfs/dbcfsrun 10.2.2.7 9586 dbcfs.cfg 9584:1 -ssl -sport
        dbc DMHOST start cron
        dbc
        dbc JOBMAN start cron
        dbc
        dbc
        /ppro/dbcfs/dbcfs -y
------------------------------------------
Total matches: 7
WARNING: multiple processes matched the pattern. The check is FIRST-MATCH based, please refine the pattern
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.