d'abord merci
quand j'ai modifier mon fichier /etc/nagios/timeperiods.cfg
define timeperiod{
timeperiod_name service_open
alias Heures de service
monday 07:00-22:00
tuesday 07:00-22:00
wednesday 07:00-22:00
thursday 07:00-22:00
friday 07:00-22:00
saturday 07:00-22:00
}
voila le résultat
Nagios 2.9
Copyright (c) 1999-2007 Ethan Galstad (
http://www.nagios.org)
Last Modified: 04-10-2007
License: GPL
Reading configuration data...
Running pre-flight check on configuration data...
Checking services...
Error: Check period '24×7' specified for service 'ping' on host 'hp' is not defined anywhere!
Error: Notification period '24×7' specified for service 'ping' on host 'hp' is not defined anywhere!
Checked 1 services.
Checking hosts...
Error: Check period '24×7' specified for host 'hp' is not defined anywhere!
Error: Notification period '24×7' specified for host 'hp' is not defined anywhere!
Checked 1 hosts.
Checking host groups...
Checked 1 host groups.
Checking service groups...
Checked 0 service groups.
Checking contacts...
Error: Service notification period '24×7' specified for contact 'admin' is not defined anywhere!
Error: Host notification period '24×7' specified for contact 'admin' is not defined anywhere!
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...
Checked 0 host dependencies.
Checking commands...
Checked 22 commands.
Checking time periods...
Checked 1 time periods.
Checking extended host info definitions...
Checked 0 extended host info definitions.
Checking extended service info definitions...
Checked 0 extended service info definitions.
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: 0
Total Errors: 6
***> 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.