Unable to verify config - no line number given for error
Samuel Kidman
Samuel.Kidman at panres.com
Tue Aug 23 06:34:23 CEST 2011
Hello
I am having an issue with a config change. I am not sure what I have
changed to cause this error. There is no line number given so I'm not
sure what's causing it. The error and the last config file loaded before
the error are below.
Thanks in advance.
prl at PR-PRO-CR-NAG02:~/host-config/finished-lists$ sudo
/usr/local/nagios/bin/nagios -v
/usr/local/nagios/etc/nagios-master-test.cfg
Nagios Core 3.3.1
Copyright (c) 2009-2011 Nagios Core Development Team and Community
Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 07-25-2011
License: GPL
Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Processing object config directory '/home/prl/nagios-config/common'...
Processing object config file
'/home/prl/nagios-config/common/hostgroups.cfg'...
Processing object config file
'/home/prl/nagios-config/common/commands.cfg'...
Processing object config file
'/home/prl/nagios-config/common/serviceescalations.cfg'...
Processing object config file
'/home/prl/nagios-config/common/templates.cfg'...
Processing object config file
'/home/prl/nagios-config/common/contacts.cfg'...
Processing object config file
'/home/prl/nagios-config/common/servicedependencies.cfg'...
Processing object config file
'/home/prl/nagios-config/common/timeperiods.cfg'...
Processing object config directory '/home/prl/nagios-config/master'...
Processing object config file
'/home/prl/nagios-config/master/unallocated.cfg'...
Processing object config file
'/home/prl/nagios-config/master/sites.cfg'...
Processing object config file
'/home/prl/nagios-config/master/sandy-temp.cfg'...
Processing object config file
'/home/prl/nagios-config/master/gidgee-temp.cfg'...
Processing object config file
'/home/prl/nagios-config/master/high_level_network_devices.cfg'...
Processing object config file
'/home/prl/nagios-config/master/low_level_network_devices.cfg'...
Processing object config file
'/home/prl/nagios-config/master/services.cfg'...
Processing object config file
'/home/prl/nagios-config/master/windows_servers.cfg'...
Error processing object config files!
***> The name of the main configuration file looks suspicious...
Make sure you are specifying the name of the MAIN configuration
file on
the command line and not the name of another configuration file.
The
main configuration file is typically
'/usr/local/nagios/etc/nagios.cfg'
***> 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.
Contents of windows_servers.cfg:
define host {
use generic-master-host
parents
PR-KNM-ESXSC01,PR-KNM-ESXSC02
hostgroups 100_WindowsServers,
120_ExchangeServers,100_WindowsServers_drive_c,100_WindowsServers_drive_
e
host_name PR-KNM-EXCH01-3
display_name Savannah Exchange Server
Backend
alias PR-KNM-EXCH01-3
address 192.168.30.5
__SiteList
__Site Savannah
__ShareList
__Services
__ServerName
__MapiProfile snm.test
__Interface Vmware Accelerated AMD
PCNet Adapter
}
define host {
use generic-master-host
parents
PR-KNM-ESXSC01,PR-KNM-ESXSC02
hostgroups 100_WindowsServers,
130_FileServers,100_WindowsServers_drive_c,100_WindowsServers_drive_e,10
0_WindowsServers_drive_f,100_WindowsServers_drive_g
host_name PR-KNM-FS01
display_name Savannah File Server
alias PR-KNM-FS01
address 192.168.30.6
__SiteList
__Site Savannah
__ShareList
snmhistoricaldata$,snmav$,shared,users$,profiles$
__Services
__ServerName snmdata
__MapiProfile
__Interface Vmware Accelerated AMD
PCNet Adapter
}
define host {
use generic-master-host
parents
PR-KNM-ESXSC01,PR-KNM-ESXSC02
hostgroups 100_WindowsServers,
140_MSSQLServers, 100_WindowsServers_drive_c,100_WindowsServers_drive_e
host_name PR-SNM-CR-SQL02
display_name Savannah SQL Database
Server
alias PR-SNM-CR-SQL02
address 192.168.39.16
__SiteList Savannah
Inflight::http://snm-inflight.smy.local/INX_KNM/Inflight/::ntlm::snm.tes
t::Password{01,Savannah
Intuition::http://pr-knm-sql01/INX_KNM/InTuition/::ntlm::snm.test::Passw
ord{01,Savannah
Incontrol::http://pr-knm-sql01/INX_KNM/INCONTROL/::ntlm::snm.test::Passw
ord{01
__Site Savannah
__ShareList
__Services inx hosted webservice
__ServerName
__MapiProfile
__Interface Vmware Accelerated AMD
PCNet Adapter
}
define host {
use generic-master-host
parents
PR-KNM-ESXSC01,PR-KNM-ESXSC02
hostgroups 100_WindowsServers,
140_MSSQLServers,
160_WebServers,100_WindowsServers_drive_c,100_WindowsServers_drive_e
host_name PR-KNM-SQL01
display_name Savannah SQL Database
Server
alias PR-KNM-SQL01
address 192.168.30.7
__SiteList Savannah
Inflight::http://snm-inflight.smy.local/INX_KNM/Inflight/::ntlm::snm.tes
t::Password{01,Savannah
Intuition::http://pr-knm-sql01/INX_KNM/InTuition/::ntlm::snm.test::Passw
ord{01,Savannah
Incontrol::http://pr-knm-sql01/INX_KNM/INCONTROL/::ntlm::snm.test::Passw
ord{01
__Site Savannah
__ShareList
__Services inx hosted webservice
__ServerName
__MapiProfile
__Interface Vmware Accelerated AMD
PCNet Adapter
}
define host {
use generic-master-host
parents
PR-KNM-ESXSC01,PR-KNM-ESXSC02
hostgroups 100_WindowsServers,
110_DomainControllers,100_WindowsServers_drive_c
host_name PR-KNM-DC01
display_name Savannah Domain Controller
1
alias PR-KNM-DC01
address 192.168.34.1
__SiteList
__Site Savannah
__ShareList netlogon,sysvol
__Services
__ServerName 192.168.34.1
__MapiProfile
__Interface Vmware Accelerated AMD
PCNet Adapter
}
define host {
use generic-master-host
parents
PR-KNM-ESXSC01,PR-KNM-ESXSC02
hostgroups 100_WindowsServers,
110_DomainControllers,100_WindowsServers_drive_c
host_name PR-KNM-DC02
display_name Savannah Domain Controller
1
alias PR-KNM-DC02
address 192.168.34.2
__SiteList
__Site Savannah
__ShareList netlogon,sysvol
__Services
__ServerName 192.168.34.2
__MapiProfile
__Interface Vmware Accelerated AMD
PCNet Adapter
}
define host {
use generic-master-host
parents
PR-KNM-ESXSC01,PR-KNM-ESXSC02
hostgroups 100_WindowsServers,
150_AppServers,
160_WebServers,100_WindowsServers_drive_c,100_WindowsServers_drive_e
host_name PR-KNM-NA01
display_name Savannah Application
Server 1
alias PR-KNM-NA01
address 192.168.34.3
__SiteList Savannah
Sharepoint::http://snm-intranet.smy.local/default.aspx::ntlm::snm.test::
Password{01
__Site Savannah
__ShareList
__Services
dhcpserver,sptimerv3,sptrace,bcaaa
__ServerName
__MapiProfile
__Interface Vmware Accelerated AMD
PCNet Adapter
}
define host {
use generic-master-host
parents
PR-KNM-ESXSC01,PR-KNM-ESXSC02
hostgroups
100_WindowsServers,100_WindowsServers_drive_c,100_WindowsServers_drive_e
host_name PR-KNM-MAN01
display_name Savannah Management Server
1
alias PR-KNM-MAN01
address 192.168.39.2
__SiteList
__Site Savannah
__ShareList
__Services
__ServerName
__MapiProfile
__Interface Vmware Accelerated AMD
PCNet Adapter
}
define host {
use generic-master-host
parents
PR-KNM-ESXSC01,PR-KNM-ESXSC02
hostgroups
100_WindowsServers,150_AppServers,100_WindowsServers_drive_c
host_name PR-KNM-CR-VC02
display_name Savannah Virtual Center
alias PR-KNM-CR-VC02
address 192.168.39.156
__SiteList
__Site Savannah
__ShareList
__Services
vmtools,vmware-ufad-vci,vmupgradehelper,vpxd,adam_vmwarevcmsds
__ServerName
__MapiProfile
__Interface Vmware Accelerated AMD
PCNet Adapter
}
define host {
use generic-master-host
parents
PR-PRO-ESXSC01,PR-PRO-ESXSC02
hostgroups 100_WindowsServers,
150_AppServers,100_WindowsServers_drive_c,100_WindowsServers_drive_e
host_name PR-PRO-MAN01
display_name Perth Management Server 1
alias PR-PRO-MAN01
address 192.168.20.1
__SiteList
__Site Perth
__ShareList
software,applicationinstall$
__Services
avbackup,BackupExecAgentAccelerator,BackupExecAgentBrowser,BackupExecDev
iceMediaService,BackupExecJobEngine,BackupExecRPCService
__ServerName PR-PRO-MAN01
__MapiProfile
__Interface Vmware Accelerated AMD
PCNet Adapter
}
define host {
use generic-master-host
parents
PR-PRO-ESXSC01,PR-PRO-ESXSC02
hostgroups 100_WindowsServers,
150_AppServers,
160_WebServers,100_WindowsServers_drive_c,100_WindowsServers_drive_e
host_name PR-PRO-CR-MAN03
display_name Perth Management Server 3
alias PR-PRO-CR-MAN03
address 192.168.20.23
__SiteList Desktop
Central::http://servicedesk:8080/homepage.do::ntlm::prl.test::Password{0
1,Servicedesk::http://servicedesk:8020/configurations.do::ntlm::prl.test
::Password{01
__Site Perth
__ShareList
__Services servicedesk,manageengine
desktop central - agent,desktopcentralserver
__ServerName
__MapiProfile
__Interface Vmware Accelerated AMD
PCNet Adapter
}
define host {
use generic-master-host
parents
PR-PRO-ESXSC01,PR-PRO-ESXSC02
hostgroups 100_WindowsServers,
110_DomainControllers,100_WindowsServers_drive_c
host_name PR-PRO-DC01
display_name Perth Domain Controller 1
alias PR-PRO-DC01
address 192.168.21.1
__SiteList
__Site Perth
__ShareList netlogon,sysvol
__Services
__ServerName 192.168.21.1
__MapiProfile
__Interface Vmware Accelerated AMD
PCNet Adapter
}
define host {
use generic-master-host
parents
PR-PRO-ESXSC01,PR-PRO-ESXSC02
hostgroups 100_WindowsServers,
110_DomainControllers,100_WindowsServers_drive_c
host_name PR-PRO-DC02
display_name Perth Domain Controller 1
alias PR-PRO-DC02
address 192.168.21.2
__SiteList
__Site Perth
__ShareList netlogon,sysvol
__Services
__ServerName 192.168.21.2
__MapiProfile
__Interface Vmware Accelerated AMD
PCNet Adapter
}
define host {
use generic-master-host
parents
PR-PRO-ESXSC01,PR-PRO-ESXSC02
hostgroups 100_WindowsServers,
150_AppServers,
160_WebServers,100_WindowsServers_drive_c,100_WindowsServers_drive_e
host_name PR-PRO-NA01
display_name Perth Application Server 1
alias PR-PRO-NA01
address 192.168.21.3
__SiteList Panoramic
Sharepoint::http://prlgroup.smy.local/default.aspx::ntlm::prl.test::Pass
word{01
__Site Perth
__ShareList
__Services bcaaa,blackberry server
alert,bbattachserver,blackberry controller,blackberry database
consistency service,blackberry dispatcher,blackberry mds connection
service,blackberry policy service,blackberry router,blackberry
syncserver,iisadmin,w3svc,ofcservice,mssqlserver,sqlbrowser,sqlwriter,vo
icemailproserver,sptimerv3,sptrace,smtpsvc
__ServerName
__MapiProfile
__Interface Vmware Accelerated AMD
PCNet Adapter
}
define host {
use generic-master-host
parents
PR-PRO-ESXSC01,PR-PRO-ESXSC02
hostgroups
100_WindowsServers,100_WindowsServers_drive_c
host_name PR-PRO-NA02
display_name Perth Application Server 2
alias PR-PRO-NA02
address 192.168.21.4
__SiteList
__Site Perth
__ShareList
__Services
__ServerName
__MapiProfile
__Interface Vmware Accelerated AMD
PCNet Adapter
}
define host {
use generic-master-host
parents
PR-PRO-ESXSC01,PR-PRO-ESXSC02
hostgroups 100_WindowsServers,
150_AppServers,100_WindowsServers_drive_c,100_WindowsServers_drive_e
host_name PR-PRO-CR-NA03
display_name Perth Application Server 3
alias PR-PRO-CR-NA03
address 192.168.21.5
__SiteList
__Site Perth
__ShareList
__Services activefaxservicent
__ServerName
__MapiProfile
__Interface Vmware Accelerated AMD
PCNet Adapter
}
define host {
use generic-master-host
parents
PR-PRO-ESXSC01,PR-PRO-ESXSC02
hostgroups 100_WindowsServers,
150_AppServers,100_WindowsServers_drive_c,100_WindowsServers_drive_e
host_name PR-PRO-CR-NA04
display_name Perth Application Server 4
alias PR-PRO-CR-NA04
address 192.168.21.6
__SiteList
__Site Perth
__ShareList
__Services bas-as,bas-ncc,blackberry
server alert,bbattachserver,blackberry controller,blackberry
dispatcher,blackberry mailstore service,blackberry mds connection
service,blackberry router,mssql$blackberry,sqlbrowser,sqlwriter
__ServerName
__MapiProfile
__Interface Vmware Accelerated AMD
PCNet Adapter
}
define host {
use generic-master-host
parents
PR-PRO-ESXSC01,PR-PRO-ESXSC01
hostgroups 100_WindowsServers,
140_MSSQLServers,100_WindowsServers_drive_c,100_WindowsServers_drive_e
host_name PR-PRO-CR-SQL02
display_name Perth SQL Database Server
alias PR-PRO-CR-SQL02
address 192.168.21.16
__SiteList
__Site Perth
__ShareList
__Services
__ServerName
__MapiProfile
__Interface Vmware Accelerated AMD
PCNet Adapter
}
define host {
use generic-master-host
parents
PR-PRO-ESXSC01,PR-PRO-ESXSC02
hostgroups 100_WindowsServers,
140_MSSQLServers,100_WindowsServers_drive_c,100_WindowsServers_drive_e
host_name PR-PRO-SQL01
display_name Perth SQL Database Server
alias PR-PRO-SQL01
address 192.168.22.10
__SiteList
__Site Perth
__ShareList
__Services
__ServerName
__MapiProfile
__Interface Vmware Accelerated AMD
PCNet Adapter
}
define host {
use generic-master-host
parents
PR-PRO-ESXSC01,PR-PRO-ESXSC02
hostgroups
100_WindowsServers,150_AppServers,160_WebServers,100_WindowsServers_driv
e_c
host_name PR-PRO-EXCH02-3
display_name Perth Exchange Server OWA
alias PR-PRO-EXCH02-3
address 192.168.22.12
__SiteList Outlook Web
Access::http://mail.panres.com/exchange/::basic::prl.test::Password{01,S
ecure Outlook Web
Access::http://mail.panres.com/exchange/::https-basic::prl.test::Passwor
d{01
__Site Perth
__ShareList
__Services msexchangesa,microsoft
exchange routing engine,microsoft exchange mta stacks,msexchangemgmt
__ServerName
__MapiProfile
__Interface Vmware Accelerated AMD
PCNet Adapter
}
define host {
use generic-master-host
parents
PR-PRO-ESXSC01,PR-PRO-ESXSC02
hostgroups 100_WindowsServers,
120_ExchangeServers,100_WindowsServers_drive_c,100_WindowsServers_drive_
e
host_name PR-PRO-EXCH01-3
display_name Perth Exchange Server
Backend
alias PR-PRO-EXCH01-3
address 192.168.22.8
__SiteList
__Site Perth
__ShareList
__Services
__ServerName
__MapiProfile prl.test
__Interface Vmware Accelerated AMD
PCNet Adapter
}
define host {
use generic-master-host
parents
PR-PRO-ESXSC01,PR-PRO-ESXSC02
hostgroups 100_WindowsServers,
130_FileServers,100_WindowsServers_drive_c,100_WindowsServers_drive_e,10
0_WindowsServers_drive_f,100_WindowsServers_drive_g
host_name PR-PRO-FS01
display_name Perth File Server
alias PR-PRO-FS01
address 192.168.22.9
__SiteList
__Site Perth
__ShareList
applicationdata$,profiles,users,historicaldata$,hsoft,montiesvl,prlav$,r
eserves$,safetydmc,shared
__Services
__ServerName prldata
__MapiProfile
__Interface Vmware Accelerated AMD
PCNet Adapter
}
define host {
use generic-master-host
parents
PR-PRO-ESXSC01,PR-PRO-ESXSC02
hostgroups
100_WindowsServers,150_AppServers,100_WindowsServers_drive_c
host_name PR-PRO-CR-VC02
display_name Perth Virtual Center
alias PR-PRO-CR-VC02
address 192.168.20.126
__SiteList
__Site Perth
__ShareList
__Services
vmtools,vmware-ufad-vci,vmupgradehelper,vpxd,adam_vmwarevcmsds
__ServerName
__MapiProfile
__Interface Vmware Accelerated AMD
PCNet Adapter
}
define host {
use generic-master-host
parents
PR-LNM-ESXSC01,PR-LNM-ESXSC02
hostgroups 100_WindowsServers,
140_MSSQLServers, 100_WindowsServers_drive_c,100_WindowsServers_drive_e
host_name PR-LNM-CR-SQL02
display_name Lanfranchi SQL Database
Server
alias PR-LNM-CR-SQL02
address 192.168.27.16
__SiteList Lanfranchi
Inflight::http://lnm-inflight.smy.local/inflight/::ntlm::lnm.test::Passw
ord{01
__Site Lanfranchi
__ShareList
__Services
__ServerName
__MapiProfile
__Interface Vmware Accelerated AMD
PCNet Adapter
}
define host {
use generic-master-host
parents
PR-LNM-ESXSC01,PR-LNM-ESXSC02
hostgroups 100_WindowsServers,
140_MSSQLServers,
160_WebServers,100_WindowsServers_drive_c,100_WindowsServers_drive_e
host_name PR-LNM-SQL01
display_name Lanfranchi SQL Database
Server
alias PR-LNM-SQL01
address 192.168.25.11
__SiteList Lanfranchi
Inflight::http://lnm-inflight.smy.local/inflight/::ntlm::lnm.test::Passw
ord{01
__Site Lanfranchi
__ShareList
__Services
__ServerName
__MapiProfile
__Interface Vmware Accelerated AMD
PCNet Adapter
}
define host {
use generic-master-host
parents
PR-LNM-ESXSC01,PR-LNM-ESXSC02
hostgroups 100_WindowsServers,
120_ExchangeServers,100_WindowsServers_drive_c,100_WindowsServers_drive_
e
host_name PR-LNM-EXCH01-3
display_name Lanfranchi Exchange Server
Backend
alias PR-LNM-EXCH01-3
address 192.168.25.7
__SiteList
__Site Lanfranchi
__ShareList
__Services
__ServerName
__MapiProfile lnm.test
__Interface Vmware Accelerated AMD
PCNet Adapter
}
define host {
use generic-master-host
parents
PR-LNM-ESXSC01,PR-LNM-ESXSC02
hostgroups 100_WindowsServers,
130_FileServers,100_WindowsServers_drive_c,100_WindowsServers_drive_e,10
0_WindowsServers_drive_f,100_WindowsServers_drive_g
host_name PR-LNM-FS01
display_name Lanfranchi File Server
alias PR-LNM-FS01
address 192.168.25.8
__SiteList
__Site Lanfranchi
__ShareList
shared,profiles,users,lnmav$,workshopav$
__Services
__ServerName lnmdata
__MapiProfile
__Interface Vmware Accelerated AMD
PCNet Adapter
}
define host {
use generic-master-host
parents
PR-LNM-ESXSC01,PR-LNM-ESXSC02
hostgroups 100_WindowsServers,
110_DomainControllers,100_WindowsServers_drive_c
host_name PR-LNM-DC01
display_name Lanfranchi Domain
Controller 1
alias PR-LNM-DC01
address 192.168.26.1
__SiteList
__Site Lanfranchi
__ShareList netlogon,sysvol
__Services
__ServerName 192.168.26.1
__MapiProfile
__Interface Vmware Accelerated AMD
PCNet Adapter
}
define host {
use generic-master-host
parents
PR-LNM-ESXSC01,PR-LNM-ESXSC02
hostgroups 100_WindowsServers,
110_DomainControllers,100_WindowsServers_drive_c
host_name PR-LNM-DC02
display_name Lanfranchi Domain
Controller 2
alias PR-LNM-DC02
address 192.168.26.2
__SiteList
__Site Lanfranchi
__ShareList netlogon,sysvol
__Services
__ServerName 192.168.26.2
__MapiProfile
__Interface Vmware Accelerated AMD
PCNet Adapter
}
define host {
use generic-master-host
parents
PR-LNM-ESXSC01,PR-LNM-ESXSC02
hostgroups 100_WindowsServers,
150_AppServers,
160_WebServers,100_WindowsServers_drive_c,100_WindowsServers_drive_e
host_name PR-LNM-NA01
display_name Lanfranchi Application
Server 1
alias PR-LNM-NA01
address 192.168.26.3
__SiteList Lanfranchi
Sharepoint::http://lnm-intranet.smy.local/default.aspx::ntlm::lnm.test::
Password{01
__Site Lanfranchi
__ShareList
__Services
dhcpserver,mwclicserverservice,sptimerv3,sptrace,bcaaa
__ServerName
__MapiProfile
__Interface Vmware Accelerated AMD
PCNet Adapter
}
define host {
use generic-master-host
parents
PR-LNM-ESXSC01,PR-LNM-ESXSC02
hostgroups
100_WindowsServers,100_WindowsServers_drive_c,100_WindowsServers_drive_e
host_name PR-LNM-MAN01
display_name Lanfranchi Management
Server 1
alias PR-LNM-MAN01
address 192.168.27.1
__SiteList
__Site Lanfranchi
__ShareList
__Services
__ServerName
__MapiProfile
__Interface Vmware Accelerated AMD
PCNet Adapter
}
define host {
use generic-master-host
parents
PR-LNM-ESXSC01,PR-LNM-ESXSC02
hostgroups
100_WindowsServers,150_AppServers,100_WindowsServers_drive_c
host_name PR-LNM-CR-VC02
display_name Lanfranchi Virtual Center
alias PR-LNM-CR-VC02
address 192.168.27.126
__SiteList
__Site Lanfranchi
__ShareList
__Services
vmtools,vmware-ufad-vci,vmupgradehelper,vpxd,adam_vmwarevcmsds
__ServerName
__MapiProfile
__Interface Vmware Accelerated AMD
PCNet Adapter
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20110823/e76078e3/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system,
user administration capabilities and model configuration. Take
the hassle out of deploying and managing Subversion and the
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
-------------- next part --------------
_______________________________________________
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