Cloud server stop for cost but red in UI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
marcf
Posts: 14
Joined: Mon Dec 11, 2017 7:46 am

Cloud server stop for cost but red in UI

Post 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.
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: Cloud server stop for cost but red in UI

Post 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
You do not have the required permissions to view the files attached to this post.
marcf
Posts: 14
Joined: Mon Dec 11, 2017 7:46 am

Re: Cloud server stop for cost but red in UI

Post by marcf »

Thanks for your reply, the issue is that we will lost the data related to VM if we do that.
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: Cloud server stop for cost but red in UI

Post 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
Locked