mstojek / nlbw2collectd

Collectd Lua plugin for exporting Nlbwmon data to collectd
11 stars 2 forks source link

Lot of timing error in logs #3

Closed darrepac closed 5 months ago

darrepac commented 9 months ago

While the date of my openWRT system is correct, I have a lot of following errors in my logs...

Wed Dec 13 17:13:15 2023 daemon.err collectd[16061]: rrdtool plugin: rrd_update_r failed: /tmp/rrd/OpenWrt/iptables-mangle-iptmon_tx/ipt_bytes-tx_*.rrd: illegal attempt to update using time 1702483995 when last update time is 1702483995 (minimum one second step)
Wed Dec 13 17:13:15 2023 daemon.err collectd[16061]: rrdtool plugin: rrd_update_r failed: /tmp/rrd/OpenWrt/iptables-mangle-iptmon_rx/ipt_bytes-rx_*.rrd: illegal attempt to update using time 1702483995 when last update time is 1702483995 (minimum one second step)
Wed Dec 13 17:13:15 2023 daemon.err collectd[16061]: rrdtool plugin: rrd_update_r failed: /tmp/rrd/OpenWrt/iptables-mangle-iptmon_tx/ipt_packets-tx_*.rrd: illegal attempt to update using time 1702483995 when last update time is 1702483995 (minimum one second step)
Wed Dec 13 17:13:15 2023 daemon.err collectd[16061]: rrdtool plugin: rrd_update_r failed: /tmp/rrd/OpenWrt/iptables-mangle-iptmon_rx/ipt_packets-rx_*.rrd: illegal attempt to update using time 1702483995 when last update time is 1702483995 (minimum one second step)
Wed Dec 13 17:13:15 2023 daemon.err collectd[16061]: rrdtool plugin: rrd_update_r failed: /tmp/rrd/OpenWrt/iptables-mangle-iptmon_rx/ipt_bytes-rx_*.rrd: illegal attempt to update using time 1702483995 when last update time is 1702483995 (minimum one second step)
Wed Dec 13 17:13:15 2023 daemon.err collectd[16061]: rrdtool plugin: rrd_update_r failed: /tmp/rrd/OpenWrt/iptables-mangle-iptmon_tx/ipt_packets-tx_*.rrd: illegal attempt to update using time 1702483995 when last update time is 1702483995 (minimum one second step)
Wed Dec 13 17:13:15 2023 daemon.err collectd[16061]: rrdtool plugin: rrd_update_r failed: /tmp/rrd/OpenWrt/iptables-mangle-iptmon_rx/ipt_packets-rx_*.rrd: illegal attempt to update using time 1702483995 when last update time is 1702483995 (minimum one second step)
Wed Dec 13 17:13:15 2023 daemon.err collectd[16061]: rrdtool plugin: rrd_update_r failed: /tmp/rrd/OpenWrt/iptables-mangle-iptmon_tx/ipt_bytes-tx_*.rrd: illegal attempt to update using time 1702483995 when last update time is 1702483995 (minimum one second step)
mstojek commented 9 months ago

This star in the log ("tx_.rrd") was put by yourself to remove sensitive data or you just copied original log? See fragment below: [...]tmp/rrd/OpenWrt/iptables-mangle-iptmon_tx/iptbytes-tx.rrd[...]

If you copied logs without modifying them I need to dig I to this. In your network hosts have just ip addresses or both, ip and host names? Who is assigning ip and host names, Openwrt device or you have separate Dns/Dhcp server that does this?

mstojek commented 9 months ago

Probably it is related to https://github.com/oofnikj/iptmon/pull/17. I will try to add fix for this tomorrow and let you know.

darrepac commented 9 months ago

This star in the log ("tx.rrd") was put by yourself to remove sensitive data or you just copied original log? See fragment below: [...]tmp/rrd/OpenWrt/iptables-mangle-iptmon_tx/ipt_bytes-tx.rrd[...]

If you copied logs without modifying them I need to dig I to this. In your network hosts have just ip addresses or both, ip and host names? Who is assigning ip and host names, Openwrt device or you have separate Dns/Dhcp server that does this?

I just copy/past the log so you can have a look ;) IP and host name are assigned by the device on which collectd is running (DHCP + static ip assigned)

mstojek commented 9 months ago

Check latest version. Let us see if the fix will also help with https://github.com/mstojek/nlbw2collectd/issues/4

darrepac commented 9 months ago

Check latest version. Let us see if the fix will also help with #4

no more problems in log but not better for #4