Return code of 127 is out of bounds
ah43 at httpsite.com
ah43 at httpsite.com
Mon Feb 24 18:13:05 CET 2003
I posted this on the apan list, but I wondered if anyone here might be able to
assist as well...
here's the whole line in my nagios.log:
[1045842910] SERVICE NOTIFICATION:
andy;localhost;apan_unixdisk;CRITICAL;notify-by-email;(Return code of 127
is out of bounds - plugin may be missing)
I'm running freebsd which doesn't use the /usr/local/nagios dir structure,
but I've configured everything appropriately.
I even got apangen working just to see if I was doing something wrong when
setting it up manually and got the exact same results.
-----------------------
/usr/local/etc/nagios/apan.cfg
#host ; service ; rrd-file ; args ; ds-names ; Comment ; Y-unit ; extra
comm
localhost;apan_unixdisk;/usr/local/var/nagios/rrd/localhost-apan_unixdisk.r
rd;/|/export/home;root:LINE2root:LINE2;Disk usage;%;
-----------------------
/usr/local/etc/nagios/apan.defs
#Base-directory for nagios:
NAGIOSDIR=/usr/local
#The directory where apan is installed
APANDIR=$NAGIOSDIR/libexec/nagios
#The directory where Nagios plugins resides
PLUGINSDIR=$NAGIOSDIR/libexec/nagios
#The directory where Nagios .cfg-files resides
ETCDIR=$NAGIOSDIR/etc/nagios
# The directory where apans plugins resides
PLUGSDIR=$NAGIOSDIR/etc/nagios/plugs
# The main config-file for apan
CFGFILE=$NAGIOSDIR/etc/nagios/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
# Set CGIDEBUG to 1 and define a CGIDEBUGFILE to get debug-info from the
cgi's
CGIDEBUG=1
CGIDEBUGFILE=/tmp/apancgi.debug
# A list of colors that are used to draw the lines in the graphs.
# Beware of the syntax!!
COLS=("#ff0000" "#00ff00" "#0000ff" "#ffff00" "#ff00ff" "#00ffff"
"#ff8080" "#808080" "#8080ff" )
# The type of image that is created. Valid values are PNG, GIF or GD
IMGTYPE=PNG
#
#End Configuration
-----------------------
from services.cfg
### Added by apangen.sh on Feb 20 2003 16:46:08
define service {
use generic-service
host_name localhost
service_description apan_unixdisk
check_command apan!disk!90!95
check_period 24x7
normal_check_interval 1
max_check_attempts 2
normal_check_interval 1
retry_check_interval 1
contact_groups system-ops
notification_interval 5
notification_period 24x7
notification_options w,c,r
}
from serviceextinfo.cfg
### Added by apangen.sh on Feb 20 2003 16:48:49
define serviceextinfo{
host_name localhost
service_description apan_unixdisk
notes_url
/nagios/cgi-bin/apan.cgi?host=localhost&service=apan_unixdisk
icon_image graph.png
icon_image_alt View graphs
}
# ls -la /usr/local/libexec/nagios
total 586
drwxr-xr-x 2 root wheel 1536 Feb 21 08:43 .
drwxr-xr-x 9 root wheel 1024 Feb 14 14:44 ..
-rw-r--r-- 1 root wheel 224 Jan 17 04:42 README
-rwxr-xr-x 1 nagios nagios 1568 Feb 20 15:05 apan.sh
-r-xr-xr-x 1 root wheel 2266 Oct 5 10:21 check_breeze
-r-xr-xr-x 1 root wheel 15648 Oct 5 10:21 check_by_ssh
-r-xr-xr-x 1 root wheel 13788 Oct 5 10:21 check_dig
-r-xr-xr-x 1 root wheel 15816 Oct 5 10:21 check_disk
-r-xr-xr-x 1 root wheel 6784 Oct 5 10:21 check_disk_smb
-r-xr-xr-x 1 root wheel 16256 Oct 5 10:21 check_dns
-r-xr-xr-x 1 root wheel 7872 Oct 5 10:21 check_dummy
-r-xr-xr-x 1 root wheel 3832 Oct 5 10:21 check_flexlm
-r-xr-xr-x 1 root wheel 14400 Oct 5 10:21 check_ftp
-r-xr-xr-x 1 root wheel 29856 Oct 5 10:21 check_http
-r-xr-xr-x 1 root wheel 7060 Oct 5 10:21 check_ifoperstatus
-r-xr-xr-x 1 root wheel 6403 Oct 5 10:21 check_ifstatus
-r-xr-xr-x 1 root wheel 14112 Oct 5 10:21 check_imap
-r-xr-xr-x 1 root wheel 7436 Oct 5 10:21 check_ircd
-r-xr-xr-x 1 root wheel 13372 Oct 5 10:21 check_load
-r-xr-xr-x 1 root wheel 5235 Oct 5 10:21 check_log
-rwxr-xr-x 1 root wheel 2795 Jan 17 05:45 check_megaide
-r-xr-xr-x 1 root wheel 13124 Oct 5 10:21 check_mrtg
-r-xr-xr-x 1 root wheel 11488 Oct 5 10:21 check_mrtgtraf
-r-xr-xr-x 1 root wheel 13864 Oct 5 10:21 check_nagios
-r-xr-xr-x 1 root wheel 15220 Oct 5 10:21 check_nntp
-r-xr-xr-x 1 root wheel 19232 Oct 5 10:21 check_nt
-rwxr-xr-x 1 root wheel 891 Jan 17 05:30 check_nt_load
-r-xr-xr-x 1 root wheel 7855 Oct 5 10:21 check_ntp
-r-xr-xr-x 1 root wheel 22772 Oct 5 10:21 check_nwstat
-r-xr-xr-x 1 root wheel 4324 Oct 5 10:21 check_oracle
-r-xr-xr-x 1 root wheel 16844 Oct 5 10:21 check_overcr
-r-xr-xr-x 1 root wheel 18424 Oct 5 10:21 check_ping
-r-xr-xr-x 1 root wheel 14336 Oct 5 10:21 check_pop
-r-xr-xr-x 1 root wheel 17120 Oct 5 10:21 check_procs
-r-xr-xr-x 1 root wheel 15824 Oct 5 10:21 check_real
-r-xr-xr-x 1 root wheel 9697 Oct 5 10:21 check_rpc
-r-xr-xr-x 1 root wheel 1180 Oct 5 10:21 check_sensors
-r-xr-xr-x 1 root wheel 14596 Oct 5 10:21 check_smtp
-r-xr-xr-x 1 root wheel 13276 Oct 5 10:21 check_ssh
-r-xr-xr-x 1 root wheel 14136 Oct 5 10:21 check_swap
-r-xr-xr-x 1 root wheel 18480 Oct 5 10:21 check_tcp
-r-xr-xr-x 1 root wheel 15372 Oct 5 10:21 check_time
-r-xr-xr-x 1 root wheel 14404 Oct 5 10:21 check_udp
-rwxr-xr-x 1 root wheel 744 Jan 17 05:32 check_unix_load
-r-xr-xr-x 1 root wheel 18200 Oct 5 10:21 check_ups
-r-xr-xr-x 1 root wheel 12716 Oct 5 10:21 check_users
-r-xr-xr-x 1 root wheel 13872 Oct 5 10:21 check_vsz
-r-xr-xr-x 1 root wheel 3018 Oct 5 10:21 check_wave
-rwxr-xr-x 1 root wheel 5475 Jan 17 05:44 disk_by_snmp
-rwxr-xr-x 1 root wheel 1474 Jan 17 05:43 uptime_by_snmp
-r-xr-xr-x 1 root wheel 11780 Oct 5 10:21 urlize
-r-xr-xr-x 1 root wheel 1955 Oct 5 10:21 utils.pm
-r-xr-xr-x 1 root wheel 747 Oct 5 10:21 utils.sh
# ls -la /usr/local/var/nagios/rrd/
total 774
drwxr-xr-x 2 nagios nagios 512 Feb 20 16:48 .
drwxrwxr-x 6 nagios nagios 512 Feb 21 11:01 ..
-rw-r--r-- 1 root nagios 1 Feb 20 16:48 b
-rw-rw---- 1 nagios nagios 754332 Feb 20 16:48
localhost-apan_unixdisk.rrd
ls -la /usr/local/share/nagios/cgi-bin
total 1946
drwxr-xr-x 2 nagios nagios 512 Feb 20 15:06 .
drwxr-xr-x 10 nagios nagios 512 Feb 20 11:23 ..
-rwxr-xr-x 1 nagios nagios 3936 Feb 20 15:06 apan.cgi
-rwxrwxr-x 1 nagios nagios 147368 Oct 5 11:16 avail.cgi
-rwxrwxr-x 1 nagios nagios 147128 Oct 5 11:16 cmd.cgi
-rwxrwxr-x 1 nagios nagios 114152 Oct 5 11:16 config.cgi
-rwxrwxr-x 1 nagios nagios 160880 Oct 5 11:16 extinfo.cgi
-rwxr-xr-x 1 nagios nagios 1913 Feb 20 15:06 generate.cgi
-rwxrwxr-x 1 nagios nagios 125000 Oct 5 11:16 histogram.cgi
-rwxrwxr-x 1 nagios nagios 104356 Oct 5 11:17 history.cgi
-rwxrwxr-x 1 nagios nagios 101380 Oct 5 11:17 notifications.cgi
-rwxrwxr-x 1 nagios nagios 98496 Oct 5 11:17 outages.cgi
-rwxrwxr-x 1 nagios nagios 99876 Oct 5 11:17 showlog.cgi
-rwxrwxr-x 1 nagios nagios 146648 Oct 5 11:17 status.cgi
-rwxrwxr-x 1 nagios nagios 127328 Oct 5 11:17 statusmap.cgi
-rwxrwxr-x 1 nagios nagios 115208 Oct 5 11:17 statuswml.cgi
-rwxrwxr-x 1 nagios nagios 108864 Oct 5 11:17 statuswrl.cgi
-rwxrwxr-x 1 nagios nagios 119720 Oct 5 11:17 summary.cgi
-rwxrwxr-x 1 nagios nagios 123928 Oct 5 11:17 tac.cgi
-rwxrwxr-x 1 nagios nagios 126440 Oct 5 11:17 trends.cgi
# ls -la /usr/local/etc/nagios
total 184
drwxrwxr-x 6 nagios nagios 1024 Feb 21 08:46 .
drwxr-xr-x 20 root wheel 1536 Feb 21 10:45 ..
drwxrwxr-x 2 nagios nagios 512 Feb 20 11:39 RCS
-rw-rw-r-- 1 nagios nagios 205 Feb 20 16:48 apan.cfg
-rw-rw-r-- 1 nagios nagios 1007 Feb 20 15:58 apan.defs
-rw-rw-r-- 1 nagios nagios 1 Feb 20 16:46 b
drwxrwxr-x 2 nagios nagios 512 Feb 20 10:04 bu
-rw-rw-r-- 1 nagios nagios 17246 Feb 20 10:02 cgi.cfg
-rw-rw-r-- 1 nagios nagios 2541 Feb 20 15:42 checkcommands.cfg
-rw-rw-r-- 1 nagios nagios 288 Feb 20 15:42 contactgroups.cfg
-rw-rw-r-- 1 nagios nagios 657 Feb 20 15:42 contacts.cfg
-rw-rw-r-- 1 nagios nagios 1951 Feb 20 10:02 dependencies.cfg
-rw-rw-r-- 1 nagios nagios 2360 Feb 20 10:02 escalations.cfg
-rw-rw-r-- 1 nagios nagios 1448 Feb 20 10:02 hostextinfo.cfg
-rw-rw-r-- 1 nagios nagios 2118 Feb 20 15:42 hostgroups.cfg
-rw-rw-r-- 1 nagios nagios 9357 Feb 20 15:42 hosts.cfg
-rw-rw-r-- 1 nagios nagios 4277 Feb 20 10:02 misccommands.cfg
-rw-rw-r-- 1 nagios nagios 4448 Feb 20 11:38 nagatcfg.dat
-rw-rw-r-- 1 nagios nagios 45255 Feb 20 15:54 nagatobjs.dat
-rw-rw-r-- 1 nagios nagios 21332 Feb 20 10:02 nagios.cfg
-rw-rw-r-- 1 nagios nagios 5098 Feb 20 11:14 nsca.cfg
drwxrwxr-x 2 nagios nagios 512 Feb 20 15:07 plugs
-rw-rw---- 1 nagios nagios 3074 Feb 20 10:02 resource.cfg
drwxrwxr-x 2 nagios nagios 512 Feb 18 10:36 samples
-rw-rw-r-- 1 nagios nagios 2251 Feb 20 16:48 serviceextinfo.cfg
-rw-rw-r-- 1 nagios nagios 22198 Feb 20 16:50 services.cfg
-rw-rw-r-- 1 nagios nagios 1488 Feb 20 15:42 timeperiods.cfg
# ls -la /usr/local/etc/nagios/plugs
total 22
drwxrwxr-x 2 nagios nagios 512 Feb 20 15:07 .
drwxrwxr-x 6 nagios nagios 1024 Feb 21 08:46 ..
-rw-r--r-- 1 root wheel 128 Oct 23 03:12 README
-rw-r--r-- 1 root wheel 133 Nov 20 02:21 debug.sh
-rwxr-xr-x 1 root wheel 1582 Jan 17 07:01 disk.sh
-rw-r--r-- 1 root wheel 1957 Jan 17 05:28 load.sh
-rwxr-xr-x 1 root wheel 1328 Jan 17 07:01 nt_utils.sh
-rwxr-xr-x 1 root wheel 494 Nov 20 03:12 printer.sh
-rw-r--r-- 1 root wheel 2944 Jan 17 09:48 snmp.sh
-rwxr-xr-x 1 root wheel 669 Jan 17 07:02 utils.sh
--
Andy Harrison
ah43 at httpsite.com
ICQ: 123472 AIM/Y!: AHinMaine
homepage: http://www.nachoz.com
-------------------------------------------------------
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
::: 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