logo       

RE: apan return code 127: msg#00220

network.nagios.user

Subject: RE: apan return code 127

Are you using bash?


-----Original Message-----
From: Cristian Trujillo G. [mailto:cristian@xxxxxxxxxxxxxxxxx]
Sent: Sun 05-Jan-03 01:49
To: nagios-users@xxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxx
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


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise