=========
Real time Downtimes
=========

Overview
--------

Object name: **RTDOWNTIME**

Show host real time downtime
---------------------------

In order to list available real time downtimes, use the **SHOW** action::
You can use the value "HOST" to display all the downtimes::

  [root@centreon ~]# ./centreon -u admin -p centreon -o RTDOWNTIME -a show -v "HOST;generic-host"
  host_name;author;actual_start_time;actual_end_time;start_time;end_time;comment_data;duration;fixed
  generic-host;admin;2017/09/28 14:21;N/A;2017/09/26 17:00;2017/09/30 19:00;'generic-comment';3600;1

Columns are the following :

================================= ===========================================================================
Column	                          Description
================================= ===========================================================================
Host_name	                      Name of the host

Author	                          Name of the author

Actual_start_time                 Actual start date in case of flexible downtime

Actual_end_time                   Actual end date in case of flexible downtime

Start_time	                      Beginning of downtime

End_time                          End of downtime

Comment_data                      Short description of the real time downtime

Duration                          Duration of Downtime

Fixed                             Downtime starts and stops at the exact start and end times

================================= ===========================================================================

Show service real time downtime
------------------------------

In order to list available real time downtimes, use the **SHOW** action::
You can use the value "SVC" to display all the downtimes::

  [root@centreon ~]# ./centreon -u admin -p centreon -o RTDOWNTIME -a show -v "SVC;generic-host|generic-service"
  host_name;service_name;service_name;author;start_time;end_time;comment_data;duration;fixed
  generic-host;generic-serviceadmin;2017/09/28 14:21;N/A;2017/09/26 17:00;2017/09/30 19:00;'generic-comment';3600;1

Columns are the following :

================================= ===========================================================================
Column	                          Description
================================= ===========================================================================
Host_name	                      Name of the host

Service_name	                  Name of the service

Author	                          Name of the author

Actual_start_time                 Actual start date in case of flexible downtime

Actual_end_time                   Actual end date in case of flexible downtime

Start_time	                      Beginning of downtime

End_time                          End of downtime

Comment_data                      Short description of the real time downtime

Duration                          Duration of Downtime

Fixed                             Downtime starts and stops at the exact start and end times

================================= ===========================================================================

Real time Downtime for : Addhost, addhostgroup, addservice, addservicegroup
-----------------------------------------------------------

If you want to associate a host, host group, service or service group to a real time downtime, use the **ADD** action::
To set the value of the start/end, use following format : YYYY/MM/DD HH:mm::

  [root@centreon ~]# ./centreon -u admin -p centreon -o RTDOWNTIME -a add -v "HOST;generic_host;start_time;end_time;fixed;duration;withservices;comment"
  [root@centreon ~]# ./centreon -u admin -p centreon -o RTDOWNTIME -a add -v "SVC;generic_host|generic_service;start_time;end_time;fixed;duration;withservices;comment"
  [root@centreon ~]# ./centreon -u admin -p centreon -o RTDOWNTIME -a add -v "HG;generic_hostgroup;start_time;end_time;fixed;duration;withservices;comment"
  [root@centreon ~]# ./centreon -u admin -p centreon -o RTDOWNTIME -a add -v "SG;generic_servicegroup;start_time;end_time;fixed;duration;withservices;comment"

The required parameters are the following :

========= ============================================
Order     Description
========= ============================================
1         Value you want to associate

2         Name of the host (Name of the service)

3         Beginning of downtime

4         End of downtime

5         Downtime starts and stops at the exact start and end times (0/1)

6         Duration of Downtime

7         Associate services (0/1)

8         Short description of the real time downtime

========= ============================================

Add instance real time downtime
------------------------------

In order to add a new real time downtime for a poller, use the **ADD** action::
To set the value of the start/end, use following format : YYYY/MM/DD HH:mm::

  [root@centreon ~]# ./centreon -u admin -p centreon -o RTDOWNTIME -a add -v "HOST;generic_poller;start_time;end_time;fixed;duration;withservices;comment"

The required parameters are the following :

========= ============================================
Order     Description
========= ============================================
1         Value you want to associate

2         Name of the poller

3         Beginning of downtime

4         End of downtime

5         Downtime starts and stops at the exact start and end times (0/1)

6         Duration of Downtime

7         Associate services (0/1)

8         Short description of the real time downtime

========= ============================================
