apan return code 127

Cristian Trujillo G. cristian at alestraidc.net.mx
Sun Jan 5 01:49:39 CET 2003


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




More information about the Users mailing list