...
Two Plugins are available for download:
- JobScheduler Master (with tcp): https://download.sos-berlin.com/SystemMonitor/check_jobscheduler.pl
- JobScheduler Master via JOC Cockpit (with http(s)): https://download.sos-berlin.com/SystemMonitor/check_jobscheduler_with_joc.pl
- JobScheduler Universal Agent: https://download.sos-berlin.com/SystemMonitor/check_jobscheduler_agent.pl
...
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 | ||||
---|---|---|---|---|
| ||||
# '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 | ||||
---|---|---|---|---|
| ||||
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-url | — | Url of JOC Cockpit |
-i | --id | — | JobScheduler Id |
-a | --account | — | Account for HTTP authentication to JOC Cockpit (=<user:password>) |
-H | --hostname | — | Name or IP address of the host ( |
-p | --port | — | HTTP port that JobScheduler listens to ( |
-t | --timeout | 30s | Timeout for establishing the connection to JOC Cockpit |
Example:
Code Block | ||||
---|---|---|---|---|
| ||||
#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
...