Leanpub Header

Skip to main content

PiMetric: Monitoring using a Raspberry Pi

PiMetric is a Software system which provides the opportunity to use a Raspberry Pi to measure 'things', record them and to see them on a web page. The software is still in early development nonetheless, it's still usable. Learn some programming and software communication mechanisms.

The author is letting you choose the price you pay for this book!

Pick Your Price...
PDF
EPUB
WEB
372
Readers
130
Pages
About

About

About the Book

If you've heard about the Raspberry Pi you may know that it provides a fantastic method to learn about using a computer and to develop some skills that go beyond the basics. 

What sort of things will we learn?

Good question! 

  • A bit about the Raspberry Pi
  • A bit about the software language Python
  • A bit about Linux and measuring 'stuff'

Is this book for you?

It's not written for experts. It's put together as a guide to get you started if you're unsure about how to make the first move with a Raspberry Pi.

If you like you can get straight to the code here on GitHub.

Why has the book been written?

Because writing things down is a great way to remember them.

Writing about how to do cool stuff with computers means that we're accumulating ways to help ourselves out when the going gets tricky. Making a book out of the information is a no-brainer since that way more people benefit from the process.

Enjoy.

So I hope you get something out of the book, please excuse the sometimes light-hearted conversational manner in which I approach the topic and enjoy the Raspberry Pi!

Price

Pick Your Price...

Minimum price

Free!

$0.99

You pay

$0.00

Author earns

$0.00
$

All prices are in US $. You can pay in US $ or in your local currency when you check out.

EU customers: prices exclude VAT, which is added during checkout.

...Or Buy With Credits!

Number of credits (Minimum 0)

0
The author will earn $0.00 from your purchase!
You can get credits monthly with a Reader Membership

Author

About the Author

Malcolm Maclean

I have a passion for knowledge and I realise that part of the responsibility of gathering knowledge is being able to advance the state of the human condition in some way.

My aims in writing these books are to play with software, achieve personal goals and try something new for fun. It also helps that I think Open Source, technology, the visual representation of data and information rock in serious ways.

The books that I write are a mechanism to support my own learning, so the way I explain things is focused on trying to impart understanding in a simple but functional way.

I'm totally in awe of the Open Source community that has made this type of work possible. If you feel that you would like to support continued development of this content, feel free to donate when you download.

If you're looking for a hard copy version of any of these publications, they will be available through Amazon (not all will be available sorry).

Contents

Table of Contents

Introduction

  1. Welcome!
  2. What are we trying to do?
  3. Whare are we not going to be doing?
  4. Who is this book for?
  5. What will we need?
  6. Why on earth did I write this rambling tome?
  7. Where can you get more information?

PiMetric

  1. What’s this all about then?
  2. How is this different from Nagios / Icinga / Prometheus?
  3. Overview
  4. Installation
  5. Structure
  6. Measurement
  7. Management
  8. Operating

The History of the Raspberry Pi

Raspberry Pi Versions

  1. Raspberry Pi B+, B2, B3 and B3+
  2. USB Ports
  3. Video Out
  4. Ethernet Network Connection
  5. USB Power Input Jack
  6. MicroSD Flash Memory Card Slot
  7. Stereo and Composite Video Output
  8. 40 Pin Header
  9. Raspberry Pi Zero
  10. USB Port
  11. Video Out
  12. USB Power Input Jack
  13. MicroSD Flash Memory Card Slot
  14. MIPI Camera Interface
  15. Stereo and Composite Video Output
  16. 40 Pin Header

Raspberry Pi Peripherals

  1. SD Card
  2. Keyboard / Mouse
  3. Video
  4. Network
  5. Power supply
  6. Cases

Operating Systems

  1. Welcome to Raspbian
  2. Downloading
  3. Writing the Operating System image to the SD Card
  4. Enabling Secure Shell Access

Network connectivity

How are we going to access PiMetric?

  1. Setting up a client for remote access
  2. Remote access via SSH
  3. Setting up the Server (Raspberry Pi)
  4. Setting up the Client (Windows)
  5. WinSCP
  6. Wired Connection
  7. Connected with a keyboard and monitor (cheating)
  8. Headless (kudos)
  9. Connecting to the Pi Remotely.
  10. Wireless connection
  11. Headless (full kudos+)
  12. Finalize basic setup
  13. Connecting to the Pi Remotely.

PiMetric Installation

  1. Starting point
  2. Carry out the installation
  3. We’re done

Operation

  1. Measurement
  2. Management
  3. Create
  4. Read
  5. Edit
  6. Fields
  7. Delete
  8. Duplicate
  9. Operating
  10. Operating Environment
  11. Tree Hierarchy
  12. Limits
  13. Acknowledged
  14. General Graphing
  15. View Metric
  16. Graphs
  17. Multi Graphs

Configuration

  1. SNMP

How to…

  1. Set-up SNMP on a Raspberry Pi to monitor it

Linux Concepts

  1. What is Linux?
  2. Linux Directory Structure
  3. /
  4. /bin
  5. /boot
  6. /dev
  7. /etc
  8. /etc/cron.d
  9. /etc/rc?.d
  10. /home
  11. /lib
  12. /lost+found
  13. /media
  14. /mnt
  15. /opt
  16. /proc
  17. /root
  18. /sbin
  19. /srv
  20. /tmp
  21. /usr
  22. /usr/bin
  23. /usr/lib
  24. /usr/local
  25. /usr/sbin
  26. /var
  27. /var/lib
  28. /var/log
  29. /var/spool
  30. /var/tmp
  31. Everything is a file in Linux
  32. Traditional Files
  33. Directories
  34. System Information
  35. Devices

File Editing

  1. The nano Editor

Linux Commands

  1. Executing Commands in Linux
  2. The Commands
  3. Options
  4. Arguments
  5. Putting it all together
  6. apt-get
  7. The apt-get command
  8. apt-get update
  9. apt-get upgrade
  10. apt-get install
  11. apt-get remove
  12. cd
  13. The cd command
  14. Options
  15. Arguments
  16. Examples
  17. Test yourself
  18. chmod
  19. The chmod command
  20. Options
  21. Arguments
  22. Examples
  23. chown
  24. The chown command
  25. Options
  26. Arguments
  27. Examples
  28. Test yourself
  29. crontab
  30. The crontab command
  31. Options
  32. Examples
  33. Test yourself
  34. ls
  35. What’s the information in the long list format?
  36. The ls command
  37. Options
  38. Arguments
  39. Examples
  40. ping
  41. The ping command
  42. Options
  43. Test yourself
  44. sudo
  45. The sudo command
  46. The ‘sudoers’ file
  47. sudo vs su
  48. Test yourself

Directory Structure Cheat Sheet

Static IP Address

  1. The Netmask
  2. CIDR Notation
  3. Distinguish Dynamic from Static
  4. Default Gateway
  5. Lets edit the dhcpcd.conf file

Get the free sample chapters

Click the buttons to get the free sample in PDF or EPUB, or read the sample online here

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $14 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub