Git Product home page Git Product logo

sqrl's People

Contributors

cmoussa1 avatar dlarson3 avatar dmmcquay avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

sqrl's Issues

create report struct

create a struct that contains all the information the group has thus far gather. This should call out to all the other functions people have built.

for example, it should contain the following structs:

type Ram struct {                    
    Total string `json:"total"`      
    Free  string `json:"free"`       
    Used  string `json:"used"`       
}                                    
type Swap struct {                   
    Total string `json:"total"`      
    Free  string `json:"free"`       
    Used  string `json:"used"`       
}                                    
type OS struct {                     
    Hostname string `json:"hostname"`
    Kernel   string `json:"kernel"`  
    Version  string `json:"version"` 
}                                    
type CPUInfo struct {          
    CPU   int    `json:"cpu"`  
    Cores int32  `json:"cores"`
    Speed string `json:"speed"`
    Model string `json:"model"`
}                              
type Interface struct {                     
    Name  string              `json:"name"` 
    Addrs []net.InterfaceAddr `json:"addrs"`
    Flags []string            `json:"flags"`
    Speed string              `json:"speed"`
}                                           

Log information to syslog

Investigate and write code to log the structs to syslog so that our information can be scrapped by splunk.

Gather cpu information

Gather the following information and return in human readable format:

  • Number of CPUs (Sockets)
  • Number of Cores per CPU
  • Number of Threads per Core
  • Model of CPU
  • Speed of CPU
  • Serial Number
  • Other pertinent/interesting information.

create webserver with API

Create a webserver with an API that would allow us to run the different commands hitting a specific route.

For example:

curl localhost:8080/api/v0/cpu

would cause sqrl to log the cpu info

Gather OS and RAM information

Gather the following information and return in human readable format:

  • Total RAM
  • Free RAM
  • Swap Space
  • OS Version
  • Kernel version
  • Hostname

Start implementing tests

this is more of an investigation into how go does tests. You can then teach the other members of the group

Gather network information

Gather the following information and return in human readable format:

  • interface Name
  • IP Address
  • MAC address
  • Speed (1gb/10gb/100gb)
  • Link (up/down)

Gather HDD information

Gather the following information and return in human readable format:

  • How many HDDs are Present
  • What partitions are on the system
  • Free space one each HDD or partition
  • HDD type (SSD vs. HDD)
  • Serial Numbers/Model Numbers
  • As much information about the drives as possible.

add cobri CLI support

Add commands and subcommands, as you see fit, to make the sqrld executable have commands and subcommands and print out the correct information.

You can take a look at https://s.mcquay.me/dm/psyfer as a good example of what needs to be done.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.