Re: [Nagios-devel] TODO with embedded Perl support.

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] TODO with embedded Perl support.

Post by Guest »

This is a multi-part message in MIME format...

------------=_1115200765-98214-4
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Dear Folks,

An update on the status of the subject is

1 current CVS leaks at a much more tractable rate than the Nagios 2.x
releases to date.

The reasons for the more polite behaviour are not known to me. Since I
could see (and others) nothing partic broken, the current code does the
same things in different ways.

2 reloading the config with a HUP signal is broken.

An embedded Perl Nagios has its vsz increase by 20-40% and then
substantially grow. The only way to date to reload the config is to stop
and start.

Hopefully this will get some attention next: re-initing Perl after a HUP
could be the cause of this.

3 The standard Perl plugins do not share common functions.

Observations of Perl data structure usage with the 1.4 plugins show
that the same subroutines

print_help
print_version
support

etc

are being duplicated for each Perl plugin that makes use of the utils.pm
infrastructure (which should be all of them).

This is an area where improvement can be made relatively cheaply, by

1 making utils.pm a class

thereby _potentially_ changing the public API (and associated batch
changes to the core/contrib plugins, and the docco).

2 changing the way utils.pm behaves

to not export the public functions into the plugin namespace. (I don't
know if this is feasable yet).

Yours sincerely.

--
Stanley Hopcroft


------------=_1115200765-98214-4
Content-Type: text/plain; name="disclaimer.txt"
Content-Disposition: inline; filename="disclaimer.txt"
Content-Transfer-Encoding: 7bit
MIME-Version: 1.0
X-Mailer: MIME-tools 5.415 (Entity 5.415)


--
This message contains privileged and confidential information only
for use by the intended recipient. If you are not the intended
recipient of this message, you must not disseminate, copy or use
it in any manner. If you have received this message in error,
please advise the sender by reply e-mail. Please ensure all
e-mail attachments are scanned for viruses prior to opening or
using.

------------=_1115200765-98214-4--





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked