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 and the linux wrapper is lmbatchjobwrapper.pl.
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). In addition, 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 (e.g. 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: