#!/usr/bin/ksh
# ESONetscShow
# Surveillance des process Netscape
# systeme : solaris 2.5
#
# 23/11/97	ESO-12151/Y.Le Cornec
#
if [ -f /logiciel/netscape/https.lock ]
then 
    echo "Enterprise Server :"
    if [ `ps -aef|grep https|grep -vc grep` -eq 2 ]
    then
        echo "ok process https"
    else
        echo "KO process https"
    fi
    echo
fi


if [ -f /logiciel/netscape/slapd.lock ]
then 
    echo "Directory Server :"
    if [ `ps -aef|grep ns-slapd|grep -vc grep` -eq 1 ]
    then
        echo "ok process ns-slapd"
    else
        echo "KO process ns-slapd"
    fi
    echo
fi

if [ -f /logiciel/netscape/admin2.lock ]
then 
    echo "SuitSpot 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

if [ -f /logiciel/netscape/admin3.lock ]
then 
    echo "SuitSpot 3 :"
    if [ `ps -aef|grep ns-admin| grep suitespot |grep -vc grep` -eq 2 ]
    then
        echo "ok process ns-admin"
    else
        echo "KO process ns-admin"
    fi
    echo
fi
