getting error "Return code of 127...Make sure the plugin you're trying to run actually exists."
Daniel Finn
dfinn at twelvehorses.com
Mon Mar 1 21:06:04 CET 2004
Debian Woody testing/unstable 2.4.18-bf2.4
Software was installed from source using nagios-1.2.tar.gz &
nagios-plugins-1.3.1.tar.gz. All settings were left to default for both
installations.
from nagios.cfg:
cfg_file=/usr/local/nagios/etc/checkcommands.cfg
cfg_file=/usr/local/nagios/etc/misccommands.cfg
cfg_file=/usr/local/nagios/etc/contactgroups.cfg
cfg_file=/usr/local/nagios/etc/contacts.cfg
#cfg_file=/usr/local/nagios/etc/dependencies.cfg
#cfg_file=/usr/local/nagios/etc/escalations.cfg
cfg_file=/usr/local/nagios/etc/hostgroups.cfg
cfg_file=/usr/local/nagios/etc/hosts.cfg
cfg_file=/usr/local/nagios/etc/services.cfg
cfg_file=/usr/local/nagios/etc/timeperiods.cfg
resource_file=/usr/local/nagios/etc/resource.cfg
from resource.cfg:
$USER1$=/usr/local/nagios/libexec/
from checkcommands.cfg:
# 'check_smtp' command definition
define command{
command_name check_smtp
command_line $USER1$/check_smtp -H $HOSTADDRESS$
}
and in my nagios.log file i'm getting the following:
[1078171131] Warning: Return code of 127 for check of service 'DNS' on
host 'medusa' was out of bounds. Make sure the plugin you're trying to run
actually exists.
[1078171131] HOST NOTIFICATION: dfinn;medusa;DOWN;host-notify-by-email;(No
output!)
[1078171071] HOST NOTIFICATION:
dfinn;hercules;DOWN;host-notify-by-email;CRITICAL - Plugin timed out after
10 seconds
as you can see here the plugins are installed and seem to work fine when
run manually:
wolverine:/usr/local/nagios/etc# /usr/local/nagios/libexec/check_smtp -H
192.168.0.2
SMTP OK - 0 second response time
Any help would be really appreciated.
Thanks
Dan Finn
Unix System Administrator
Twelve Horses North America
Cell : 775.233.1774
Desk : 775.337.3336
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list