Skip to content

Spikekill does not receive correct avgnan value when launching from GUI #3673

@riversdev0

Description

@riversdev0

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:

  1. Go to Cacti's Graph tab.

  2. 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.

  3. Click the Spikekill icon next to the graph again. Click 'Gap Fill Range'.

  4. Observe in the log/cacti.log file the messgage indicating avgnan is last:
    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

  5. Observe via a packet capture tool the HTTP request indicating that avgnan is last:
    image

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'
image

The GUI says the replacement is 'average'
image

Desktop (please complete the following information)

n/a

Smartphone (please complete the following information)

n/a

Additional context

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUndesired behaviourresolvedA fixed issue

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions