...
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!homer.sos!4444!0!! active_checks_enabled 1 passive_checks_enabled 0 |
Parameterization
Parameter |
| Default | Description |
---|---|---|---|
-H, | --hostname | — | Name or IP address of the host ( |
-p | --port | — | Port that JobScheduler listens to ( |
-t | --timeout | 30s | Timeout for establishing the connection to JobScheduler |
Notes
Perl > 5.8 is required and the Perl package NET::HTTP. You can download and install Perl packages from e.g. http://www.cpan.
...
A service Command has to be declared before configuring the System Monitor Service that makes use of this Command.
Sample Configuration
Code Block | ||||
---|---|---|---|---|
| ||||
# 'check_jobscheduler_agent' command definition define command\{ command_name check_jobscheduler_agent command_line /opt/plugins/check_jobscheduler_agent.pl -u $ARG1$ -a $ARG2$ -o $ARG3$ -t $ARG4$ \} |
...
Code Block | ||||
---|---|---|---|---|
| ||||
http://galadriel.sos:4445/jobscheduler/agent/overview!'{totalProcessCount},{currentProcessCount}'!'{startedAt},{totalProcessCount},{currentProcessCount},{isTerminating}'!20 | ||||
Panel | ||||
1 | borderStylh1. dashed | borderColor#ccc | ||
bgColor | #fff | |||
titleBGColor | lightgrey | title |
Parameterization
Parameter |
| Default | Description |
---|---|---|---|
-u, | --url | — | URL for the HTTP connection that addresses the Agent via host ( |
-a | --attributes | — | List of attributes that are used to check the Agent availability. The specified attributes are recommended to check if the Agent answer if formally correct. |
-o | --outputvars | — | List of attributes that are used for output of the script and that will be displayed in the System Monitor
|
-t | --timeout | 15s | Timeout for establishing the connection to the Agent |
...
Notes
- Consider the use of the HTTPS protocol instead of the HTTP if the Agent is configured for use with Secure HTTPS communication.
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::Common
LWP::UserAgent
JSON
Data::Dumper
...