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_jt.rb

Current Version
1.0
Last Release Date
2014-02-06
Compatible With
  • Nagios 3.x
  • Nagios 4.x
License
GPL
Hits
24178
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!
Nagios plugin to check count of number of task trackers by parsing machines.jsp. Checked the script with different hadoop versions including CDH.

The script is written in Ruby and makes use of nokogiri gem for parsing machines.jsp.

Please install nokogiri gem before using the script.

The script has been tested using Ruby 1.9.3.

Help for running the script can be found by supplying -h argument to the script.

./check_jt.rb -h

Usage: check_jt.rb [options]
-u, --url URL URL of jobtracker
-w WARNINGNUMTTS, Warning Limit for number of TTs
--warningnumtts
-c, --criticaltts CRITICALTTS Critical Limit for number of TTs
-H, --help Display this screen

URL is the URL of the machines.jsp page. For e.g.

:

-w takes an argument which specifies minimum number of task trackers needed before warning alert is issued

-c takes an argument which specifies minimum number of task trackers needed before critical alert is issued

This script will identify blacklisted task trackers and will restart the task tracker process once again on them to bring them back online.