NagiosEnterprises / nagioscore

Nagios Core
GNU General Public License v2.0
1.57k stars 450 forks source link

[RFE] Availability Report to support excluding scheduled downtime #568

Open tjyang opened 6 years ago

tjyang commented 6 years ago

Please enhance avail.cgi to have option to not counting outage time caused by planned downtime. Following is scheduled downtime example from Availability report.

image

jomann09 commented 5 years ago

Can you try passing showscheduleddowntime=no into your URL for your availability report? I do believe this functionality already exists and may just need to be added into the selection options.

jomann09 commented 5 years ago

Nevermind the option does not do what I thought it did, but this shouldn't be too hard to create having looked at the calculations. Will keep it in the 5.0.0 milestone for now though.

tjyang commented 5 years ago

Hi @jomann09

Can you classify this issue as bug ? Since an availability report is expected have ability to exclude downtime events entered by nagios admins. Can you please move this issue to 4.5.0 milestone ?

ericloyd commented 5 years ago

Scheduled Downtime should definitely not be counted against an SLA or an availability report unless the user chooses to. In other words, it should be an option, not one or the other.

jomann09 commented 5 years ago

I'm a bit confused after looking into this what part we are talking about. By default, unless you select an ALL report you will be shown scheduled and unscheduled states for every state type possible. The only pages that do not show that data are the summary pages for something like all services. Is that the page you're talking about? If so, that would be a feature and not a bug.

nook24 commented 2 years ago

Just in case you don't want to wait for this to be implemented one day. The autoreport feature of https://github.com/it-novum/openITCOCKPIT supports this.

Meph79 commented 10 months ago

I'm a bit confused after looking into this what part we are talking about. By default, unless you select an ALL report you will be shown scheduled and unscheduled states for every state type possible. The only pages that do not show that data are the summary pages for something like all services. Is that the page you're talking about? If so, that would be a feature and not a bug.

I had the same issue now.. Think this should be classified as a bug really.. Reports -> Availability (avail.cgi).. Then i select "Servicegroup"

in the .csv file i can see that one of the Hosts had a Service_Time_Critical of 8408 seconds for example.. and this was during scheduled downtime...

See screenshot for example: image

Meph79 commented 10 months ago

To clarify a bit.. Scheduled downtime (time down) is not deducted from the Servicegroups % Time up.. That means that a host that have had a scheduled downtime and no other downtime still not get 100% uptime..

See screenshots below: downtime1_sens

Here you can see that the sceduled downtime is visible (when i select Host as report instead of Servicegroup.. but calculation is still wrong)...

downtime2

Best would be to have a checkbox like "deduct scheduled downtime from Availability calculation" or something like that here:

image

Telefoni_Extra_Services