Try moving the perl script to the same directory as the mini_epn and p1.pl
There is a path length limitation...
Enter file name: ./check_ifstatus.pl wave -c ghoshs
embedded perl plugin output was 1073744548,OK: host 'wave', interfaces up:
2, down: 0, dormant: 0
Enter file name:^C
On Tue, 30 Apr 2002, Douglas E. Warner wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> Trying to execute any perl script, I get the following error:
> <Can't locate object method "hndlr" via package "Embed::embedded19498" at
> p1.pl line 132.
> embedded perl plugin output was -2,(No output!)
> of course, '19498' is just the current pid, but I don't understand the code
> enough to know why this is happening. If anyone has any ideas, I'd love to
> hear them
> - -Doug
> On Tuesday 30 April 2002 11:43 am, Subhendu Ghosh wrote:
> > On Tue, 30 Apr 2002, Douglas E. Warner wrote:
> > > Is there anyway I can test whether a perl script will work with nagios
> > > compiled with embedded perl before I convert my current setup to use it?
> > > Before, I've had problems with several perl scripts that don't like the
> > > embedded perl interpreter. I'd like to debug those.
> > >
> > > - -Doug
> > In the nagios/contrib directory is mini_epn.c from Stanley Hopcroft that
> > can be used for testing whether the perl plugins will work with embedded
> > perl..
> > Please report results which work and do not work with embedded perl.
> > -tia
> > -sg
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.6 (GNU/Linux)
> Comment: For info see http://www.gnupg.org
> -----END PGP SIGNATURE-----