Home Directory Plugins System Metrics Processes check_process_running (Anthony Affee)

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_process_running (Anthony Affee)

Rating
0 votes
Favoured:
0
Current Version
1.0
Last Release Date
2015-05-20
Compatible With
  • Nagios 3.x
License
GPL
Hits
6537
Files:
FileDescription
check_process_running.shcheck_process_running.sh
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!
Simple Bash Shell Script that is used to check if a process is running

Tested on:

Nagios 3.x
CentOS 5.x
I originally created this script to monitor Taxware process 'jboss' but then decided to make it less specific.

This script only checks 3 status:

OK
Critical
Unknown

Copy the plugin in the nagios plugins directory.


Usage: ./check_process_running.sh SERVICE PROCESS_NAME

Example of Usage:

command[check_taxware]=/usr/lib64/nagios/plugins/check_process_running.sh jboss Taxware

Output:
Taxware OK - jboss is Running


Make sure Nagios user is allowed to access the plugin (use chmod to make it readable by Nagios user)