[Nagios-users] Confusing error message

2008-12-04 Thread David Dyer-Bennet
Nagios 2.10 is giving me an actively misleading error message.  In this
segment of log, it says I have an invalid retry_interval possibly; then,
when I add one (there was none), it says that retry_interval is an
invalid directive.  I'm assuming that reading the config docs will tell me
what the real name is, this is just a grouse about the incorrect error.

Error: Invalid max_attempts, check_interval, retry_interval, or
notification_int
erval value for service '$HOSTNAME$ ssh' on host 'prcapp02'
Error: Could not register service (config file '/etc/nagios/modcl.cfg',
starting
 on line 42)

*** 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 regarding the config files, as well as the
 'Whats New' section to find out what has changed.

[EMAIL PROTECTED] dev]$ ./install.sh
[EMAIL PROTECTED] dev]$ nagios -v /etc/nagios/nagios.cfg

Nagios 2.10
Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org)
Last Modified: 10-21-2007
License: GPL

Reading configuration data...

Error: Cannot open resource file '/etc/nagios/private/resource.cfg' for
reading!
Error: Invalid host object directive 'retry_interval'.
Error: Could not add object property in file '/etc/nagios/linux.cfg' on
line 21.


-- 
David Dyer-Bennet, [EMAIL PROTECTED]; http://dd-b.net/
Snapshots: http://dd-b.net/dd-b/SnapshotAlbum/data/
Photos: http://dd-b.net/photography/gallery/
Dragaera: http://dragaera.info


--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
Nagios-users mailing list
Nagios-users@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


Re: [Nagios-users] Confusing error message

2008-12-04 Thread Marc Powell

On Dec 4, 2008, at 5:29 PM, David Dyer-Bennet wrote:

 Nagios 2.10 is giving me an actively misleading error message.  In  
 this
 segment of log, it says I have an invalid retry_interval possibly;  
 then,
 when I add one (there was none), it says that retry_interval is an
 invalid directive.  I'm assuming that reading the config docs will  
 tell me
 what the real name is, this is just a grouse about the incorrect  
 error.

 Error: Invalid max_attempts, check_interval, retry_interval, or
 notification_int
 erval value for service '$HOSTNAME$ ssh' on host 'prcapp02'
 Error: Could not register service (config file '/etc/nagios/ 
 modcl.cfg',
 starting on line 42)

Agreed. It's retry_check_interval for service objects in nagios-2.x  
and was changing to retry_interval for nagios-3. (p.s. your use of  
$HOSTNAME$ here seems to be very unusual and I believe doesn't do what  
you think it's doing. What were you trying to accomplish? Does it  
really do that?)

 Error: Invalid host object directive 'retry_interval'.
 Error: Could not add object property in file '/etc/nagios/linux.cfg'  
 on
 line 21.

retry(_check)_interval of any kind has never been valid for host{}  
objects in 2.x. You tried fixing it in the wrong place and so saw this  
different error.

--
Marc


--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
Nagios-users mailing list
Nagios-users@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