Re: [Nagios-devel] $0 under ePN

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] $0 under ePN

Post by Guest »


--/04w6evG8XlLl3ft
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Aug 21, 2006 at 02:48:19PM +1000, Gavin Carr wrote:
> 1. modify nagios to set an environment variable before it invokes=20
> the plugin (or ePN) containing the full path to the plugin
> e.g. NAGIOS_PLUGIN or some such

i think that within epn is probably the best place to fix this, since
it's only a problem from within epn.

i'm guessing that epn doesn't do fork/exec at all, so it would be
hard to "trick" the plugin by overwriting $0. perhaps what you
suggest would be a good approach wrt setting an environment variable
and doing some automatic setting in the perl plugin module.


sean

--/04w6evG8XlLl3ft
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)

iD8DBQFE6UyvynjLPm522B0RAgxlAJ9k77h+nVNyP2cxshgL6PcqBdVz0QCeM55I
CS4cHOeA3/Tt0STL8BosaSE=
=t6XS
-----END PGP SIGNATURE-----

--/04w6evG8XlLl3ft--





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