Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Two Plugins are available for download:

...

  • Perl > 5.8 is required and the Perl package NET::HTTP. You can download and install Perl packages from e.g. http://www.cpan.

JobScheduler Master Plugin via JOC Cockpit with HTTP(S)

Sample Configuration

Code Block
languagebash
titleSample JobScheduler Master Command configuration
# 'check_jobscheduler_with_joc' command definition
define command {
    command_name                check_jobscheduler_with_joc
    command_line                /opt/plugins/check_jobscheduler_with_joc.pl -j $ARG1$ -i $ARG2$ -a $ARG3$ -t $ARG4$
}
Code Block
languagebash
titleSample JobScheduler Master Service configuration
 define service {
 use                             generic-service                 
 host_name                       localhost
 service_description             JobScheduler
 is_volatile                     0
 check_period                    24x7
 max_check_attempts              1
 normal_check_interval           1
 retry_check_interval            1
 contact_groups                  admins
 notification_options            w,u,c,r
 notification_interval           960
 notification_period             24x7
 check_command     check_jobscheduler_with_joc!http://localhost:4446!myJobSchedulerId!5!
 active_checks_enabled           1          
 passive_checks_enabled          0  
}

Parameterization

Parameter

 

Default

Description

-j--joc-urlUrl of JOC Cockpit
-i--idJobScheduler Id
-a--accountAccount for HTTP authentication to JOC Cockpit (=<user:password>)

-H

--hostname

Name or IP address of the host (homer) on which JobScheduler is running. Only required in a Cluster otherwise Id is unique

-p

--port

HTTP port that JobScheduler listens to (40444). Only required in a Cluster otherwise Id is unique

-t

--timeout

30s

Timeout for establishing the connection to JOC Cockpit

Example:

Code Block
languagebash
titleExample Active Check for JobScheduler Master
#JobScheduler running with the id 'test' and JOC Cockpit has the url http://localhost:4446 where the account (user and password 'test') has access
 
<path_to_plugins>/check_jobscheduler_with_joc.pl -j http://localhost:4446 -i test -a test:test

Notes

  • Perl > 5.8 is required and some Perl packages are required. You can download and install Perl packages from e.g. http://www.cpan.

    • HTTP::Request

    • LWP::UserAgent

    • JSON

JobScheduler Agent Plugin

...