Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

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

From: Thomas Guyot-Sionnest <dermoth(at)aei.ca>
Date: Mon Sep 24 2007 - 23:28:42 EDT


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

On 24/09/07 09:22 AM, Ralph.Grothe@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...

Do you need help?X

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



This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

Nagiosplug-help mailing list
Nagiosplug-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagiosplug-help ::: Please include plugins version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null Received on Mon Sep 24 23:28:54 2007

This archive was generated by hypermail 2.1.8 : Mon Oct 08 2007 - 18:06:12 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library