In order to use the Embedded Perl interpreter, this feature must be compiled into Nagios. This suffices for Nagios 2.x, but for Nagios 3.0 you must also set parameters in the main configuration file
nagios.cfg. In addition, Nagios 3.0 allows each individual Perl plugin to activate or to switch off the Embedded Perl interpreter.
The interpreter is integrated during the
configure call, with the switch
--enable-embedded-perl. In Nagios 2.x you should also use the option
--with-perlcache, which ensures that the interpreter caches scripts that have already been loaded, thus speeding them up if they are run again. Nagios 3.0 sets this implicitly if
--enable-embedded-perl is specified.
Caching in Nagios 2.x has one drawback: ...