Hello,
I want to monitor the process count on linux and setup an alert if the count goes above certain value or below certain value.
Is there a component which can accomplish this task.
Thanks
Sunny
Based off of this script, perhaps the following script will work for you? You may need to tweak it to get a more accurate count for your needs.
#!/usr/bin/perl## Based on original version by Jon Anhold <jon@snoopy.net># Modifications by Jeremy Weatherford <xidus@xidus.net># This code is licensed under the GNU General Public License## License text may be found at: www.gnu.org/.../gpl.html#$l = `ps auxc | wc -l`;$l =~ /(\d+)/;$data = $l - 3;$data = int($data);print "Statistic: $data\n";