Compiling Perl check scripts

Morris, Patrick patrick.morris at hp.com
Thu Jun 28 19:52:26 CEST 2007


> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> bounces at lists.sourceforge.net] On Behalf Of Adam Kennedy
> Sent: Thursday, June 28, 2007 10:13 AM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Compiling Perl check scripts
> 
> In our environment, I have roughly 1000 services being checked via
perl
> scripts. Needless to say, it slows the nagios server down a bit *grin*
> 
> 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.

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