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 [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]