Opened 9 years ago

Closed 9 years ago

#172 closed incident (fixed)

Nagios: updating svn geeft foutmelding

Reported by: huub Owned by:
Keywords: Cc:
Location: Generiek

Description

Ik heb svn/genesis/nodes op sunny geupdate. En de nagios configuratiefiles mbv het script yaml2nag.py.

Nagios starten geeft nu een foutmelding:

sunny# ../tools/yaml2nag.py >/usr/local/etc/nagios/objects/nodes.cfg

sunny# /usr/local/etc/rc.d/nagios restart

Performing sanity check of nagios configuration: FAILED

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 file '/usr/local/etc/nagios/objects/commands.cfg'...
Processing object config file '/usr/local/etc/nagios/objects/contacts.cfg'...
Processing object config file '/usr/local/etc/nagios/objects/timeperiods.cfg'...
Processing object config file '/usr/local/etc/nagios/objects/templates.cfg'...
Processing object config file '/usr/local/etc/nagios/objects/localhost.cfg'...
Processing object config file '/usr/local/etc/nagios/objects/nodes.cfg'...
Processing object config file '/usr/local/etc/nagios/objects/proxies.cfg'...
Processing object config file '/usr/local/etc/nagios/objects/nanostations.cfg'...
Error: Could not find any host matching 'Rick' (config file '/usr/local/etc/nagios/objects/localhost.cfg', starting on line 390)
Error: Could not expand hostgroups and/or hosts specified in service (config file '/usr/local/etc/nagios/objects/localhost.cfg', starting on line 390)

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

Change History (2)

comment:1 Changed 9 years ago by huub

Ik heb de laatste regels in localhost.cfg uitgecomment, zodat nagios update iig werkt:

#define service{
# use srv-pnp ; Name of service

# host_name Rick

# service_description WL Version

# check_command check_wl_version

# notifications_enabled 1

# }

comment:2 Changed 9 years ago by huub

Resolution: fixed
Status: newclosed

gefixed door Rick

Note: See TracTickets for help on using tickets.