#!/usr/bin/ksh
# ESOCerC2ProcShow
# Surveillance des process Netscape DCS UK
# systeme : solaris 2.5.1
#
# 17/04/98	ISD-12153/H. Baylou
#
if [ -f /logiciel/netscape/ns-home/cms-cercc2c0-subCA/LOCK ]
then 
    echo "Certificate Server :"
    if [ `ps -aef|grep cms-cercc2c0-subCA|grep -vc grep` -eq 5 ]
    then
        echo "ok process subCA"
    else
        echo "KO process subCA"
    fi
    echo
fi


if [ -f /logiciel/netscape/ns-home/cms-cercc2c0-rootCA/LOCK ]
then 
    echo "Certificate Server :"
    if [ `ps -aef|grep cms-cercc2c0-rootCA|grep -vc grep` -eq 5 ]
    then
        echo "ok process rootCA"
    else
        echo "KO process rootCA"
    fi
    echo
fi


if [ -f /logiciel/netscape/ns-home/LOCK ]
then 
    echo "Suitespot 2 :"
    if [ `ps -aef|grep ns-admin| grep ns-home |grep -vc grep` -eq 2 ]
    then
        echo "ok process ns-admin"
    else
        echo "KO process ns-admin"
    fi
    echo
fi
