Danijel Tašov > Nagios-Passive-v0.3.5 > Nagios::Passive::Gearman

Download:
Nagios-Passive-v0.3.5.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  1
View/Report Bugs
Source   Latest Release: Nagios-Passive-v0.3.6

NAME ^

Nagios::Passive::Gearman - drop check results into mod_gearman's check_result queue

SYNOPSIS ^

  my $gearman = Gearman::Client->new;
  $gearman->job_servers([@job_servers]);

  my $nw = Nagios::Passive->create(
    gearman => $gearman,
    key => "...", # if using encryption
    service_description => $service_description,
    check_name => $check_name,
    host_name  => $hostname,
    return_code => 0, # 1 2 3
    output => 'looks (good|bad|horrible) | performancedata'
  );

  $nw->submit;

DESCRIPTION ^

This module gives you the ability to drop checkresults into mod_gearman's check_result queue.

The usage is described in Nagios::Passive

syntax highlighting: