Page 1 of 1

check_snmp on ubuntu

Posted: Wed Sep 10, 2014 7:36 am
by beatnik
Having compiled the latest version of nagios and the plugins from source on Ubuntu 12.04.5 as described here: http://assets.nagios.com/downloads/nagi ... Source.pdf

Everything has been pretty straight forward setting up 100+ services on 16 or so hosts however after some more research I found that check_snmp was not configured because there was no net-snmp packages installed (might add that or a note to the prereqs for Ubuntu users in the pdf). Through searching these forums and google I have found numerous different ways to go about getting this installed after the fact but I am unsure which approach to take particularly being that there is no "net-snmp" package in the repositories but i can imagine the libs that are actually needed are there just under another name. Would it be sufficient to compile net-snmp from source then reconfigure nagios-plugins or simply install the nagios-snmp-plugins package from the repositories or some other approach?

snmp packages availible in the repositories:

Code: Select all

p   erlang-snmp                                                                           - Erlang/OTP SNMP applications
p   gkrellm-snmp                                                                          - snmp plug-in for GKrellM
p   libfusioninventory-agent-task-snmpquery-perl                                          - SNMP devices scan support for FusionInventory Agent
v   libgsnmp-dev                                                                          -
p   libgsnmp0                                                                             - an SNMP library implementation based on glib and gnet
p   libgsnmp0-dbg                                                                         - an SNMP library implementation based on glib and gnet (debug files)
p   libgsnmp0-dev                                                                         - an SNMP library implementation based on glib and gnet (development files)
p   libnet-snmp-perl                                                                      - Script SNMP connections
p   libsnmp-base                                                                          - SNMP (Simple Network Management Protocol) MIBs and documentation
p   libsnmp-dev                                                                           - SNMP (Simple Network Management Protocol) development files
p   libsnmp-extension-passpersist-perl                                                    - Generic pass/pass_persist extension framework for Net-SNMP
p   libsnmp-info-perl                                                                     - Object Oriented Perl5 Interface to Network devices and MIBs through SNMP
p   libsnmp-mib-compiler-perl                                                             - a MIB Compiler supporting SMIv1 and SMIv2
p   libsnmp-multi-perl                                                                    - Perform SNMP operations on multiple hosts simultaneously
p   libsnmp-perl                                                                          - SNMP (Simple Network Management Protocol) Perl5 support
p   libsnmp-python                                                                        - SNMP (Simple Network Management Protocol) Python support
p   libsnmp-ruby                                                                          - simple network management protocol bindings for ruby
p   libsnmp-ruby1.8                                                                       - simple network management protocol bindings for ruby 1.8
p   libsnmp-session-perl                                                                  - Perl support for accessing SNMP-aware devices
p   libsnmp1.4-java                                                                       - Open Source implementation of the SNMP protocol in Java
p   libsnmp15                                                                             - SNMP (Simple Network Management Protocol) library
p   libsnmp15-dbg                                                                         - SNMP (Simple Network Management Protocol) library debug
v   libsnmp9-dev                                                                          -
p   libsnmpkit-dev                                                                        - multithreaded SNMP connection library
p   libsnmpkit2c2a                                                                        - multithreaded SNMP connection library
p   nagios-snmp-plugins                                                                   - SNMP Plugins for nagios
p   nut-snmp                                                                              - network UPS tools - SNMP driver
p   openhpi-plugin-snmp-bc                                                                - OpenHPI plugin module for IBM's BladeCenter or RSA over SNMP
p   php5-snmp                                                                             - SNMP module for php5
p   python-pynetsnmp                                                                      - Python ctypes bindings for NET-SNMP with Twisted integration
p   python-pysnmp-common                                                                  - Python SNMP library for agents and managers (version selection module)
p   python-pysnmp2                                                                        - Python SNMP library for agents and managers (stable branch)
p   python-pysnmp4                                                                        - Python SNMP library for agents and managers (unstable branch)
p   python-pysnmp4-apps                                                                   - Applications for the Python SNMP library
p   python-pysnmp4-doc                                                                    - Python SNMP library for agents and managers (unstable branch)
p   python-pysnmp4-mibs                                                                   - MIBs for the Python SNMP library
v   python2.7-pysnmp2                                                                     -
p   snmp                                                                                  - SNMP (Simple Network Management Protocol) applications
p   snmp-mibs-downloader                                                                  - Install and manage Management Information Base (MIB) files
p   snmpd                                                                                 - SNMP (Simple Network Management Protocol) agents
p   snmptrapfmt                                                                           - A configurable snmp trap handler daemon for snmpd
p   snmptt                                                                                - SNMP trap handler for use with snmptrapd
p   wmnd-snmp                                                                             - Dockapp monitoring network interfaces with SNMP support
Thanks,
Rick

Re: check_snmp on ubuntu

Posted: Wed Sep 10, 2014 4:31 pm
by slansing
I thought net-snmp was on the apt repo? Check this out as it may hold the answers:

http://ubuntuforums.org/showthread.php?t=834180