Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

any way to schedule/cancel downtime for host/hostgroup #32

Open
saurabh-hirani opened this issue Apr 29, 2015 · 4 comments
Open

any way to schedule/cancel downtime for host/hostgroup #32

saurabh-hirani opened this issue Apr 29, 2015 · 4 comments

Comments

@saurabh-hirani
Copy link

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.

@dmytro
Copy link
Owner

dmytro commented May 12, 2015

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.

@hvyas
Copy link

hvyas commented Jul 13, 2015

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

@tomsommer
Copy link

+1

@saurabh-hirani
Copy link
Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants