#!/usr/bin/ksh
# ESOHTTPProc
# Surveillance des process Netscape
# systeme : solaris 2.5
#
# 23/11/97	ESO-12153/Y.Le Cornec
#
if [ -f /logiciel/netscape/locks/https.lock ]
then 
    /logiciel/OpC/opcmon ESO_HttpsProc=`/usr/bin/ps -aef | /usr/bin/grep https | /usr/bin/grep -vc grep`
else
    /logiciel/OpC/opcmon ESO_HttpsProc=2
fi


if [ -f /logiciel/netscape/locks/slapd.lock ]
then
    /logiciel/OpC/opcmon ESO_SlapdProc=`/usr/bin/ps -aef | /usr/bin/grep ns-slapd | /usr/bin/grep -vc grep`
else
    /logiciel/OpC/opcmon ESO_SlapdProc=1
fi


if [ -f /logiciel/netscape/locks/admin2.lock ]
then
    /logiciel/OpC/opcmon ESO_Admin2Proc=`/usr/bin/ps -aef | /usr/bin/grep ns-admin | /usr/bin/grep ns-home| /usr/bin/grep -vc grep`
else
    /logiciel/OpC/opcmon ESO_Admin2Proc=2
fi


if [ -f /logiciel/netscape/locks/admin3.lock ]
then
	/logiciel/OpC/opcmon ESO_Admin3Proc=`/usr/bin/ps -aef | /usr/bin/grep ns-admin | /usr/bin/grep suitespot| /usr/bin/grep -vc grep`
else
	/logiciel/OpC/opcmon ESO_Admin3Proc=2

fi

