Running your job so it can be monitoredLast updated on 21 October, 2021
In order for LogicMonitor to monitor batch jobs, they should be run within one of the LogicMonitor supplied wrappers. Wrappers are supplied for both Windows and Linux systems, in the lib directory of the Collector, logicmonitor/agent/lib.
- The Windows wrapper is lmbatchjobwrapper.js
- The Linux wrapper is lmbatchjobwrapper.sh
Batch job status is reported to a collector on TCP port 7214 by default (this port can be configured in the collector’s agent.conf). Thus, the system running the batch job must be able to reach TCP port 7214 on the Collector or the configured port (if you’ve change it).
- If you’re monitoring a batch job on a Linux server, the Linux wrapper requires Perl::LWP. This is present on most systems, and if not is easily installed through your package manager (such as: yum install perl-libwww-perl) or via CPAN.
- There are no additional requirements for the Windows wrapper.
Using the wrappers
Both the Windows and Linux batch job wrappers are used in the same way, and support the same parameters: