[Nagiosplug-help] How to verify if nagios was built with embperl?

Thomas Guyot-Sionnest dermoth at aei.ca
Tue Sep 25 05:28:42 CEST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 24/09/07 09:22 AM, Ralph.Grothe at itdz-berlin.de wrote:
> Hello,
> 
> this is a follow-on to my posting to this list about inexplicable
> UNKNOWN state determination
> by nagios of a custom plugin.
> 
> [...]
> 
> So, how can I verify that my nagios binary indeed is precaching
> Perl plugins
> and executing them via embperl?
> 
> When I look at the shared libs there is a reference to some
> libperl
> which to me looks like I do run an embperl enabled nagios.

There you have it. You can also look at the output of configure
(embedded Perl is a configure option).

You can skip the embedded Perl execution by calling the Perl binary
within Nagios. I.e. in your command definition:

command_line    /usr/bin/perl $USER1$/check_stuff.pl <some_args>

While this is an option it is always better to fix your Perl script as
embedded Perl execution is much faster (the plugin is compiled only once
and there's no forking necessary).

This is a good guideline fro writing ePN plugins:
http://nagiosplug.sourceforge.net/developer-guidelines.html#PERLPLUGIN

You can also use Nagios::Plugins which can make your life much easier...


Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG+IBq6dZ+Kt5BchYRAixEAJ44nrmCSmVbWInWugPLoRnT7GHRwQCghf/F
wQHaHAawLYbkIJL+m2JexxM=
=Kh68
-----END PGP SIGNATURE-----




More information about the Help mailing list