I now have a very basic installation. I'm not sure if the schema is fully 
populated in LDAP but I'm able to run the command to generate the cfg files:
/usr/local/LConf/LConfExport.pl -o /usr/local/icinga/etc/servers/ .

However, when I run a sanity check on the main config, I get an error:

[icinga@icinga etc]$ ../bin/icinga -v icinga.cfg

Icinga 1.3.0
Copyright (c) 2009-2011 Icinga Development Team (http://www.icinga.org)
Copyright (c) 2009-2011 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 02-16-2011
License: GPL

Reading configuration data...
   Read main config file okay...
Processing object config file '/usr/local/icinga/etc/objects/commands.cfg'...
Processing object config file '/usr/local/icinga/etc/objects/contacts.cfg'...
Processing object config file '/usr/local/icinga/etc/objects/timeperiods.cfg'...
Processing object config file '/usr/local/icinga/etc/objects/templates.cfg'...
Processing object config file '/usr/local/icinga/etc/objects/localhost.cfg'...
Processing object config directory '/usr/local/icinga/etc/servers'...
Processing object config file '/usr/local/icinga/etc/servers/host2.cfg'...
Processing object config file '/usr/local/icinga/etc/servers/host.cfg'...
Processing object config file '/usr/local/icinga/etc/servers/templates.cfg'...
Processing object config directory 
'/usr/local/icinga/etc/servers/servicegroups'...
Processing object config directory '/usr/local/icinga/etc/servers/hostgroups'...
Error: Invalid max_check_attempts value for host 'host2'
Error: Could not register host (config file 
'/usr/local/icinga/etc/servers/host2.cfg', starting on line 1)
   Error processing object config files!

Here is the content of /usr/local/icinga/etc/servers/host2.cfg:

define host {
        use     generic-host
        host_name       host2
        address 10.210.249.135
        alias   host2
}

define service {
        use     generic-service
        service_description     PING
        host_name       host2
        check_command   check_ping!100.0,20%!500.0,60%
}

Any suggestions?

William
                                          
------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/icinga-users

Reply via email to