Confusing error message

Marc Powell marc at ena.com
Fri Dec 5 00:56:06 CET 2008


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 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