I'm thinking of pairing Grafana with it to have usable reports.

Best posts made by stacksofplates
-
RE: osTicket: Basic Ticket Report of All Tickets with Subject
-
RE: Installing LXD for LXC on Fedora 28
This one seems to make more sense since its installed from a snap like what Ubuntu does by default.
https://www.cyberciti.biz/faq/how-to-install-setup-lxd-on-fedora-linux/
-
RE: Network Vulnerability Scan with REporting
We have Nessus. Not a huge fan because it just barfs out a ton of information. For >100 systems it might be fine. When you get into thousands of systems overall it's hard to manage and find anything.
Red Hat has a nice one called Insights. It actually takes into account whether or not you use packages that have vulnerabilities and weights them accordingly. Like if OpenSSL has a vuln and you don't use SSH or HTTPS or anything related to it, it weights that differently than if multiple services were leveraging it. I sat through a demo of it but I don't know the cost.
OpenVAS does this but is slow and the UI makes me want to cry.
Rapid7 has Nexpose, but I have no clue on the cost.
Seccubus works with a few different tools. It might be something to look into.
-
RE: Manage KVM through Cockpit
@ccwtech said in Manage KVM through Cockpit:
Now the next issue... Appears as if Server 2012 R2 needs a driver to see the filesystem...
I'm guessing you need to set the qcow2 disk to IDE instead of virtio. Then in the VM install the virtio drivers and you can change it back.
-
RE: Sentio, an Android Laptop Dock
I miss what Ubuntu was trying to do back in 2013. They had it so you could just plug your phone into a dock attached to a monitor and that became your PC. It was Android on the phone and a full Ububtu desktop experience on the monitor. Didn't need any apps or any hardware other than your monitor. It was an interesting idea but never materialized for some reason.
-
RE: Linux: History
Another tip. Instead of needing to clear your history you can enable a space to hide that command. This way you can use environment variables for credentials instead of storing in files or being tracked in your history. Just enable it with
export HISTCONTROL=ignorespace
in your ~/.bashrc.
Then just add a space before the command and it's hidden from your history.
-
RE: Lots of Nextcloud issues
Sorry, kind of trolling. But if they are having this many problems with just editing files they shouldn't be able to edit the version of the file that everyone sees. You're almost to the point where you have to do some kind of approval process to have changes made. That sounds ridiculous.
-
RE: Remmina: Fedora to Fedora issue.
@bigbear said in Remmina: Fedora to Fedora issue.:
@gjacobse said in Remmina: Fedora to Fedora issue.:
@bigbear said in Remmina: Fedora to Fedora issue.:
@gjacobse said in Remmina: Fedora to Fedora issue.:
@bigbear said in Remmina: Fedora to Fedora issue.:
@gjacobse said in Remmina: Fedora to Fedora issue.:
I know this was discussed in the past, but I am not able to find the thread on it.
Windows to Fedora using RDP is fine,.. it's Fedora to Fedora using Remmina that I get the issue.
Thoughts?
Is this a Type or are you saying that you RDP from a Windows box to a remote Fedora box?
At that time, I was going from Fedora to Fedora
But you are using RDP protocol and not VNC?
Sadly I don't remember currently. And for the moment, I am mainly all Windows again due to some hardware issues. Once things getting settled - oh sometime about 2025 - I will have another go at it.
I was just reading the part where you accessed a Linux PC via RDP from your Windows box, and wanting to make sure I read that right. I am assuming you meant that you accessed a WIndows BOX for Remmina RDP from your Linux box.
No you can RDP into Linux. xRDP will either set up a full X session or use behind in ND the scenes to create a session.
-
RE: Cheap SSL vs Other SSL?
@tx1tguy said in Cheap SSL vs Other SSL?:
Holy crap.. This is awesome. Thank you so much. Only thing that suck is the 90 day reissue, but who cares! Its free!
Cloudflare has multi year free certs if you're concerned about that.
-
RE: Which Cloud Company Should Get The JEDI Contract?
Out of the big Corp names I'd have to guess Oracle. Unless they go with someone who has no expertise (being generous to Oracle here) and choose someone else like @tonyshowoff said.
-
RE: Which Cloud Company Should Get The JEDI Contract?
@tonyshowoff said in Which Cloud Company Should Get The JEDI Contract?:
Yes it starts with a choice of good companies, but soon enough they'll leave after having to deal with technically incompetent committee members who don't understand what a scope is and the only ones left will be companies absolutely incapable of doing the job.
I can't upvote this enough. This is supposed to pay $10b. I will bet dollars to donuts that whoever gets the contract will
A)
lose money andB)
have about 10 deadline extensions.And after all that, it will be slapped together and almost unusable because of the red tape and ever moving goal posts of the scope of work.
-
RE: New Ecommerce Site?
@hobbit666 said in New Ecommerce Site?:
Got a friend (well my old boss) he runs a small IT Shop.
One of his regulars has come to him asking for help about a website, both aren't very "weby" so have asked meProblem is the last website i looked at and rebuilt (about 3-4 yrs ago) i used WordPress on a generic hosting provider.
Now things have moved on i'm not sure what the "going" CMS is for Websites and Ecommerce? Is Wordpress still good with some Shopping Cart/Payment modules still ok. Or are there better "all in one" solutions that are more drag and drop design wise.
I'm happy to setup and get the basics going for them, but page creation and adding store items they will need to do, so something easy would help.
I did come across this but not sure if you would "trust" something like this?
https://www.wix.com - Seem to have a "ecommerce" plan available.Squarespace or Shopify. You're not going to be able to do it for cheaper yourself.
-
RE: What are you using to track daily tasks?
@wirestyle22 said in What are you using to track daily tasks?:
I am currently using Asana to track my day to day tasks but I'd like to find something self-hosted and open source if possible.
We currently use Microsoft Planner but I think looking at something else. Eh it's whatever.
-
Use clipboard contents with Bash
So I had a scenario where I needed to connect to a few servers on the same port. You just need to copy the server name and run this script. This is a very specific example, but this is more to show how you can use the clipboard without pasting.
As this script implies, you need
xclip
installed as well.#!/bin/bash SERVER=$(xclip -o) ssh -L 8080:$SERVER:8080 server.example.com
-
RE: Dumb question - linux dd write 0s to multiples disks at once
@scottalanmiller said in Dumb question - linux dd write 0s to multiples disks at once:
@travisdh1 said in Dumb question - linux dd write 0s to multiples disks at once:
dd if=/dev/zero of=/dev/sdb bs=4k
nohup dd if=/dev/zero of=/dev/sdb bs=4k & nohup dd if=/dev/zero of=/dev/sdc bs=4k & nohup dd if=/dev/zero of=/dev/sdd bs=4k &
Like that
And if you're set on a one-liner like before:
for i in {b..d}; do nohup dd if=/dev/zero of=/dev/sd$i bs=4k &; done
-
RE: What makes RocketChat appealing to you?
We use Mattermost at work. I can't say much for RocketChat, but I do really like Mattermost. I'm a fan of the IRC style chat apps and the ability to add them into automation and such.
-
RE: Ansible 2.4.2.0 on CentOS 7--ping module isn't working
Dont' pass
ansible_host=
in the command line. That's defined in your inventory file. You also don't need to add that in your inventory file at all since you've defined it in your/etc/hosts
file. I never add the password in the inventory. If I don't have a key on the other end I just pass-k
in the command. So you would do this:ansible -i inventory ansible-target1 -m ping -k
Also make sure every host is on a separate line in your inventory. I noticed you only did
>
instead of>>
. You could have only put one host in, but figured I'd mention it just in case. -
RE: Kubernetes (Kubespray) Issue.
@devops1 said in Kubernetes (Kubespray) Issue.:
@flaxking So, If I am behind the proxy how to solve this error? Pulling the docker image directly will knock out this error?
You need to add the systemd unit proxy settings under
/etc/systemd/system/docker.service.d/http-proxy.conf
[Service] Environment="HTTP_PROXY=http://theproxy.com" Environment="HTTPS_PROXY=http://theproxy.com" Environment="http_proxy=http://theproxy.com" Environment="https_proxy=http://theproxy.com"
-
Weather cli app
So I've been trying to get better at development and have a deeper understanding of Go. I wrote a small utility to interface with openweathermap.org's API. I had an initial setup that didn't utilize interfaces or methods but I went back and refactored it so that I could add another weather service later if I wanted to. Interfaces allow you to call methods over multiple types. The app just takes two arguments, the city and country where you want the weather.
I'll preface the code with the fact that this is most likely horrible and I'm sure a lot is done incorrectly, so feel free to tear this apart if you actually know what you're doing.
main.go
package main import ( "os" ) type Location struct { City string Country string } type Getter interface { GetWeather() } func Weather(g Getter) { g.GetWeather() } func main() { city := os.Args[1] country := os.Args[2] place := Location{} place.City = city place.Country = country Weather(place) }
openweathermap.go
package main import ( "encoding/json" "fmt" "log" "net/http" "os" ini "gopkg.in/ini.v1" ) type OpenWeather struct { Coord struct { Lon float64 `json:"lon"` Lat float64 `json:"lat"` } `json:"coord"` Weather []struct { ID int `json:"id"` Main string `json:"main"` Description string `json:"description"` Icon string `json:"icon"` } `json:"weather"` Base string `json:"base"` Main struct { Temp float64 `json:"temp"` Pressure int `json:"pressure"` Humidity int `json:"humidity"` TempMin float64 `json:"temp_min"` TempMax float64 `json:"temp_max"` } `json:"main"` Visibility int `json:"visibility"` Wind struct { Speed float64 `json:"speed"` Deg int `json:"deg"` Gust float64 `json:"gust"` } `json:"wind"` Rain struct { OneH float64 `json:"1h"` } `json:"rain"` Snow struct { OneH float64 `json:"1h"` } `json:"snow"` Clouds struct { All int `json:"all"` } `json:"clouds"` Dt int `json:"dt"` Sys struct { Type int `json:"type"` ID int `json:"id"` Message float64 `json:"message"` Country string `json:"country"` Sunrise int `json:"sunrise"` Sunset int `json:"sunset"` } `json:"sys"` ID int `json:"id"` Name string `json:"name"` Cod int `json:"cod"` } func (l Location) GetWeather() { config, err := ini.Load(".weather") if err != nil { fmt.Printf("Failed to load config file %v", err) os.Exit(1) } apiKey := config.Section("").Key("openweather").String() url := fmt.Sprintf("https://api.openweathermap.org/data/2.5/weather?q=%s,%s&units=imperial&appid=%s", l.City, l.Country, apiKey) req, err := http.NewRequest("GET", url, nil) if err != nil { log.Fatal("NewRequest: ", err) } client := http.Client{} resp, err := client.Do(req) if err != nil { log.Fatal("Do: ", err) } defer resp.Body.Close() var weather OpenWeather if err := json.NewDecoder(resp.Body).Decode(&weather); err != nil { log.Println(err) } fmt.Println("Temperature: ", weather.Main.Temp) fmt.Println("Description: ", weather.Weather[0].Description) fmt.Println("Minimum Temperature: ", weather.Main.TempMin) fmt.Println("Maximum Temperature: ", weather.Main.TempMax) fmt.Println("Wind Speed: ", weather.Wind.Speed, " MPH") }
It's looking for an ini file named
.weather
in the same directory as the application. The content should beopenweather = <your_api_key>
I only have a couple parts of the json returned, mostly because I'm lazy. I also have the imperial units hard coded because again, I'm lazy.