Compiling Perl check scripts

Marc Powell marc at ena.com
Thu Jun 28 20:03:39 CEST 2007



> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> bounces at lists.sourceforge.net] On Behalf Of Morris, Patrick
> Sent: Thursday, June 28, 2007 12:52 PM
> To: Adam Kennedy; nagios-users at lists.sourceforge.net
> Subject: Re: [Nagios-users] Compiling Perl check scripts
> 
> > From: nagios-users-bounces at lists.sourceforge.net
[mailto:nagios-users-
> > bounces at lists.sourceforge.net] On Behalf Of Adam Kennedy


> > What method has anyone used to compile perl scripts? I am using perl
> > modules (mainly Net::SNMP, Net::DNS and various others) with the
> > scripts. I tried perlcc but it didn't work. Any other ideas?
> >
> > Should I just bite the bullet and attempt to write a C app to do the
> > functions of my perl scripts instead? I would really hate to do
that,
> > as
> > my C skills don't go far beyond "Hello World".
> 
> This is the sort of thing the embedded perl interpreter was made for.
> If Nagios is built with it, it won't need to load and compile your
> scripts every time they run.
> 

Indeed but it's important to point out that there are some special
requirements for your perl plugins. More information can be found at
http://nagios.sourceforge.net/docs/2_0/embeddedperl.html.

--
Marc

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list