Page 1 of 1
Cloud server stop for cost but red in UI
Posted: Wed May 19, 2021 3:09 am
by marcf
Hello,
As we are on the cloud, we now stopped some servers during the night for cost saving reason and we would like to know if there is a way to avoid having those servers shown in red during those period in the nagios XI UI ?
Thanks in advance.
Re: Cloud server stop for cost but red in UI
Posted: Wed May 19, 2021 11:06 am
by gsmith
Hi,
Currently there is no way to limit the monitoring hours through the gui or via
config files. Thanks for the product suggestion. I’ve submitted a feature request on your
behalf. Please keep in mind that the decision to implement an enhancement is at
the discretion of our development team.
If you'd like to put something together yourself take a look at the API. The docs can
be found in the upper left hand menu:
Image10.jpg
You could write a script to delete hosts via the API, and another script to create hosts via
API, and then cron them. I haven't tried this so there may be some "gotchas" involved.
Thanks
Re: Cloud server stop for cost but red in UI
Posted: Thu Jun 03, 2021 2:22 am
by marcf
Thanks for your reply, the issue is that we will lost the data related to VM if we do that.
Re: Cloud server stop for cost but red in UI
Posted: Thu Jun 03, 2021 10:42 am
by gsmith
Hi,
Good point, yes you would lose the history.
There is no way to "hide" these servers.
We do have a way of scheduling downtime and recurring
downtime, but the server would still indicate as RED as this
functionality only applies to notifications.
Anything else you need help with?
Thanks