Nagios errors !!

Peter Hicks peter.hicks at poggs.co.uk
Wed Jan 5 10:42:44 CET 2005


On Wed, Jan 05, 2005 at 09:26:43AM +0000, Jai Ganesh wrote:

> now i get this error :
> 
> /usr/local/nagios/bin/nagios -v
> /usr/local/nagios/etc/nagios.cfg
> 
> Error: Invalid host object directive '#'.
> Error: Could not add object property in file
> '/usr/local/nagios/etc/hosts.cfg' on line 3.

The hosts.cfg you've pasted has line-wraps:

> # Generic host definition template
> define host{
>  # The name of this host template - referenced i
>  name                            generic-host
>  n other host definitions, used for template
> recursion/resolution
>  # Host notifications are enabled
>  notifications_enabled           1

Comments start from a # and run to the end of the line - they don't span
multiple lines.  Can you remove the comments and run nagios -v again?

Best wishes,


Peter.


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
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