Versions Compared

Key

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

...

Code Block
languagebash
titleSample JS7 Controller Service configuration
 define service {
 use                             generic-service                 
 host_name                       localhost
 service_description             JS7Controller
 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_js7_controller!http://localhost:4446!jobscheduler!test:test!5!
 active_checks_enabled           1          
 passive_checks_enabled          0  
}

Parameterization

Option

Option (long format)Parameter

Data TypeRequired

Default

Description

-j--joc-urlStringyesURL of JOC Cockpit (HTTP and HTTPS are supported)
-i--idStringyesID of a JS7 Controller
-a--accountStringyesAccount for HTTP authentication with JOC Cockpit (<user:password>)

-c

--cafile

Stringno

Location of a certificate file or a CA bundle file to verify the SSL connection to JOC Cockpit

-C

--capath

Stringno

Path to a directory that includes certificate files or CA bundle files to verify the SSL connection to JOC Cockpit

-s--hostname-verificationSwitchn/anofalseThis switch activates SSL hostname verification (recommended)

-t

--timeout

Numberno

30

Timeout in seconds for establishing the connection to JOC Cockpit

-d--detailedn/aSwitchnofalse

If set then This switch causes status information for each Controller instance is to be returned. A Cluster can include two Controller instances.

...

Code Block
titleSample JS7 Controller Agent Service configuration
define service {
 use                             generic-service                 
 host_name                       localhost
 service_description             JS7Agents
 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_js7_agent!http://localhost:4446!jobscheduler!test:test!5!
 active_checks_enabled           1          
 passive_checks_enabled          0  
}


Parameterization

Option

Option (long format)Parameter

Data TypeRequired

Default

Description

-j--joc-urlStringyesURL of JOC Cockpit (HTTP and HTTPS are supported)
-i--idStringyesID of a JS7 Controller
-a--accountStringyesAccount for HTTP authentication to JOC Cockpit (<user:password>)

-A

--agent

Stringno

URL of an Agent, optional,  can be specified several times

-c

--cafile

Stringno

Location of a certificate file or a CA bundle file to verify the SSL connection to JOC Cockpit

-C

--capath

Stringno

Path to a directory that includes certificate files or CA bundle files to verify the SSL connection to JOC Cockpit

-s--hostname-verificationSwitchn/anofalseThis switch activates SSL hostname verification (recommended)

-t

--timeout

Numberno

30

Timeout in seconds for establishing the connection to JOC Cockpit

-d--detailedSwitchn/anofalse

If set and the Cluster has more than one Master and not all Masters are running then the message contains host:port of each MasterThis switch causes status information for each Agent instance to be returned individually

Example:

Code Block
languagebash
titleExample Active Check for all JobScheduler Agents with JOC Cockpit
# The JS7 Controller is operated for the ID 'jobscheduler' and JOC Cockpit has the URL http://localhost:4446 with the account (user and password 'test') enabled

<path_to_plugins>/check_js7_agent.pl -j http://localhost:4446 -i jobscheduler -a test:test

...