Parser for incoming webhook from Ntopng


#1

Hi,

anyone who knows how to parse incoming webhook from Ntopng or already use a script?

I cant get it to work

I recieve this in my Rocket Chat log:

{ alerts:     [ { severity: 'error',        alert_key: 'min_active_local_hosts',        entity_value: 'iface_6',        tstamp: 1551793980,        action: 'release',        message: 'Minute <b>local hosts</b> crossed by interface <a href=\'/lua/if_stats.lua?ifid=6\'>ens192</a> [84 > 7]',        type: 'threshold_cross',        ifid: 6,        entity_type: 'interface' } ],   sharedsecret: 'u9ue6oFdD5uQwvnZx/FKGZaMJDD2cDBjvod9txxxxxxxxxxxxxxxxxxx',   version: '0.1' }

regards