Here is the command I executed to create downtime:
Code: Select all
curl -XPOST "https://nagiosxi.company.com/nagiosxi/api/v1/system/scheduleddowntime?apikey=<API KEY>&pretty=1" -d "comment=Test downtime creation&start=1575501600000&end=1575501900000&hostgroups[]=STG-Servers"
{
"success": "Schedule downtime command(s) sent successfully.",
"scheduled": {
"hostgroups": {
"STG-Servers": [
"HOSTS",
"SERVICES"
]
}
}
}For some reason, it is taking very strange timeframe.
Please suggest if am doing something wrong here.
Thank You.