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


if [ -f /dcsgbrf0/logiciel/netscape/suitespot/https-dcsgbrf0-tdf/LOCK ]
then 
    /logiciel/OpC/opcmon ESO_HttpsTDFUkProc=`/usr/bin/ps -aef | /usr/bin/grep https-dcsgbrf0-tdf | /usr/bin/grep -vc grep`
else
    /logiciel/OpC/opcmon ESO_HttpsTDFUkProc=2
fi


if [ -f /dcsgbrf0/logiciel/netscape/suitespot/https-dcsgbrf0-tdfauto/LOCK ]
then 
    /logiciel/OpC/opcmon ESO_HttpsTDFAUTOUkProc=`/usr/bin/ps -aef | /usr/bin/grep https-dcsgbrf0-tdfauto | /usr/bin/grep -vc grep`
else
    /logiciel/OpC/opcmon ESO_HttpsTDFAUTOUkProc=2
fi


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


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


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


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


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


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