Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9083481
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T20:47:09+00:00 2026-06-16T20:47:09+00:00

I am using check_http plugin for discovering jenkins service(Winstone hosted and Apache hosted) is

  • 0

I am using check_http plugin for discovering jenkins service(Winstone hosted and Apache hosted) is running or not on hosts on which check_mk_agent is installed. And its been monitored on single ui that is nagios GUI, using following command.

./check_http -H Host_Name -u /api/xml?depth=0 -p 8080

Next step is to parse the jobs on specific jenkins master server using jenkins REST api and monitor each job’s health in nagios GUI.

Could someone please give me any idea on this so that I can monitor the jenkins jobs on single GUI. Any script or plugin much appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T20:47:10+00:00Added an answer on June 16, 2026 at 8:47 pm
    #!/usr/bin/perl
    use strict;
    use warnings;
    use LWP::UserAgent;
    use XML::Twig;
    use HTTP::Request;
    use Getopt::Long;
    use Nagios::Plugin;
    #use File::stat;
    
    use File::Basename;
    my $PROGNAME = basename($0);
    
    my $p = Nagios::Plugin->new(
        usage => "Usage: %s [ -H|--host ] [ -p|--port ]",
        extra => "
        Examples:
        $PROGNAME --host myhost -port 8080
        Check Host name and port.
    ");
    
    $p->add_arg(
        spec => 'host|f=s',
        required => 1,
        help => "-H, --host=Hostname. REQUIRED.");
    
    $p->add_arg(
        spec => 'port|a=i',
        default => 8080,
        help => "-p, --port=Portnumber. Default 8080.");
    
    $p->getopts;
    
    my $o_host = $p->opts->host ;
    my $o_port = $p->opts->port;
    my $protocol = 'http';
    my $o_url = '/api/xml';
    my @jobs;
    
    my $url = $protocol . "://" . $o_host . ":" . $o_port . $o_url ;
    #print $url,"\n";
    my $ua = LWP::UserAgent->new;
    $ua->timeout(10);
    $ua->env_proxy;
    my $response = $ua->get($url);
    if ($response->is_success) {
        my $content = $response->decoded_content;  # or whatever
        XML::Twig->new( twig_roots => { 'job/name' => sub { push @jobs, $_->text; } }) ->parseurl( $url);
    }
    else {
        $p->nagios_die( CRITICAL, "Bad page found" );
    }
    #print @jobs;
    foreach my $job_name (@jobs) {
            #print $job_name;
            my $job_url = $protocol . "://" . $o_host . ":" . $o_port . "/" . "job" . "/" . $job_name . $o_url ;
            #print $job_url;
            my $response2 = $ua->get($job_url);
            #print $job_url;
            if ($response2->is_success) {
                $p->nagios_die( OK, "Job link valid" );
            }
            else {
                $p->nagios_die( CRITICAL, "Bad page found" );
            }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i'm using a plugin by Alexander Farkas which animates backgrounds really nicely. And it
Im using http://desandro.github.com/imagesloaded/ imagesLoaded plugin which works great for detecting when a div's images
I am using Eclipse Juno integrated with maven plugin. I have installed JDK 1.6
I am running and using the zRSSFeed jQuery plugin (http://www.zazar.net/developers/zrssfeed/) to pull feed items
I'm using the jquery form plugin ( http://malsup.com/jquery/form/ ) to upload a file via
I am using http://www.mkyong.com/struts2/struts-2-hibernate-integration-with-full-hibernate-plugin/ as my refernce for struts+hibernate.I need to replace return session.createQuery(from
I am using a wordpress plugin called GD Star Rating to allow my users
I am trying to delete a row using the DataTables plugin. First I don't
I am using the http://geoplugin.net plugin to detect the users location. I have a
I am using the jQuery plugin DataTables ( http://datatables.net ) for pagination, search capabilities

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.