Mailreport rich formatting and graphs
-
Since the deprecation of the old mailreport package with RRD support in 2018 I have been chasing after a native alerting and graphing capabilities we once had. With all the new development around PfSense Plus I figure this might be the right time to bring this up with the community.
I have created a wrapper around the existing mailreport package on github which I generically name pfMailReport. I format the largely <pre> html format command output into a table, row, or list. Really basic parsing of command and some file types essentially. In the development branch of code you'll see some other experiments for graphing both native and using third parties, and unfortunately none of these have worked out. But let's be honest, having a shell script parse command output rather than the native PHP isn't ideal, but this stop gap solution I created has been the only solution for the past 5 years.I truly believe the correct way to implement this is to integrate more formatting options and graphing back into mailreport itself. I really hope this thread sparks some discussion which validates user interests... and perhaps, just perhaps gains the attention of pf devs and this maybe makes its way into a pf Plus feature.