OpenVZ Forum



Members   Search      Help    Register    Login    Home
Home » General » Support » process check
process check [message #25975] Sun, 13 January 2008 05:56 Go to next message
evrynet is currently offline evrynet
Messages: 4
Registered: October 2007
Junior Member
From: *pool.t-online.hu
Hi,

Is there any script around with it I can check If irssi or bitchx running on VPSes and If yes on which VPS?

Regards
Re: process check [message #25978 is a reply to message #25975] Sun, 13 January 2008 13:21 Go to previous messageGo to next message
kir is currently offline kir
Messages: 1625
Registered: August 2005
Location: Moscow, Russia
Senior Member

From: 81.5.110*
If they do not change process name, and you know some shell programming, it should be as simple as something like this:

for PROCNAME in bitchx irssi; do
   echo "Checking for ${PROCNAME}"
   PIDS=$(ps h -opid -C ${PROCNAME})
   for P in $PIDS; do
       grep envID: /proc/${P}/status
   done
   echo
done


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: process check [message #25988 is a reply to message #25978] Mon, 14 January 2008 00:50 Go to previous message
vaverin is currently offline vaverin
Messages: 626
Registered: September 2005
Senior Member
From: *sw.ru
Also you can use vzprocps (with -E option). You can found this package in the following directory:
http://download.openvz.org/contrib/utils/
Previous Topic:Routing Class C subnet to VE
Next Topic:vzsplit issue?
Goto Forum:
  


Current Time: Wed Jun 19 05:12:31 EDT 2013
Powered by FUDforum Powered by Parallels Virtuozzo Containers