#!/usr/bin/ksh
# ESODcsC2Proc
# Surveillance des process Netscape de DCS Central
# systeme : solaris 2.5.1
#
# 02/04/98	ISD-12153/H. Baylou
#
if [ -f /logiciel/netscape/suitespot/https-dcscc2c0/LOCK ]
then 
    /logiciel/OpC/opcmon ESO_HttpsC2Proc=`/usr/bin/ps -aef | /usr/bin/grep https-dcscc2c0 | /usr/bin/grep -vc grep`
else
    /logiciel/OpC/opcmon ESO_HttpsC2Proc=2
fi


if [ -f /logiciel/netscape/suitespot/bin/mail/LOCK ]
then 
    /logiciel/OpC/opcmon ESO_NscpMailC2Proc=`/usr/bin/ps -aef | /usr/bin/grep NscpMail | /usr/bin/grep -vc grep`
else
    /logiciel/OpC/opcmon ESO_NscpMailC2Proc=1
fi


if [ -f /logiciel/netscape/suitespot/bin/mail/LOCK ]
then 
    /logiciel/OpC/opcmon ESO_IMAPC2Proc=`/usr/bin/ps -aef | /usr/bin/grep SIMAP4 | /usr/bin/grep -vc grep`
else
    /logiciel/OpC/opcmon ESO_IMAPC2Proc=1
fi


if [ -f /logiciel/netscape/suitespot/slapd-dcscc2c0/LOCK ]
then
    /logiciel/OpC/opcmon ESO_SlapdDcsC2Proc=`/usr/bin/ps -aef | /usr/bin/grep ns-slapd | /usr/bin/grep -vc grep`
else
    /logiciel/OpC/opcmon ESO_SlapdDcsC2Proc=1
fi


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


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