[Nagiosplug-devel] complication executing one plugin by another

sean finney seanius at seanius.net
Thu Sep 22 05:10:58 CEST 2005


if you've read the subject, you may be thinking "why the hell would
you want to do that?"

one example is the latest modification i've made (or half-made,
hence the email) to check_procs, to call the pst3 program submitted
by bob ingraham, which will also reside in the plugin installation
dir.

the problem is that to execute pst3, one has to either supply the
full path or assume that it is in the path.  the problem with the
latter is that it probably will not be in the system path, and
the problem with the former is that i can't figure out a good way
to supply the path to the plugin.

so, i see a couple iof options here:

- modify configure.in, config.h and/or Makefile.am's to pass the 
  information at compile-time
- modify check_procs to include the pst3 code natively, making this
  a moot issue.

comments?  in the meantime, i'll leave the CVS HEAD configure.in script
with ac_cv_ps_command="pst3" (no path), so if someone cares they
can copy the binary into their paths.  if i don't hear back, i think
i'll try and work with option 2.


	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-plugins.org/archive/devel/attachments/20050922/08ca0c38/attachment.sig>


More information about the Devel mailing list