hello guys,
i have a problem, i don't know what happened. nagios xi is not running due to configuration error. it was running ok before i tried integrating the business process addons with nagios xi. i specifically followed the instructions in Integrating_Nagios_BPA_With_XI.pdf.
for your reference, below is the output from write config files --> check configuration files:
Error: Invalid max_check_attempts value for host 'printer'
Error: Could not register host (config file '/usr/local/nagios/etc/hosts/printer.cfg', starting on line 14)
Error processing object config files!
Nagios Core 3.2.3
Copyright (c) 2009-2010 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 10-03-2010
License: GPL
Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Processing object config directory '/usr/local/nagios/etc/static'...
Processing object config file '/usr/local/nagios/etc/static/xiobjects.cfg'...
Processing object config file '/usr/local/nagios/etc/static/xitemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/static/xitest.cfg'...
Processing object config file '/usr/local/nagios/etc/contacttemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/contactgroups.cfg'...
Processing object config file '/usr/local/nagios/etc/contacts.cfg'...
Processing object config file '/usr/local/nagios/etc/timeperiods.cfg'...
Processing object config file '/usr/local/nagios/etc/commands.cfg'...
Processing object config file '/usr/local/nagios/etc/hostgroups.cfg'...
Processing object config file '/usr/local/nagios/etc/servicegroups.cfg'...
Processing object config file '/usr/local/nagios/etc/hosttemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/servicetemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/servicedependencies.cfg'...
Processing object config file '/usr/local/nagios/etc/serviceescalations.cfg'...
Processing object config file '/usr/local/nagios/etc/hostdependencies.cfg'...
Processing object config file '/usr/local/nagios/etc/hostescalations.cfg'...
Processing object config file '/usr/local/nagios/etc/hostextinfo.cfg'...
Processing object config file '/usr/local/nagios/etc/serviceextinfo.cfg'...
Processing object config directory '/usr/local/nagios/etc/hosts'...
Processing object config file '/usr/local/nagios/etc/hosts/OpenSUSE_snmp.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/localhost.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/printer.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/nagios-snmp-mon.touchgroup.net.cfg'...
Processing object config directory '/usr/local/nagios/etc/services'...
Processing object config file '/usr/local/nagios/etc/services/OpenSUSE_snmp.cfg'...
Processing object config file '/usr/local/nagios/etc/services/localhost.cfg'...
Processing object config file '/usr/local/nagios/etc/services/nagios-snmp-mon.touchgroup.net.cfg'...
Error: Invalid max_check_attempts value for host 'printer'
Error: Could not register host (config file '/usr/local/nagios/etc/hosts/printer.cfg', starting on line 14)
Error processing object config files!
***> 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.
specs:
-centos 5.5 (final) kernel 2.6 32bit
- Nagios XI 2011R1.7
- clean install
i will highly appreciate it if you can give instructions to troubleshoot this issue. i hope this wont require me to reinstall the nagios from the ground up. thank you in advance.
rose
Monitoring Engine is NOT Running
Re: Monitoring Engine is NOT Running
This certainly won't require a re-install. Nagios just requires a valid object configuration in order to restart. It's looking like you may just need to specify a "max_check_attempts" value for the host "printer." See the following outline on troubleshooting configuration errors.
http://support.nagios.com/wiki/index.ph ... leshooting
http://support.nagios.com/wiki/index.ph ... leshooting
Re: Monitoring Engine is NOT Running
Rose,
Nagios cannot add the host 'printer' because the config contains errors. I'm not sure how you added the host 'printer', but it is definitely the issue. How to work around it is to find the host in the Core Config Manager and add the generic host template to it, and then apply config.
Nagios cannot add the host 'printer' because the config contains errors. I'm not sure how you added the host 'printer', but it is definitely the issue. How to work around it is to find the host in the Core Config Manager and add the generic host template to it, and then apply config.
Nicholas Scott
Former Nagios employee
Former Nagios employee
Re: Monitoring Engine is NOT Running
hello!
thank you so much for your help, Mr. Scott and mguthrie. you guys really are the best. thanks for bearing with me and my issues. problem solved by adding the printer template on the configuration per Mr. Scott's instructions.
rose
thank you so much for your help, Mr. Scott and mguthrie. you guys really are the best. thanks for bearing with me and my issues. problem solved by adding the printer template on the configuration per Mr. Scott's instructions.
rose