@marce,
ich meine genau das, was du aufgelistet hast.
Allerdings bietet die von dir verlinkte Seite keine Lösung dafür.
Die host dependency ist ja zum erstellen von Abhängigkeiten zwischen hosts zuständig.
Aber die hosts hängen ja von keinem weiteren host ab.
Ob der host geprüft wird, hängt ja nur von seinem eigenen Status ab.
Und wenn ich den host sowohl bei dependent_host_name als auch bei host_name eintrage, passier das:
Code:
nagios -v /etc/nagios/nagios.cfg
Nagios Core 3.4.4
Copyright (c) 2009-2011 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 01-12-2013
License: GPL
Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Processing object config directory '/etc/nagios/objects'...
Processing object config file '/etc/nagios/objects/timeperiods.cfg'...
Processing object config file '/etc/nagios/objects/workstations.cfg'...
Processing object config file '/etc/nagios/objects/contacts.cfg'...
Processing object config file '/etc/nagios/objects/commands.cfg'...
Processing object config file '/etc/nagios/objects/templates.cfg'...
Processing object config file '/etc/nagios/objects/localhost.cfg'...
Processing object config file '/etc/nagios/objects/switch.cfg'...
Processing object config file '/etc/nagios/objects/printer.cfg'...
Processing object config file '/etc/nagios/objects/windows.cfg'...
Read object config files okay...
Running pre-flight check on configuration data...
Checking services...
Checked 20 services.
Checking hosts...
Warning: Host 'barrechner' has no services associated with it!
Warning: Host 'gerd' has no services associated with it!
Warning: Host 'paul' has no services associated with it!
Warning: Host 'thomas' has no services associated with it!
Checked 8 hosts.
Checking host groups...
Checked 5 host groups.
Checking service groups...
Checked 0 service groups.
Checking contacts...
Checked 1 contacts.
Checking contact groups...
Checked 1 contact groups.
Checking service escalations...
Checked 0 service escalations.
Checking service dependencies...
Checked 0 service dependencies.
Checking host escalations...
Checked 0 host escalations.
Checking host dependencies...
Error: Host dependency definition for host 'gerd' is circular (it depends on itself)!
Error: Host dependency definition for host 'gerd' is circular (it depends on itself)!
Error: Host dependency definition for host 'paul' is circular (it depends on itself)!
Error: Host dependency definition for host 'paul' is circular (it depends on itself)!
Checked 4 host dependencies.
Checking commands...
Checked 24 commands.
Checking time periods...
Checked 5 time periods.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 4
Total Errors: 4
***> One or more problems was encountered while running the pre-flight check...
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.
MfG
Schard
Lesezeichen