Hello, We have a Postfix mail server which runs two postfix instances (one for incoming and other for outgoing). We have written a script which counts the number of processes for postfix running on this server.
so, in this case we want to make sure that there are 2 pickup, 2 master and 2 qmgr processes are running. So we use: proc_num=`ps -ef | grep master | wc -l` like command for each process and compare this $proc_num variable to be equal to 2. Otherwise an alert is generated. Now in last 2 months it has happened twice that an alert was generated and when we manually checked these processes .. everything was alright! So is is the "ps" command giving false output or it is postfix which puts these processes in some "hidden" state which causes "ps" failure??? Any idea?? Any guess?? Any help?? Please help. Thanks in advance --Vaibhav __________________________________ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ linux-india-help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/linux-india-help
