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

Posted on 2008-09-30
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 500 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

ClickHouse in a General Analytical Workload

We have mentioned ClickHouse in some recent posts, where it showed excellent results.

In this article on Experts Exchange, we’ll look at how ClickHouse performs in a general analytical workload using the star schema benchmark test.

Question has a verified solution.

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

In this tutorial I will show you with short command examples how to obtain a packet footprint of all traffic flowing thru your Juniper device running ScreenOS. I do not know the exact firmware requirement, but I think the fprofile command is availab…
PRTG Network Monitor lets you monitor your bandwidth usage, so you know who is using up your bandwidth, and what they're using it for.
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Suggested Courses

631 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