I'm using some Perl-based scripts for service checks in Nagios and I get (Service check did not exit properly)
and (null)
as the result in Nagios, but the script works great on the command line.
I've seen solutions online suggesting to disable the internal Perl interpreter by setting enable_embedded_perl=0
in the Nagios configuration or by specifying the path to an interpreter explicitly. This did not help with the issue.
What else could it be?