Status>Monitoring, no monitoring data logged while in WAN failover
-
@luckman212
For copy paste to work, we need the raw file :)
https://gist.githubusercontent.com/luckman212/8463fb030805c738c727b5ea9008cb3c/raw/f416de80ec895205b1c222c548d331ff4d1b04a9/rrd.inc.patchAlso seems to work fine, but its only up a few minutes.
Also checking the new check reload status, but didn't have the original issue too.
-
@luckman212 said in Status>Monitoring, no monitoring data logged while in WAN failover:
@marcosm fyi I released an updated version of the patch, with the verbose debug messages stripped: https://gist.github.com/luckman212/8463fb030805c738c727b5ea9008cb3c
Thanks! The original patch has been working great for me, with no stopped graphing since I installed it.
-
@luckman212 said in Status>Monitoring, no monitoring data logged while in WAN failover:
@marcosm fyi I released an updated version of the patch, with the verbose debug messages stripped: https://gist.github.com/luckman212/8463fb030805c738c727b5ea9008cb3c
Works well with:
https://gist.githubusercontent.com/luckman212/8463fb030805c738c727b5ea9008cb3c/raw/f416de80ec895205b1c222c548d331ff4d1b04a9/rrd.inc.patchThanks again for your work!
Regards,
FireOdo -
@FireOdo This works for me, too. I saw rrd stopping after interface changes (a client's ethernet cable is disconnected, or a dynamic WAN address update). That issue appears resolved.
@luckman212 Thank you for this patch. Much appreciated!
-
@luckman212 said in Status>Monitoring, no monitoring data logged while in WAN failover:
@marcosm fyi I released an updated (V3) version of the patch, with the verbose debug messages stripped: https://gist.github.com/luckman212/33ff1715fd3a8d6cf5376e3dbc182b07
Do you think there will be a "official Netgate" patch on this matter? For me your patch is perfect, its just a question!
Thanks,
FireOdo -
@FireOdo Yes, they committed the patch yesterday (see redmine 17099) but I would stick with my most recent version for now, because it appears the version they landed also relies on some other changes that are coming in 26.10 which is not available for testing, yet.
-
@luckman212 said in Status>Monitoring, no monitoring data logged while in WAN failover:
also relies on some other changes that are coming in 26.10 which is not available for testing, yet.
Ah, OK. (those logging variable in util.inc etc.)
I stay with your patch.Edit: Today 30.09.26 your patch has passed a ultimate test: the electricity was cut here (electroworks in the house) the UPS delivered for a while power and after that pfsense was shutdown by apcupsd in proper way. When pfsense recover everything was in perfect order! (not dyndns and snort - but that is another story).
-
@luckman212 I'm kind of hoping there will be a 26.07.1 because quite a lot of other "small niggles" have shown themselves in 26.07 and especially the initial package version of Nexus. For my large customers it's a lot of works to apply a bunch of patches and update Nexus on a large double digit number of firewalls.
Would be easier with everything in one 26.07.1 update.But I hope they'll postpone until something has been done with the check_reload_status behaviour and consequent problems if you have link flaps.
I really like your work on trying to improve its behaviour, and I hope Netgate will have a good look and find inspiration - or even use your patch - if that is the best way to modernise/improve how it works.
Right now it seems it's a "puzzle work" of scripting for possible setups and dependencies that have not been modernised or "rethought" for a decade+ -
G Gertjan referenced this topic on
-
A AGawthrope referenced this topic on
-
F FireOdo referenced this topic on
-
Just applied this - noticed my logging had stopped. It had happened before after just updating to 26.07. But just reset of data redoing the graphs had cleared it. But looking at my temps noticed they had not updated in a few days.
Applied your patch, and seems to be working again. Will keep an eye on it next few days. Thanks!
-
A artenpie referenced this topic
-
@luckman212 kudos to you, I'm very appreciative of this patch. Although I use pfsense extensively in a very large org I have one particular VM dedicated to monitoring some things that we can't see in Solarwinds - unfortunately one of those things failed, which is when I discovered that monitoring wasn't working after the last update, so I'd no history as evidence. Fixed now at least, so thanks!
-
I encountered my version of this issue today on four pfSense CE 2.9.0 firewalls, configured as two independent HA pairs at two different sites. All four stopped updating their Status → Monitoring graphs at approximately 02:11 AM on November 9.
After investigating, I discovered a common factor that may help identify another trigger for this bug.
All four firewalls have a cron job scheduled daily at 02:12 AM:12 2 * * * root /etc/rc.restart_webguiThis job restarts the WebGUI to ensure that renewed certificates are loaded.
On one affected firewall, I collected the following evidence before restarting graphing:
- Last WAN traffic RRD update: 02:11:18
- Last CPU RRD update: 02:11:20
/var/db/rrd/updaterrd.shlast modified: 02:12:01- No
updaterrd.shorlockfprocess running when checked several hours later /var/run/updaterrd.sh.pidwas absent
I also confirmed that
/etc/rc.restart_webguicallsenable_rrd_graphing().Disabling and re-enabling graphing through the WebGUI restored operation on the first HA pair.
Given the matching timestamps and the fact that all four firewalls experienced the problem, I suspect the scheduled WebGUI restart triggered the RRD collector restart/locking bug discussed here.
I haven't reproduced this on demand, but the correlation seems unusually strong. It might be worth testing whether
/etc/rc.restart_webguican trigger the same failure independently of WAN interface changes.@luckman212, I haven't applied your patch yet, but I'd be interested in whether you think this scenario is consistent with the race condition you've identified.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register LoginPrivacy Policy · Cookie Policy