I've got a module that I'm getting ready for CPAN (see Module Idea) and I have something you might be able to help me with. The module implements a particular method of testing if your web servers are working. I've written a nagios plugin that uses this module and I want to include it with my module.

My question is, what's the best way to include something like this?

First of all, you can use the module without the nagios plugin, so you might not want me to install it at all.

Also, it's not a 'binary' or a 'script' that goes into /usr/bin or a similer directory. Its specific to nagios and goes into /usr/lib/nagios/plugins on my linux distro, and it probably goes elsewhere (/usr/local/nagios/plugins?) on other people's setup.

What's the best way to find out if make install or Build install should install this nagios plugin at all?

What's the best way to figure where to install it, if it should be installed?

Right now, my best idea is to search through a list of known nagios plugin directories, and if one is found, install it there. If none are found, don't install the plugin.

Thanks!
-Pileofrogs


In reply to Distribution Question by pileofrogs

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.