What I need is some (tiny as possible) C code that gives me the following:
1 - Is the firewall booted and secure (e.g. is pf active)
2 - The status of the 3 NICs (dc1, dc1, dc2: link up/down)
3 - Is traffic flowing from-to these 3 NICs (it has a triangular with the 3 NICs at each egde and '<<' '>>' LEDs displaying traffic flowing from one to another NIC)
4 - For the higher models: What is the CPU load (will be displayed with a bar of 8 LEDs)
5 - Also for these higher models: What is the Network Traffic load (also 8 LEDs)
6 Not really for m0n0wall, is the box running in some kind of safemode.
1 and 2 are the most important basics.
3 might be a bit more difficult because I understood you need to do some calculations to figure out in what direction traffic flows.
4 and 5 are 'nice to haves' for those who have the most expensive boxes.
6 is just because the box originally had a factory default / safe mode (with a LED for that).