Hello There, Guest!  
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Making WAN speedtest-cli part of the monitoring process

#1
I just came across this program written in python to run speedtest minus Gui on Raspberry console. It will run speedtest.net and give you download and upload speed. It would be nice to have a visual reporting under Nagios to spot check internet speed. Since I am not a software developer, I am hoping someone can put together something and incorporate it into NEMS Linux. Here is how to get it from NEMS console.

sudo apt-get install python-pip (I think this is already included in NEMS)
sudo pip install speedtest-cli
sudo speedtest-cli or sudo speedtest-cli --simple

Looking forward to see this happen.
 Reply
#2
NEMS already has speedtest-cli installed since it is used in your benchmarks, so no need to install a second version.

So are you looking for Nagios alerts if your Internet speed falls out of the thresholds, or just being able to see your Internet speed on a graph in NEMS Dashboard (like Monitorix)?
Robbie Ferguson // The Bald Nerd

Did I help you out? Appreciate what I do? Please consider saying thanks:
 Reply
#3
Hi Robbie,

Yes. I am looking for Nagios Alerts. I like to see a benchmark of WAN speed every hour. If it falls off certain threshold,  I like to be notified. Do you mind telling me where do I configure this? Currently Monitorix is not working. I only have the first screen that tells me to wait for the data to be displayed. My pi has been up for more than 12 hours and I still don't see it. It was working 2 days ago when I first started experimenting with it. I ran the software update from Webmin. I wonder if getting the software update may have broke it. 

Joe.
 Reply
#4
You'll see in the forums that it's not recommended to manually run OS updates. Security patches are applied automatically, but updating other components outside NEMS can break things. Easy to just take your backup.nems, reflash, then restore.

Though if your server has only been online for 12 hours, chances are good that's not long enough for Monitorix. Ie., it can't give you a 1 day graph when 1 day has not passed. Nor can it give you a 1 week graph when it's only been up for 12 hours. Etc.

You cannot simply "add" hourly bandwidth tests -- but as a feature request, I can implement it for you and roll it out in a coming version. If there is already a checkcommand for it, I'll add it to NEMS 1.5. If not, I'll have to write the checkcommand, which means probably 1.6 at this point (we're only a couple weeks away from 1.5 release).

Thanks,
Robbie
Robbie Ferguson // The Bald Nerd

Did I help you out? Appreciate what I do? Please consider saying thanks:
 Reply
#5
Thank you for considering adding the speedtest feature in the near future. I think your Linux is perfect for small shop monitoring.
 Reply
#6
Thanks! I hope you really enjoy using NEMS Linux!!

Robbie
Robbie Ferguson // The Bald Nerd

Did I help you out? Appreciate what I do? Please consider saying thanks:
 Reply
#7
check_internet_speed has been added to NEMS 1.5
Robbie Ferguson // The Bald Nerd

Did I help you out? Appreciate what I do? Please consider saying thanks:
 Reply
#8
When will 1.5 release? I will be looking out for it.
 Reply
#9
It is about to enter Beta (this week) which Patrons can participate in. I've been aiming to have it out Q4 2018 but it might be very early Q1 2019 (ie., mid-January) before it sees public release. I'm purposefully not committing to a firm date this release as my goal is to release a very complete and well-tested system.... plus NEMS 1.5 has a LOT of porting to be done. More SBCs will be supported than with 1.4.1.
Robbie Ferguson // The Bald Nerd

Did I help you out? Appreciate what I do? Please consider saying thanks:
 Reply
 
 
Forum Jump:

Users browsing this thread: 1 Guest(s)