nagira icon indicating copy to clipboard operation
nagira copied to clipboard

any way to schedule/cancel downtime for host/hostgroup

Open saurabh-hirani opened this issue 9 years ago • 4 comments

Nagira is a great tool and it give pretty comprehensive information. I wanted to use it to bring a host in downtime / remove it from downtime. The docs have a method to update host status http://dmytro.github.io/nagira/doc/root/Nagira.html#update_host_status-instance_method but is it exposed via the REST API? I could not find any documentation / pointers for it.

saurabh-hirani avatar Apr 29 '15 09:04 saurabh-hirani

It's a generic method, supposed to be called by other methods. But can be called directly, just give to it full JSON, containing all attributes. However, this is not what needed to schedule downtime. There's another external command for this particular case in Nagios SCHEDULE_HOST_DOWNTIME.

So, another method needs to be added, something like:

def schedule_host_downtime params
  put_update :SCHEDULE_HOST_DOWNTIME, params
end

Not implemented yet.

dmytro avatar May 12 '15 06:05 dmytro

Hi, Is this considered in future road map? seems to be good functionality and could be leverage for an automated maintenance.

hvyas avatar Jul 13 '15 20:07 hvyas

+1

tomsommer avatar Mar 08 '16 08:03 tomsommer

Have started using icinga2 now without any changes to my plugins - whose inbuilt REST API support is pretty solid. Nagira was a great help in migrating from nagios to icinga2. @tomsommer @hvyas check out - http://docs.icinga.org/icinga2/snapshot/doc/module/icinga2/chapter/icinga2-api

saurabh-hirani avatar Mar 08 '16 08:03 saurabh-hirani