Group
Extension

Matches 1

Nagios-Plugin-CheckHost ( U/UN/UNDEF/Nagios-Plugin-CheckHost-0.05.tar.gz, UNDEF, 2017; MetaCPAN )
Nagios-Plugin-CheckHost/lib/Net/CheckHost.pm ( view source; MetaCPAN )
package Net::CheckHost;

use strict;
use warnings;

our $VERSION = 0.05;

use JSON;
use LWP::UserAgent;
use URI;

sub new {
    my ($class, @args) = @_;

    bless {
        gateway   => 'https://chec
gin::CheckHost v' . $VERSION,
            'Content-Type' => 'application/json',
            'Accept'       => 'application/json',
        ]
    );
}

sub request {
    my $self = shift;

    my $http_
($http_response->status_line)
      unless $http_response->is_success;

    my $response = decode_json($http_response->decoded_content);

    if ($response->{error}) {
        my $error = $response->{

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.