<div class="gmail_quote">On Thu, May 21, 2009 at 9:18 AM, Andrew Davis <span dir="ltr"><<a href="mailto:nccomp@gmail.com">nccomp@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div bgcolor="#ffffff" text="#000099">
I would agree... get all the relevant devel and necessary library
packages. For some plugins, you can straight into the plugins directory
and compile that one plugin (once all the pre-reqs are there), then
copy the binary to your libexec folder. I had to do this with a client
with mysql. Initially it didn't have mysql, so the test wasn't
compiled. I installed mysql including the dev pkgs and libs, then
dropped into the ~nagios-plugins/plugins folder and did a "make
check_mysql.c", then copied the check_mysql binary to my libexec folder
and all was fine...<br>
<pre cols="72"> A. Davis
Email: <a href="mailto:nccomp@gmail.com" target="_blank">nccomp@gmail.com</a>
"There is no limit to what a man can accomplish
if he doesn't care who gets the credit." - Ronald Reagan
</pre>
<br>
<br>
Paul Weaver wrote:
<blockquote type="cite"><div><div></div><div class="h5">
<blockquote type="cite">
<pre>checking for init_snmp in -lnetsnmp... no
configure: error: snmp library not found
I looked through the Ubuntu package website, and tried installing any
</pre>
</blockquote>
<pre>package I could find that's related to SNMP, but already have them all
installed.
It's probably a -dev package, which you need to compile, but not to run,
the plugin. Try installing libsnmp-dev
</pre></div></div></blockquote></div></blockquote></div><br>That was it - it needed the libsnmp-dev package to configure. But it still wouldn't make (the error message looked like a combo of foreign language and corrupt text encoding) and I hadn't seen Andrew's e-mail yet, so I just re-installed the entire plugins package.<br>
<br>This time it compiled with check_snmp, and after restarting Nagios, my SNMP checks are functioning. NICE!<br><br>Thanks for the tips. If I need to install an individual check at a later date, I'll try Andrew's method of making that one check.<br>
<br>-Mike<br>