With apache2 in Tiger_Running_Procs the process apache2 is not found
running. Reading the script I see I have to put the complete command
/usr/sbin/apache2 but the process is always not discovered. This due to the
fact that the command apache2 have arguments as you can see :
# ps -eo pid,user,state,command |grep apache2
30898 root S /usr/sbin/apache2 -k start -DSSL
30899 www-data S /usr/sbin/apache2 -k start -DSSL
30900 www-data S /usr/sbin/apache2 -k start -DSSL
30901 www-data S /usr/sbin/apache2 -k start -DSSL
30902 www-data S /usr/sbin/apache2 -k start -DSSL
30903 www-data S /usr/sbin/apache2 -k start -DSSL
31836 www-data S /usr/sbin/apache2 -k start -DSSL
32111 www-data S /usr/sbin/apache2 -k start -DSSL
To obtain good result I change the line 96 :
while read pid user state comm
by this one :
while read pid user state comm c1 c2 c3 c4 c5 c6 c7 c8 c9
This is a very bad workaround but it works for detecting processes which have
less than 10 arguments :-(
Bye.
--
Francois Mescam Tel:+33 1 46 73 44 06 Fax:+33 1 46 73 41 50
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]