in reply to Perl and SNMP
The processlist array now contains those processes that have ftp somewhere in them (you might want to refine this, as it will also match processes by a user called daftpeter, for example). You can then browse through this list, count the processes, or do whatever you have to do to verify that everything that you expect to be running is actually running.use strict; my $interesting_process="ftp"; # Adjust to taste my @processlist=grep(/$interesting_process/,`ps -fe`); #backtics are e +vil - consider Proc::ProcessTable
Disclaimer: code is untested.
CU
Robartes-
|
|---|