[Pkg-nagios-devel] Bug#453846: nagios2: Please add documentation about exit trapping in perl scripts

Stephen Gran sgran at debian.org
Sat Dec 1 16:19:45 UTC 2007


Package: nagios2
Version: 2.6-2+etch1
Severity: wishlist

/usr/share/doc/nagios2/html/embeddedperl.html has some nice information
about some of the pitfalls of using perl scripts directly from nagios'
embedded perl interpreter, but it misses one I stumbled over the other
day.  Apparently, when a script calls exit, p1.pl traps it and raises
die (why, oh dear God, why?).  If your script has a $SIG{__DIE__}
handler installed, this will then be called, since die was raised.

As this is, ahem, slightly non-intuitive, it would be nice if this was
also documented in the html along with the other oddities of using the
embedded perl interpreter.

Thanks,

-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-5-686
Locale: LANG=en_US.utf-8, LC_CTYPE=en_US.utf-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.utf-8)

Versions of packages nagios2 depends on:
ii  libc6                  2.3.6.ds1-13etch2 GNU C Library: Shared libraries
ii  libgd2-xpm             2.0.33-5.2        GD Graphics Library version 2
ii  libjpeg62              6b-13             The Independent JPEG Group's JPEG 
ii  libperl5.8             5.8.8-7etch1      Shared Perl library
ii  libpng12-0             1.2.15~beta5-1    PNG library - runtime
ii  nagios2-common         2.6-2+etch1       support files for nagios2
ii  perl                   5.8.8-7etch1      Larry Wall's Practical Extraction 
ii  zlib1g                 1:1.2.3-13        compression library - runtime

nagios2 recommends no packages.

-- no debconf information

-- 
 -----------------------------------------------------------------
|   ,''`.                                            Stephen Gran |
|  : :' :                                        sgran at debian.org |
|  `. `'                        Debian user, admin, and developer |
|    `-                                     http://www.debian.org |
 -----------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-nagios-devel/attachments/20071201/225205d7/attachment.pgp 


More information about the Pkg-nagios-devel mailing list