zorkian / nagios-api

A REST-like, JSON interface to Nagios
BSD 3-Clause "New" or "Revised" License
586 stars 173 forks source link

Update duration guard for flex downtime & remove for fixed #92

Closed lollipopman closed 6 years ago

lollipopman commented 6 years ago

The duration argument is ignored for fixed downtimes, so set it to 0. For flexible downtimes ensure the duration value is within the limits of a C unsigned long as that is how it is defined in Nagios' downtime.h:

unsigned long duration;

This allows you to create fixed downtimes with durations longer than 7 days.

zorkian commented 6 years ago

Nice, thank you!

Also in completely random happenstance @b1naryth1ef happened to walk up to my desk while I was looking at this and say "wait a second, I know that guy!" He says hi.