Tag Archives: pnp4nagios - Page 2

Nagios check for Apache Hadoop jobtrackerNagios check for Apache Hadoop jobtracker

  • I made this little script, to parse output from the adminpage, normally found at http://jobtracker.company.com:50030/jobtracker.jsp
  • It will check for status, and number of machines, and also give performanceoutput.
  • I am planning on extending it with more checks when I have some time
  • Get the script here check_hadoop_jobtracker
  • Updated version, for compatibility with 1.0 check_hadoop_jobtracker0.3.2
  • Rename script to .pl and make executable
  • Nagios-config would look something like this;
define service{
 use                 generic_service
 service_description Jobtracker
 check_command       check_jobtracker
 hosts               jobtracker.company.com
 }
define command{
 command_name        check_jobtracker
 command_line        $USER1$/check_hadoop_jobtracker.pl -H jobtracker.company.com -w 50 -c 40 -b 1  -p 50030
 }

Plugin takes these options:

check_hadoop_jobtracker v. 0.3
Copyright (c) 2011 Jon Ottar Runde, jru@rundeconsult.no
See http://www.rundeconsult.no/?p=66 for updated versions and documentation
Usage: -w <warn> -c <crit> -H <Hostname> -p <Port> [-v version] [-h help]

Checks several Hadoop hdfs-parameters
-H (--Host)
-p (--Port)
-w (--warning)   = warning limit number of machines
-c (--critical)  = critical limit number of machines  (w > c )
-b (--blacklist)  = Number of blacklisted nodes for CRITICAL warning (default=1)
-h (--help)
-v (--version)

  • I made this little script, to parse output from the adminpage, normally found at http://jobtracker.company.com:50030/jobtracker.jsp
  • It will check for status, and number of machines, and also give performanceoutput.
  • I am planning on extending it with more checks when I have some time
  • Get the script here check_hadoop_jobtracker
  • Updated version, for compatibility with 1.0 check_hadoop_jobtracker0.3.2
  • Rename script to .pl and make executable
  • Nagios-config would look something like this;
define service{
 use                 generic_service
 service_description Jobtracker
 check_command       check_jobtracker
 hosts               jobtracker.company.com
 }
define command{
 command_name        check_jobtracker
 command_line        $USER1$/check_hadoop_jobtracker.pl -H jobtracker.company.com -w 50 -c 40 -b 1  -p 50030
 }

Plugin takes these options:

check_hadoop_jobtracker v. 0.3
Copyright (c) 2011 Jon Ottar Runde, jru@rundeconsult.no
See http://www.rundeconsult.no/?p=66 for updated versions and documentation
Usage: -w <warn> -c <crit> -H <Hostname> -p <Port> [-v version] [-h help]

Checks several Hadoop hdfs-parameters
-H (--Host)
-p (--Port)
-w (--warning)   = warning limit number of machines
-c (--critical)  = critical limit number of machines  (w > c )
-b (--blacklist)  = Number of blacklisted nodes for CRITICAL warning (default=1)
-h (--help)
-v (--version)