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

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
ofadl
Posts: 201
Joined: Mon Jun 03, 2013 8:57 am

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

Post by ofadl »

Hello everyone,

I am have a problem with two of my servers running a "Source monitor" check, in which the error messaged displayed is "return code of 127 is out of bounds, plugin may be missing"
Here are the definitions for the check:

(Service check)

define service{
use generic-service ; Name of service template to use
host_name sf_monitoring_site
service_description SF Source Monitor
check_command check_equinox_http!/sourcemonitor.asp?nagios=1!All is fine!admin!cmonsir123!
}

(command check)

# 'check_equinox_http' command definition
define command{
command_name check_equinox_http
command_line $USER1$/is_url_alive "http://$HOSTADDRESS$$ARG1$" "$ARG2$" "$ARG3$" "$ARG4$"
}
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: (Return code of 127 is out of bounds - plugin may be mis

Post by slansing »

I suggest we first fix your other issues before you jump into more problems. You definitely have issues with your definitions:

First, do you have a plugin named "is_url_alive" in your plugins directory? Second, what is the usage for this plugin as I cannot find it on the web. The way you have things defined could cause some issues..

What are you passing those arguments to? Right now, this is what the server is running:

Code: Select all

/pluginsdirectorypath/is_url_alive "http://host.address/sourcemonitor.asp?nagios=1" "All is fine" "admin" "cmonsir123"
Correct me if I'm wrong but I don't think those quoted arguments are going to do anything without specifying the flags your plugin requires.
Locked