$0 under ePN

sean finney seanius at seanius.net
Mon Aug 21 08:03:27 CEST 2006


On Mon, Aug 21, 2006 at 02:48:19PM +1000, Gavin Carr wrote:
> 1. modify nagios to set an environment variable before it invokes 
>    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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20060821/78bc0063/attachment.sig>
-------------- next part --------------
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
-------------- next part --------------
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel


More information about the Developers mailing list