cacti icon indicating copy to clipboard operation
cacti copied to clipboard

Add support for Business Hours

Open thurban opened this issue 3 years ago • 6 comments

Feature Request

Is your feature request related to a problem? Please describe

Displaying Business Hours on the graph helps identifying issues during these and ignore known spikes out of office hours.

Describe the solution you'd like

Include business hours to be displayed as an AREA within the charts

Describe alternatives you've considered

There are non

Additional context

See attached early alpha for showing business hours, realized as a plugin BusinesHours_demo_plugin_1 BusinesHours_demo_plugin_2

thurban avatar Jul 23 '22 17:07 thurban

Is this something you are working on @thurban ? Or just something you'd like us to add?

netniV avatar Jul 25 '22 16:07 netniV

Hi. Im working on it. Got some basic version already working.

I probably add some basic functionality for future versions and a plugin for complete version 1.x compatibility.

thurban avatar Jul 25 '22 16:07 thurban

Sounds good, I have places I can test it out if you need.

netniV avatar Jul 26 '22 14:07 netniV

Yea, glad to have you on board Thomas. I would like to assign this ticket to you. What do you think @netniV?

TheWitness avatar Jul 26 '22 14:07 TheWitness

I'm going to review the code and may change it. Although it is working, it will create quite large rrdtool command line, so going to optimize that.

Maybe some special generic cdefs like from this post will make it essier: https://forums.cacti.net/viewtopic.php?t=30839

thurban avatar Jul 26 '22 21:07 thurban

I added a limit to display the business hours for a maximum number of days. Otherwise the rrdtool command line size may be getting too large (i.e. for year graphs)

thurban avatar Jul 27 '22 08:07 thurban