monit-general
[Top][All Lists]
Advanced

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

Re: monitoring the number of processes


From: Tino Hendricks
Subject: Re: monitoring the number of processes
Date: Fri, 12 Aug 2016 17:38:37 +0200

I would go for a simple script containing something like

ps aux | grep the_process_name | grep -v grep | wc -l

and check for the number.

Tino

> Am 12.08.2016 um 14:12 schrieb Stephen Berg (Contractor) <address@hidden>:
> 
> Is there a way to monitor a daemon that is supposed to have exactly one 
> process showing.  If the count is above one the daemon needs to be restarted.
> 
> 
> -- 
> Stephen Berg
> Systems Administrator
> NRL Code: 7320
> Office: 228-688-5738
> address@hidden
> 
> 
> --
> To unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general




reply via email to

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