Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


SNMP,       (Return code of 127 is out of bounds - plugin may be missing)

Posted on 2008-09-30
Medium Priority
Last Modified: 2013-11-18
I am trying to configure my Nagios server to monitor my routers. I am new to nagios, PHP and apache :( so not a real strong background here. I followed the Quick Start Quide for Ubuntu and all was well. Heck I even fixed my FastCGI issue this morning but I am not strongly suited in Cisco or SNMP either and I need to see what my routers are doing.

Here is the line from switch.cfg:

# Monitor Port 1 status via SNMP

define service{
      use                  generic-service      ; Inherit values from a template
      host_name            BROOMFIELD
      service_description      Port 1 Link Status
      check_command            check_snmp!-C OSI-SNMP

Here is the error kicked up:       (Return code of 127 is out of bounds - plugin may be missing)

Google seems to indicate the plugins are not installed (they are as per the quickstart) or that the line is misconfigured. I am not sure what I need to add here to make it happy. ANy help is appreciated
Question by:slacker9876
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
LVL 32

Accepted Solution

Kamran Arshad earned 1500 total points
ID: 22611929

Please read the below article FAQ;

Author Comment

ID: 22614555
OK so having looked there and then verifying the libexec I see SNMP was not installed with my other plugins. Here is the list of what I do have:

check_apt       check_file_age      check_log       check_oracle   check_tcp
check_breeze    check_flexlm        check_mailq     check_overcr   check_time
check_by_ssh    check_ftp           check_mrtg      check_ping     check_udp
check_clamd     check_http          check_mrtgtraf  check_pop      check_ups
check_cluster   check_icmp          check_nagios    check_procs    check_users
check_dhcp      check_ide_smart     check_nntp      check_real     check_wave
check_dig       check_ifoperstatus  check_nt        check_rpc      negate
check_disk      check_ifstatus      check_ntp       check_sensors  urlize
check_disk_smb  check_imap          check_ntp_peer  check_smtp
check_dns       check_ircd          check_ntp_time  check_ssh
check_dummy     check_load          check_nwstat    check_swap

Any reason this would not have been installed when I installed the plugins? What do I need to do to get it installed? net-snmp is installed on my system.

Author Comment

ID: 22615280
OK, I got rid of the 127 error buy downloading the newest plugins and recondiguring. Now I have a simple syntax issue as I am getting: SNMP problem - No data received from host

The command I have requested Nagios to issue is apparently:
Status Information:      SNMP problem - No data received from host
CMD: /usr/bin/snmpget -t 1 -r 5 -m '' -v 2c [authpriv]  

I am missing something. Here is my service definition ... any ideas what I am not telling it do that it needs to be told?

define service{
      use                  generic-service      ; Inherit values from a template
      host_name            BROOMFIELD
      service_description      Port 1 Link Status
      check_command            check_snmp!-C OSI-SNMP -P2c

Author Comment

ID: 22616878
SHould anyone have a snipit of  their service definition I would not mind seeing / using it!!!
LVL 32

Expert Comment

by:Kamran Arshad
ID: 22622913
In the file services.cfg you have to invoke the check like this:

check_command check_snmp! oid ! warnig value ! critical value !community !"Comment"!"Unit"

Featured Post

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Large and small networks have one same need, Service monitoring. Service monitoring consists of watch services of the several servers in the network. To monitor means that the administrator will receive an alert when a service is down or it's state …
I made this because I wanted to get e-mail with a attached csv file so I'd would be able to import user input into a MS Excel template, but I also wanted to register/save all inputs from each day in a file on the server. 1st - It creates a temp C…
Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

670 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question