Skip to content

riemann-net: Initial packet drop not reported as warning #179

@sslavic

Description

@sslavic

Issue

What's the issue...?
If there are packets dropped on boot, riemann-net will measure dropped packets count as initial value, but since there's no old/previous value, warning will not be reported.

I believe https://github.com/riemann/riemann-tools/blob/master/bin/riemann-net#L77
should be replaced with something like

    if not @old_state.has_key?(service)
      @old_state[service] = 0
    end

What's your riemann-tools version?

0.2.6 but same logic is on trunk

What platform are you on?

Ubuntu 14.04.5 LTS (GNU/Linux 4.4.0-66-generic x86_64)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions