Yes, you can have your monitored batch jobs report other custom data to LogicMonitor, for informational purposes. This data will be displayed in LogicMonitor, but it won’t be used for alerting or graphing purposes. The custom data reported to LogicMonitor can be any desired information, for example it could be static content such as “reportSentTo: myboss”, or information output by the batch job run on your system.
To enable custom data collection, you’ll need to modify the batch job wrapper (either lmbatchjobwrapper.js for windows or lmbatchjobwrapper.pl for linux) to report userData in the #start the customer job section of the script. Specifically, there are three edits necessary:
- add a line ‘my $userData = “You custom data goes here”;’ after the ‘my $level….’ line
- add a comma after ‘alertLevel => $level’
- add a new line after the line edited in 2 ‘userData => $userData
The end result should look like this: