FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 08-03-2008, 08:52 AM
Murat Ugur EMINOGLU
 
Default Nagios 3 Problem

Dear All,

I have installed, but i have a problem. Nagios does not start.

error is below,

proxy:/etc/nagios3/conf.d# nagios3 -v ../nagios.cfg

Nagios 3.0.3
Copyright (c) 1999-2008 Ethan Galstad (http://www.nagios.org)
Last Modified: 06-25-2008
License: GPL

Reading configuration data...

Warning: Duplicate definition found for host 'murat' (config file
'/etc/nagios3/conf.d/switch.cfg', starting on line 24)
Error: Could not add object property in file
'/etc/nagios3/conf.d/switch.cfg' on line 26.


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


switch.cfg file

define host{
use generic-switch ; Inherit default
values from a template
host_name murat ; The name we're giving to this
switch
alias Allied Telesis Switch ; A longer name
associated with the switch

address 192.168.5.2 ; IP address of the switch
hostgroups switches ; Host groups this
switch is associated with

}

define hostgroup{
hostgroup_name switches ; The name of the hostgroup
alias Network Switches ; Long name of the group
}


thanks, regards.

--
#!/bin/bash
------------------------
Murat Ugur EMINOGLU
------------------------
www.fedoraturkiye.com
www.murat.ws
liste[at]fedoraturkiye.com
------------------------


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 

Thread Tools




All times are GMT. The time now is 03:11 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org