EyeSpyPi
-
Since I have half a dozen raspberry pi 4's running various things in my house, I wanted a way to monitor various metrics, such as temp, file system free space, free memory, etc. I decided to build a .Net Core console app that will run as a service on one of the pis, and will pull in the metrics from the other pi's on the network, and put them in a MySql database. The data will be visualized in a MVC DotNetCore web app (also running on the main pi). The goal is to only put software on the main Pi, and have it reach out to other pi's specified in a config file. The biggest hurdle so far has been getting the data from the other pi's, because: 0) Some of the data I'm retrieving lives in text files in system folders, so I didn't want to create a share. 1) I didn't want to have to put software on the other pi's to get their performance info. 2) The code would be running on a linux box which dictated that I couldn't use any of the handy Windows-specific stuff to impersonate a user on a remote box. All of those issues were solved by using SshNet (a nuget package). This package lets you connect via ssh and run commands on a remote machine. Huzzah!
".45 ACP - because shooting twice is just silly" - JSOP, 2010
-----
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-----
When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013 -
Since I have half a dozen raspberry pi 4's running various things in my house, I wanted a way to monitor various metrics, such as temp, file system free space, free memory, etc. I decided to build a .Net Core console app that will run as a service on one of the pis, and will pull in the metrics from the other pi's on the network, and put them in a MySql database. The data will be visualized in a MVC DotNetCore web app (also running on the main pi). The goal is to only put software on the main Pi, and have it reach out to other pi's specified in a config file. The biggest hurdle so far has been getting the data from the other pi's, because: 0) Some of the data I'm retrieving lives in text files in system folders, so I didn't want to create a share. 1) I didn't want to have to put software on the other pi's to get their performance info. 2) The code would be running on a linux box which dictated that I couldn't use any of the handy Windows-specific stuff to impersonate a user on a remote box. All of those issues were solved by using SshNet (a nuget package). This package lets you connect via ssh and run commands on a remote machine. Huzzah!
".45 ACP - because shooting twice is just silly" - JSOP, 2010
-----
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-----
When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013 -
Since I have half a dozen raspberry pi 4's running various things in my house, I wanted a way to monitor various metrics, such as temp, file system free space, free memory, etc. I decided to build a .Net Core console app that will run as a service on one of the pis, and will pull in the metrics from the other pi's on the network, and put them in a MySql database. The data will be visualized in a MVC DotNetCore web app (also running on the main pi). The goal is to only put software on the main Pi, and have it reach out to other pi's specified in a config file. The biggest hurdle so far has been getting the data from the other pi's, because: 0) Some of the data I'm retrieving lives in text files in system folders, so I didn't want to create a share. 1) I didn't want to have to put software on the other pi's to get their performance info. 2) The code would be running on a linux box which dictated that I couldn't use any of the handy Windows-specific stuff to impersonate a user on a remote box. All of those issues were solved by using SshNet (a nuget package). This package lets you connect via ssh and run commands on a remote machine. Huzzah!
".45 ACP - because shooting twice is just silly" - JSOP, 2010
-----
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-----
When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013Sounds interesting I'll have to check it out. Just starting to get back to do some Pi work, got a Pi 4 2GB for NAS and have plans for OpenHab later.
I'm not sure how many cookies it makes to be happy, but so far it's not 27. JaxCoder.com