Status: Monitoring is completely broken, pfSense 2.4.5
-
That isn't likely related. Though that last line with the TypeError seems more like a lead. I don't see that on mine which are working.
-
Are there any errors in the pfSense system log when you try to access that page?
Are you logging in as admin or another user?
-
@jimp I forgot to include the console output upon trying to update the graph. Here it is, nothing interesting to my eye.
Literally nothing happens in the System > General logs when I initially open the page and then try to update the graph.
I am logged in as the base admin account.
-
Anything else I could try?
-
@scurrier said in Status: Monitoring is completely broken, pfSense 2.4.5:
Anything else I could try?
I would suggest studying up on HSTS here: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security, and then checking to see how this setting ties in with your setup. If Status Monitoring itself was broken in pfSense, there would be a ton of posts here about the issue. The fact there is not indicates your issue is very likely a local one. Perhaps it is being caused by the CA differences you mentioned? That's where I would be looking. The HSTS message will prevent certain things from loading in the browser, so that will break Status Monitoring for sure.
-
@scurrier : check System > Routing > Gateways
IS WAN really WAN (an old interface name ?) and now called WAN_DHCP ? (example) ?
What are the gateway names ?
Is monitoring activated for them ?edit :
ls -al /var/db/rrd
old, abandoned rrd files (== abandoned interface names) might exist.
-
Coming back to this issue since I am wanting to see just how unreliable my ISP has been since COVID-19 and I want to use the quality graphs to do it.
Regarding the security warning I mentioned earlier, that was just because I was accessing the web gui using a host name that I didn't put in the certificate. I tried using the IP I put in the certificate Common Name and now the browser fully accepts it:
...yet, the problem persists.
@Gertjan said in Status: Monitoring is completely broken, pfSense 2.4.5:
@scurrier : check System > Routing > Gateways
IS WAN really WAN (an old interface name ?) and now called WAN_DHCP ? (example) ?
What are the gateway names ?
Is monitoring activated for them ?edit :
ls -al /var/db/rrd
old, abandoned rrd files (== abandoned interface names) might exist.
Thanks for your post. Sorry I somehow missed it earlier. To answer your questions:
Here's the WAN gateway:
When I have the Category of the Monitoring set to Packets or Traffic, I see WAN in the Graph dropdown. When I change the Category to Quality, I see WAN_DHCP. I guess that's because some Categories deal with Gateways and others deal with Interfaces. My WAN_DHCP gateway is on the WAN interface. Seems OK to me.
Here's my RRD files.
-
Oh, snap. Looks like this bug #7656 is exactly what I'm encountering. The line numbers are different, but for me line 1142 of status_monitoring.php involving the same variables the bug discusses and they appear to be the culprit for me.
I don't know JavaScript or how to debug it in a browser, but I can fiddle with the best of 'em.
I set a breakpoint on 1141 of status_monitoring.php. This shows that
timeFormat
is undefined.
The reason
timeFormat
is undefined appears to be thatdata[0].step
is7200
...
...yettimeLookup
does not contain this value:
So... yada, yada, yada, this causes my problem?
-
@scurrier said in Status: Monitoring is completely broken, pfSense 2.4.5:
The line numbers are different
That code is very ancient.
What about hitting Ctrl-F5 to force-flush the browser cache - or even flush the cash, or use another browser to reproduce. -
@Gertjan I just confirmed that Ctrl + F5 does not solve the issue.
I've previously tried other browsers, no luck. It's a bug.
-
Were you using HTHS in the past (the browser you are using thinks so !) ? If so, the browser will recall that, and refuse new, non HSTS certificate. Which means that js files won't get loaded -> I'm reading out loud the messages from your logs - , which means functions and variables are not defined. That's what your issue is all about.
Ctrl-F5 will not wipe browser's SHTS memory. To wipe that one : go Google.
I known that IP's can be put into the SAN of a cert (some cert authorities are refusing that).
IMHO : bad practice. With upcoming IPv6 some what totally not manageable anyway.What happens when you use a 'real' certificate, one that is signed by a known CA ?
Letsencrypt gives them for free this week !Another thing to check : all pfSense files are actually updated, upgraded ?
A clean install could eliminate this question. -
I would just set pfsense to not do https, hit via just plain jane http... Clear all the hsts stuff from your browser... Do you have issues now?
Crazy shit is going to happen if your js are not loading..
this takes all your certs and exceptions and non san in your certs out of the equation... I run my own ca on pfsense and create my own certs.. But It just seems problematic to do hsts on web gui that is only accessible by me, from my own secure network.. Currently its enabled, since I didn't check the box... But if your having issues loading stuff and your seeing errors about strict-transport-security... Then take that out of the equation for "testing".
-
@johnpoz said in Status: Monitoring is completely broken, pfSense 2.4.5:
But It just seems problematic to do hsts on web gui that is only accessible by me, from my own secure network.
Very true.
But it's is a button. So it takes hits, euh ... clicks ... -
Being a security device, best practice is to enable security features like HSTS. Doesn't matter how (un)exposed the GUI is or where it can be reached from. Sure, you could use HTTP and telnet locally if you really wanted on an isolated management network, but it's better to do it as securely as possible.
-
I can't check at the moment, but I am pretty sure the HSTS warning was there because I was accessing the webgui via a new host name that was not in the certificate. I made an exception in the browser to do this. Because of that, the browser rightly rejected the HSTS header because it didn't trust the site enough to honor such a permanent policy as HSTS.
I doubt HSTS has anything to do with this and I believe I've demonstrated the smoking gun above.
-
@Gertjan @jimp oh I think maybe you guys took that wrong... I mean that in this context that its problematic to also have that variable at play... When your trying to figure out something in a gui having issues.
And your tools are just 1 long flood of hsts errors - that is problematic for troubleshooting ;)
If your not having any issues sure common security practices should be default... Should of worded that better... I meant that since its not public, there is no "concern" with turning it off for testing..
-
@johnpoz said in Status: Monitoring is completely broken, pfSense 2.4.5:
@Gertjan @jimp oh I think maybe you guys took that wrong... I mean that in this context that its problematic to also have that variable at play... When your trying to figure out something in a gui having issues.
And your tools are just 1 long flood of hsts errors - that is problematic for troubleshooting ;)
If your not having any issues sure common security practices should be default... Should of worded that better... I meant that since its not public, there is no "concern" with turning it off for testing..
I bet they knew what you meant, but they just took advantage of a rare opportunity to jack you up a little bit ... .
-
Can anyone comment on the apparent smoking gun bug I found in the loaded, running JavaScript?
-
Sure many people would - if they could actually duplicate it... Which I can not.
Tried multiple time frames from the dropdown, custom time frames.. All display just fine.
-
To remove any shadow of a doubt, I fixed my certificate so that there are no warnings given by the browser and no exception is required. Still, the same bug persists.