Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. EyeSpyPi

EyeSpyPi

Scheduled Pinned Locked Moved The Lounge
asp-netperformancecsharpdatabasemysql
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • realJSOPR Offline
    realJSOPR Offline
    realJSOP
    wrote on last edited by
    #1

    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

    J Mike HankeyM 2 Replies Last reply
    0
    • realJSOPR realJSOP

      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

      J Offline
      J Offline
      Jacquers
      wrote on last edited by
      #2

      I'll have to check that out, it sounds useful :thumbsup:

      1 Reply Last reply
      0
      • realJSOPR realJSOP

        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

        Mike HankeyM Offline
        Mike HankeyM Offline
        Mike Hankey
        wrote on last edited by
        #3

        Sounds 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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups