Question

Curl command timezone for downtime

  • 10 November 2022
  • 5 replies
  • 107 views

Badge +1
  • Steward *
  • 2 replies

Hello,

 

i created a command notification for the downtime that will send to Status Page with command curl but i need a code for the time zone.

"Incident[scheduled_for]=2022-07-07T17:035:00.007Z"

 

it doesn’t work with past time.

Have any help?

 

Best regards,

SLU


5 replies

Userlevel 4
Badge +13

👋

@SLU 

 

do you mean this?

 

[`date +%s`]

Badge +1

Hello,

 

Thank’s for the reply.

I’m not quite sure but i will try it 

Badge +1

the full command : "incident[scheduled_for]=2022-07-07T17:035:00.007Z" -d "incident[scheduled_until]=2022-07-07T17:040:00.007Z"

 

need the code for Start time and End time in the downtime

Userlevel 4
Badge +13

Have you leverage the API?

 

https://docs-api.centreon.com/api/centreon-web/#tag/Downtime/paths/~1monitoring~1hosts~1%7Bhost_id%7D~1services~1%7Bservice_id%7D~1downtimes/post

 

https://docs.centreon.com/docs/api/clapi/#downtimes

 

Userlevel 4
Badge +13

Have you leverage the API?

 

https://docs.centreon.com/docs/api/clapi/#downtimes

https://docs-api.centreon.com/api/centreon-web/#tag/Downtime/paths/~1monitoring~1hosts~1%7Bhost_id%7D~1services~1%7Bservice_id%7D~1downtimes/post

 

Reply