nagira
nagira copied to clipboard
any way to schedule/cancel downtime for host/hostgroup
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.
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.
Hi, Is this considered in future road map? seems to be good functionality and could be leverage for an automated maintenance.
+1
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