Startup errors
Volker.Aust at premiere.de
Volker.Aust at premiere.de
Tue Oct 8 18:15:52 CEST 2002
And IIRC comments have to start in the first column (no whitespace before
the '#').
-vol
> -----Original Message-----
> From: Marc Powell [mailto:mpowell at ena.com]
> Sent: Tuesday, October 08, 2002 4:48 PM
> To: Seth Hollen; nagios-users at lists.sourceforge.net
> Subject: RE: [Nagios-users] Startup errors
>
>
> I don't know if it's the formatting of the email or not, but the line
> beginning with 'n other host definitions' looks to be the
> problem. Looks
> like you've got some carriage return problems with your
> config file. Try
> commenting out that line with a '#'.
>
> Marc
>
> > -----Original Message-----
> > From: Seth Hollen [mailto:seth at opentechinc.net]
> > Sent: Tuesday, October 08, 2002 8:07 AM
> > To: nagios-users at lists.sourceforge.net
> > Subject: [Nagios-users] Startup errors
> >
> > I am new to nagios and have been following all directions I can find
> > especially the article in Onlamp.
> >
> > If I do "/usr/local/nagios/bin/nagios -v
> > /usr/local/nagios/etc/nagios.cfg"
> > I get this:
> >
> > Reading configuration data...
> >
> > Error: Could not add object property in file
> > '/usr/local/nagios/etc/hosts.cfg' on line 3.
> > Here is my hosts.cfg file
> >
> > -----------begin hosts.cfg-----------------------
> > # 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
> > # Host event handler is enabled
> > event_handler_enabled 1
> > # Flap detection is enabled
> > flap_detection_enabled 1
> > # Process performance data
> > process_perf_data 1
> > # Retain status information across program restarts
> > retain_status_information 1 # Retain non-status
> information
> > across program restarts
> > retain_nonstatus_information 1
> > # DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST,
> > # JUST A TEMPLATE!
> > register 0
> > }
> >
> >
> > # Host Definition
> >
> > define host{
> > # Name of host template to use
> > use generic-host
> >
> > host_name nagios.lan
> > alias nagios
> > address xxx.xxx.xxx.xxx
> > check_command check-host-alive
> > max_check_attempts 10
> > notification_interval 120
> > notification_period 24x7
> > notification_options d,u,r
> > }
> > ----------------end hosts.cfg-------------------
> >
> > Could anyone point me in the right direction???
> > Thank you!
> >
> > Take Care,
> >
> > Seth Hollen
> > seth at opentechinc.net
> > 727-919-1598
> >
> > ---
> > Outgoing mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.394 / Virus Database: 224 - Release Date: 10/3/2002
> >
> >
> >
> >
> > -------------------------------------------------------
> > 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
>
>
> -------------------------------------------------------
> 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
>
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
More information about the Users
mailing list