apan return code 127

Fredrik Wänglund Fredrik.Wanglund at datavis.se
Tue Jan 7 09:18:17 CET 2003


Are you using bash?


-----Original Message-----
From:	Cristian Trujillo G. [mailto:cristian at alestraidc.net.mx]
Sent:	Sun 05-Jan-03 01:49
To:	nagios-users at lists.sourceforge.net
Cc:	
Subject:	[Nagios-users] apan return code 127


Hi read the faq and i cant resolve this problem, i use FreeBSD and nagios
work fine, but apan not.

always return this:

Warning: Return code of 127 for check of service 'Disk-usage' on host
'server1' was out of bounds. Make sure the plugin you're trying to run
actually exists.

When i run manually /usr/local/apan/apan.sh the result is

/usr/local/apan/apan.defs: 32: Syntax error: word unexpected (expecting ")")

i suspect the problem is in the path this a apan.defs

#Base-directory for nagios:
NAGIOSDIR=/usr/local/bin/

#The directory where apan is installed
APANDIR=/usr/local/apan

#The directory where Nagios plugins resides
PLUGINSDIR=/usr/local/libexec/nagios

#The directory where Nagios .cfg-files resides
ETCDIR=/usr/local/etc/nagios

# The directory where apans plugins resides
PLUGSDIR=$APANDIR/plugs

# The main config-file for apan
CFGFILE=$APANDIR/apan.cfg

# Path to rrdtool
RRDTOOL=/usr/local/bin/rrdtool

# Set DEBUG to 1 and define a DEBUGFILE to get debug-info from apan
DEBUG=1
DEBUGFILE=/tmp/apan.debug

the debug no print nothing... thanks



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users





-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com




More information about the Users mailing list