G.2 Using ePN

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.

G.2.1 Compiling ePN

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: ...

Get Nagios, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.