-
-
Notifications
You must be signed in to change notification settings - Fork 436
Description
Describe the bug
When launching Spikekill from the Cacti GUI, the incorrect value for avgnan (which is Replacement Method) is passed to the hook script if you choose either GapFill or Float. Choosing StdDev or Variance does not experience the issue.
To Reproduce
Steps to reproduce the behavior:
-
Go to Cacti's Graph tab.
-
Identify a graph upon which to run Spikekill. Click the Spikekill icon next to the graph to open the menu. Hover on Settings. Hover on Replacement Method. Chose Average.
-
Click the Spikekill icon next to the graph again. Click 'Gap Fill Range'.
-
Observe in the
log/cacti.logfile the messgage indicatingavgnanislast:
2020/07/08 18:21:18 - SPIKEKILL CactiUser:admin, File:eag-wan-rt02_traffic_in_72.rrd, Method:GapFill, OutStart:1594164011, OutEnd:1594250411, AvgNan:last -
Observe via a packet capture tool the HTTP request indicating that
avgnanislast:

Expected behavior
If the Replacement Method is set to 'Average', Spikekill should not be launched with 'Last Known Good', but rather with 'Average'.
Screenshots
Wireshark says the replacement is 'last'

The GUI says the replacement is 'average'

Desktop (please complete the following information)
n/a
Smartphone (please complete the following information)
n/a
Additional context
None