Re: [Nagios-users] Error when starting nagios in debug mode.

2007-01-25 Thread Marc Powell


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Gopinath
> Sent: Thursday, January 25, 2007 7:54 AM
> To: nagios-users@lists.sourceforge.net
> Subject: [Nagios-users] Error when starting nagios in debug mode.
> 


> 
> Error: Unexpected token or statement in file
> '/usr/local/nagios/etc/hosts.cfg' on line 1.
> 
> My hosts.cfg file has the default value:
> 
> 0 CFGDIR cfg
> 0 DEFHOST pc1 192.168.10.1.cfg serial0
> 0 DEFHOST pc2 192.168.10.1.cfg serial2
> 0 DEFHOST pc3 192.168.10.1.cfg serial3

This looks like an mrtgmk config file. Nagios doesn't understand these.

http://nagios.sourceforge.net/docs/2_0/config.html

--
Marc
 

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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] Error when starting nagios in debug mode.

2007-01-25 Thread Andy Shellam (Mailing Lists)
Gopinath wrote:
> Hi and happy new year everyone,
>  
> I am very new to this list & nagios. So please bare with me. I have 
> successfully installed and compiled nagios in my machine running 
> Fedora core 3. When i try to start the nagios service I encounter 
> with the following error.
>  
> Error: Unexpected token or statement in file 
> '/usr/local/nagios/etc/hosts.cfg' on line 1.
>  
> My hosts.cfg file has the default value:

Erm, the last time I looked that's not a default Nagios host file :S

>  
> 0 CFGDIR cfg
> 0 DEFHOST pc1 192.168.10.1.cfg serial0
> 0 DEFHOST pc2 192.168.10.1.cfg serial2
> 0 DEFHOST pc3 192.168.10.1.cfg serial3
>  
> I don't find any document in nagios doc page defining how to edit the 
> host.cfg file. So please help me out.

http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#host


-- 
Andy Shellam
NetServe Support Team

the Mail Network
"an alternative in a standardised world"



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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


[Nagios-users] Error when starting nagios in debug mode.

2007-01-25 Thread Gopinath

Hi and happy new year everyone,

I am very new to this list & nagios. So please bare with me. I have
successfully installed and compiled nagios in my machine running Fedora core
3. When i try to start the nagios service I encounter with the following
error.

Error: Unexpected token or statement in file
'/usr/local/nagios/etc/hosts.cfg' on line 1.

My hosts.cfg file has the default value:

0 CFGDIR cfg
0 DEFHOST pc1 192.168.10.1.cfg serial0
0 DEFHOST pc2 192.168.10.1.cfg serial2
0 DEFHOST pc3 192.168.10.1.cfg serial3

I don't find any document in nagios doc page defining how to edit the
host.cfg file. So please help me out.

Regards,
Gopinath.U
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
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