Visual representation of CPU load? SG-1100.
-
I have an SG-1100 that sits in a small room beside my bedroom. I'd like to have some way of visually monitoring the load on it (probably %CPU) since I recently installed pfBlockerNG and just want to be sure I'm not taxing the device (yes I did the patch to fix the excessive CPU). The idea is to take a quick glance without having to log into the GUI and also to allow remote viewing.
Anyhow, I've seen a few threads here for other Netgate hardware to modify the LEDs to do something like this, but not for the SG-1100. Has anyone come up with a method? Or is there a way to utilize one of the USB ports on the front, maybe to drive an external LED?
I'd like to find a solution so that I can stick a small camera aimed at it, so that when I'm away I can check up on the load on it. Thanks for any suggestions.
-
@nguser6947 My understanding of this is that you have to install a program called LCDproc, and then attach some type of LCD display. This might also only work with server type boxes that already have LCD screens in them already, but I'm not sure.
http://lcdproc.omnipotent.net/
They don't make a mobile app yet, that would be kinda convenient.
https://www.reddit.com/r/PFSENSE/comments/9rnzu2/will_there_ever_be_a_pfsense_app_for_mobile/
In my opinion, might just be easier to login into the pfsense box and check what you are looking for... You could also setup a login user that can just view the CPU utilization.
-
@nguser6947 said in Visual representation of CPU load? SG-1100.:
I have an SG-1100 that sits in a small room beside my bedroom. I'd like to have some way of visually monitoring the load on it (probably %CPU) since I recently installed pfBlockerNG and just want to be sure I'm not taxing the device (yes I did the patch to fix the excessive CPU). The idea is to take a quick glance without having to log into the GUI and also to allow remote viewing.
Anyhow, I've seen a few threads here for other Netgate hardware to modify the LEDs to do something like this, but not for the SG-1100. Has anyone come up with a method? Or is there a way to utilize one of the USB ports on the front, maybe to drive an external LED?
I'd like to find a solution so that I can stick a small camera aimed at it, so that when I'm away I can check up on the load on it. Thanks for any suggestions.
You can’t do that with the LEDs in the SG-1100. They are fixed as far as I have read.
Seems like a unnecessarily troublesome way of monitoring it (camera and all). Why not just monitor it with SNMP and have a CPU utilization dashboard visible whereever you would look at what the camera would show?
If you are an android phone user you could even make a permanent Wireguard connection to your SG-1100 and have a SNMP widget running on your phone (would probably kill your battery though)
-
@akuma1x Can't get to it remotely, by design. But yes that would be simplest, if I felt like firing up a laptop and logging into the GUI.
-
@nguser6947 said in Visual representation of CPU load? SG-1100.:
if I felt like firing up a laptop and logging into the GUI.
Laptop, pfffft. Use your phone! But wait, can't get to it remotely. Nevermind.
-
LCD proc would be nice but expensive! There is an lcdproc package.
One of the LEDs on the 1100 is controllable. It flashes during boot and becomes solid after boot. So potentially you could run a script that did something. Like maybe flash it faster with increasing load?
Or maybe... old phone, USB OTG adapter, terminal emulater and htop.
Steve
-
@keyser I'd like to be able to glance over at it, without having any PC's logged into the GUI, and see. Sort of like a hard drive activity light, something similar to that. But appreciate the response.
-
Mmm, my limited scripting skills are failing me but you can set the status LED on the 1100 to 9 flashing speeds. Like:
[22.05-RC][root@1100.stevew.lan]/root: echo f1 > /dev/led/ok [22.05-RC][root@1100.stevew.lan]/root: echo f5 > /dev/led/ok [22.05-RC][root@1100.stevew.lan]/root: echo f9 > /dev/led/ok
So it would not be that hard to update that to reflect the load average using a script.
Steve