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

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
2738
Files:
FileDescription
check_process_running.shcheck_process_running.sh
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
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)