#!/usr/bin/ksh
# ESOCerC2Proc
# Surveillance des process Netscape du serveur de Certificats
# systeme : solaris 2.5.1
#
# 17/04/98	ISD-12153/H. Baylou
#
if [ -f /logiciel/netscape/ns-home/cms-cercc2c0-subCA/LOCK ]
then 
    /logiciel/OpC/opcmon ESO_SubCAProc=`/usr/bin/ps -aef | /usr/bin/grep cms-cercc2c0-subCA | /usr/bin/grep -vc grep`
else
    /logiciel/OpC/opcmon ESO_SubCAProc=5
fi


if [ -f /logiciel/netscape/ns-home/cms-cercc2c0-rootCA/LOCK ]
then 
    /logiciel/OpC/opcmon ESO_RootCAProc=`/usr/bin/ps -aef | /usr/bin/grep cms-cercc2c0-rootCA | /usr/bin/grep -vc grep`
else
    /logiciel/OpC/opcmon ESO_RootCAProc=5
fi


if [ -f /logiciel/netscape/ns-home/LOCK ]
then
    /logiciel/OpC/opcmon ESO_Admin2CERC2Proc=`/usr/bin/ps -aef | /usr/bin/grep ns-admin | /usr/bin/grep ns-home| /usr/bin/grep -vc grep`
else
    /logiciel/OpC/opcmon ESO_Admin2CERC2Proc=2
fi
