[Apan-users] Error with APAN
Status: Beta
Brought to you by:
useless
|
From: Ritter, N. <nic...@am...> - 2005-07-20 17:49:57
|
I am using Nagios 1.2 and apan-sql-0.3.0. I have followed through the
installed and get an error when doing a preflight check on nagios.cfg. Can
someone offer some insight on this for me?
Nick
The error is:
--------------- snip --------------------
nagios -v /etc/nagios/nagios.cfg
Nagios 1.2
Copyright (c) 1999-2004 Ethan Galstad (na...@na...
<mailto:na...@na...> )
Last Modified: 02-02-2004
License: GPL
Reading configuration data...
Error: Invalid max_attempts, check_interval, retry_interval, or
notification_interval value for service 'Ping' on host '10.1.12.240'
Error: Could not register service (config file '/etc/nagios/services.cfg',
line 95)
***> One or more problems was encountered while processing the config
files...
Check your configuration file(s) to ensure that they contain valid
directives and data defintions. If you are upgrading from a previous
version of Nagios, you should be aware that some variables/definitions
may have been removed or modified in this version. Make sure to read
the HTML documentation on the main and host config files, as well as
the
'Whats New' section to find out what has changed.
------------ snip ----------------------
The entry in services that it is referring to is:
------------ snip ----------------------
define service {
host_name 10.1.12.240
service_description Ping
check_command
apan-sql!ping!100.0,20%!500.0,60%
name Ping
use generic-service
normal_check_interval 1
}
------------ snip ----------------------
And my check command is:
------------ snip ----------------------
# APAN command
define command {
command_name apan-sql
command_line
/usr/share/nagios/apan-sql/apan-sql.sh $ARG1$ $HOSTNAME$ "$SERVICEDESC$"
$TIMET$ $ARG2$ $ARG3$
}
------------ snip ----------------------
|