Monitoring switches via SNMP --

Mike Saldivar mike.saldivar at advocatecreditrepair.com
Thu May 21 17:47:29 CEST 2009


On Thu, May 21, 2009 at 9:18 AM, Andrew Davis <nccomp at gmail.com> wrote:

>  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...
>
>   A. Davis
>   Email:     nccomp at gmail.com
>
>   "There is no limit to what a man can accomplish
>    if he doesn't care who gets the credit." - Ronald Reagan
>
>
>
> Paul Weaver wrote:
>
>  checking for init_snmp in -lnetsnmp... no
> configure: error: snmp library not found
>
> I looked through the Ubuntu package website, and tried installing any
>
>
>  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
>
>
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.

This time it compiled with check_snmp, and after restarting Nagios, my SNMP
checks are functioning.  NICE!

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.

-Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20090521/71530459/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list