network plugin: Do not forward received notifications.
authorFlorian Forster <octo@collectd.org>
Fri, 23 Mar 2012 21:21:43 +0000 (22:21 +0100)
committerFlorian Forster <octo@collectd.org>
Fri, 23 Mar 2012 21:21:43 +0000 (22:21 +0100)
commit14edce51af9b810ac2a22d737a719a957495221a
treedd28cadd4de9c61b062c3a24b55560edd0a4b841
parent12213f8dfeee3feb3846aa658def0bb79c1211d0
network plugin: Do not forward received notifications.

The network plugin would send out all notifications it got through its
callback, even the ones it received itself and even when forwarding was
disabled.

With this patch the network plugin will only transmit notifications created
locally -- forwarding of notifications is not implemented due to missing
loop-detection. For loop-detection we would have to keep track of the last
timestamp of each notifications, and since each host/plugin/type/-instance
field may be empty, this is not as straight forward as with value lists. If
someone needs this, they will need to invest some work I'm afraid.
src/network.c