Nagios 3.0b5 - ePN and perl caching [SEC=UNCLASSIFIED]
Larry Low
llow at telesphere.com
Thu Oct 11 18:21:35 CEST 2007
This is without making changes to the script.
Scenario:
1) ./configure --prefix=/opt/Nagios --enable-event-broker
--with-embedded-perl (I have tried --without-perlcache as well and have not
had time to sift through code to see if this is the actual problem)
2) Have an ePN script with sub print_help
3) Execute 1st check of ePN script, returns OK, no problem
4) Execute 2nd check of ePN script and ePN compile reports print_help
function is redeclared
If I compile without embedded-perl the problem does not exist.
I should probably post this to the devel list.
----
Larry Low
-----Original Message-----
From: <Stanley.Hopcroft <at> Dest.gov.au>
Subject: Re: Nagios 3.0b5 - ePN and perl caching [SEC=UNCLASSIFIED]
Newsgroups: gmane.network.nagios.user
Date: 2007-10-10 23:18:23 GMT (16 hours and 57 minutes ago)
Dear Larry,
I am writing to thank you for your letter and say,
> -----Original Message-----
> Message: 9
> Date: Tue, 9 Oct 2007 17:01:41 -0700
> From: "Larry Low" <llow <at> telesphere.com>
> Subject: [Nagios-users] Nagios 3.0b5 - ePN and perl caching
>
> The problem I am having is with subroutines inside of perl scripts ran
> under the ePN. If a subroutine is defined the next time the script or
> similar script is executed the ePN compile fails with a duplicate
> subroutine reported as the problem.
>
> I believe this problem does not exist under the 2.x code.
Do you mean that, after you change a plugin that Nagios is running, ePN
fails to compile the modified plugin with this (spurious) error code ?
If so, I am running 2.9 and have this problem.
Reluctantly I have found that the only way to deal with this is restart
Nagios after a plugin mod.
It is a PITA.
Patches welcome.
The
>
> ----
> Larry Low
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
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