Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

check_procs_pgrep

Rating
0 votes
Favoured:
0
Hits
152306
Files:
FileDescription
check_procs_pgrep.tar.gzcheck_procs_pgrep v1
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
Checks if a process (or processes) is running. Uses pgrep to filter the result.
This is a drop-in replacement for the official //check_procs// plugin. It uses the same arguments and gives same result however only the 'no of processes' metric is supported. It is a simple bash script that can be used on any platform that has bash and pgrep.

I've just had so many problems with the official C written check_procs plugin that I decided to do a replacement in bash. The problems have been seg faults, locale problems, unexplainable results, compilation problems on Solaris, etc.

This plugin doesn't have the features that check_procs has given the fact that only the 'no of processes' metric is supported but I figure that 99% of the usage is around this metric. It does on the other hand have things that check_procs doesn't for example that the search string is a regexp so that you can do things like 'search for processes ending with ...', etc.

Execute 'check_procs_pgrep -h' to see how to use it.