Works good, but

I had to modify lines 74 and 75 adding a line that makes the ‘while’ loop to bail out if the line does not begin with ‘|’.

while() {
next unless /^|/;

For some reason, the script worked fine if invoked by cli, but gave the following error if invoked inside Nagios:

**ePN /usr/lib/nagios/plugins/check_bacula_lastbackup.pl: Use of uninitialized value _jobStatus in string ne at (eval 1) line 80, JOBLIST line 1..