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


     Re: [nocol-users] process monitor?

I think you can accomplish that by using SNMP, ie for a SUN you could
catch a list of all processes in an array like this (assuming perl):

$CHEKCMD="snmpwalk -c $COMM $HOST sun.sunMib.sunProcesses.sunProcessTable.psEntry.psProcessName";

then check for the occurance of the processname:
foreach (@OUTPUT){
        /$PROCESS/ and $OK=1;

have fun, Ewald...

On Thu, Feb 18, 1999 at 11:54:18AM -0800, Dave Mangot wrote:
> Has anyone out there modified the hostmon-client to monitor if
> a certain process is running?  We've got processes that aren't
> connected to any ports (so can't use portmon) that we want
> to make sure are running.
> 		Thanks in advance,
> 			-Dave
> -- 
> Dave Mangot         Sr. Unix Administrator
> Miller Freeman Inc. 415-905-2216
> San Francisco, CA   dmangot@mfi.com
Ewald H. Beekman, Network Engineer, Academic Medical Center, 
dept.  ADB/ICT Computer & Network Services,  The Netherlands
E.H.Beekman@amc.uva.nl, phone +31 20 5667085, fax .. 5669020