Solved

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

Posted on 2008-09-30
5
11,149 Views
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
0
Comment
Question by:slacker9876
  • 3
  • 2
5 Comments
 
LVL 32

Accepted Solution

by:
Kamran Arshad earned 500 total points
Comment Utility
Hi,

Please read the below article FAQ;

http://www.nagios.org/faqs/viewfaq.php?faq_id=17
0
 

Author Comment

by:slacker9876
Comment Utility
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     utils.pm
check_dns       check_ircd          check_ntp_time  check_ssh      utils.sh
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.
0
 

Author Comment

by:slacker9876
Comment Utility
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] 192.168.99.1:161  

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
      }
0
 

Author Comment

by:slacker9876
Comment Utility
SHould anyone have a snipit of  their service definition I would not mind seeing / using it!!!
0
 
LVL 32

Expert Comment

by:Kamran Arshad
Comment Utility
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"
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

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…
In this article you will learn how to create a free basic website on Bitbucket, a git service provider. Polymer creates dynamic HTML components, which allow more flexibility than static HTML. This tutorial uses Ubuntu Linux but can also be done on W…
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…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

763 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now