9
votes
How do I monitor the temperature ever 3 seconds without entering new commands?
I think using watch command is much easier, for example:
watch {your command}
In your case, it will be:
watch vcgencmd measure_temp
That will refresh by 2 seconds, if you want to define the ...
5
votes
Detect Power Loss in AC outlet
Here is a simple one...
Why not set up two pi's, one on the circuit that has power and have it send a heartbeat, then another that is on a UPS circuit, when the heartbeat stops, the power is gone...
4
votes
spy urls on rpi hotspot
There are several considerations here. The straightforward way is to log what the DNS forwarding (you've probably enabled) in your pi does. Typically, this will be a service such as dnsmasq, depending ...
3
votes
Using Raspberry Pi as a Wi-Fi Scanner/Analyser
Yes it's possible, a great tutorial is Wi-Fi on the Command Line, but make sure to use an 8dBi, or greater, omni-direcional/uni-directional antenna with your Wi-Fi card. Feel free to ask further ...
3
votes
Monitor a log file in real time, and do something. How?
Try using the watch command. Click here for man page.
Maybe something like:
watch tail /var/log/omxlog | awk '/player_new/ { "echo hello" }'
watch runs command (in your case tail) repeatedly and ...
3
votes
Detect Power Loss in AC outlet
Take a crummy old 5V phone charger or something. Wire it to the input side an optocoupler with an appropriate resistor. Connect the output side of the optocoupler to a pair of GPIO pins (I'm more ...
3
votes
Why don't I see a CPU usage monitor in menu bar on my raspberry Pi 4? And how can I get one?
There is a CPU Usage Monitor which you can activate in the Panel.
Whether it is useful on a Pi4 is doubtful.
Right click on the Panel then the Add button and select from the list.
3
votes
How can I log all packets sent by connected devices over WiFi when using a Pi as a bridge?
The capturing is a job for tcpdump. As you have a bridge, you can capture on either side (eth0 or wlan0), but I would recommend the side where the device you want to monitor is attached.
If you have ...
3
votes
Accepted
How can I monitor LAN traffic on raspberry pi?
Probably the most popular related project with GUI is Wireshark
Wireshark is the world’s foremost and widely-used network protocol
analyzer. It lets you see what’s happening on your network at a
...
2
votes
Home energy monitor devices
The open energy monitor site you've mentioned is possibly the best place to start for background reading/research. Ideas and snippets cam be used to roll ones own setup if inclined.
This link ...
2
votes
Accepted
Using many individual Raspberry Pi's as monitoring systems in a 'business' usage setting
Regarding 'version control' / 'configuration management' - you might want to check out Puppet or something of that ilk for easier management of multiple end points.
You'd probably also want to look ...
2
votes
Raspberry Pi as a network monitoring device
I am tracking network traffic of my TPLink router using a Raspberry Pi that is running collecd.
Install collectd with sudo apt-get install collectd collectd-utils
Edit /etc/collectd/collectd.conf ...
2
votes
How to install latest munin server
This appears to be the same issue as bug #837788 in the Debian bug tracker. It appears that this is actually by design, and Munin installed without any problems from the repo on your Pi:
On Fri, 10 ...
2
votes
Monitor directory for regular file creation and alert if the stream of files stops
You are correct about ifnotify - and kudos to you for discovering it. It cannot react to the absence of an event.
What you are going to want is a script or a python program to do as you described. ...
2
votes
How to monitor network utilization on raspberry pi 3 (raspbian stretch)?
Edit the file /etc/rpimonitor/template/network.conf
a. Comment those lines you want to left out (eg "To activate network monitoring ..." by inserting a # in front of the line.
b. Comment out ...
2
votes
How to check traffic and connected devices?
You can use the ipfm command line tool, a very good tool for your requirements.
For more information, see man(8) ipfm.
Sample output:
# IPFMv0.11.5 2017/07/24 10:12:08 -- dump every 0d00:00:01 -- ...
2
votes
Detect Power Loss in AC outlet
I agree with all other answers, MAINS IS DEADLY!
With that warning aside, a viable solution would be a opto coupler/isolator.
A opto coupler separate the mains from the more sensitive GPIO pins on ...
2
votes
Accepted
How to set up a basic heartbeat monitor
https://healthchecks.io/ is a great tool for basic monitoring and alerting, and works perfectly for a heartbeat check. Simply create a check with a relatively frequent period (I went with a 30 minute ...
2
votes
How can I monitor LAN traffic on raspberry pi?
You can use tcpdump too. It may already be installed on your distro. It depends on how far you want to go into the analysis of captured packets.
2
votes
Accepted
remote sensors for soil moisture
MQTT is a little heavyweight for what @jonsken needs. For low power low bandwidth sensor networks where the data flows from sensor to computer the better solution would be to use a LoRaWAN, short for ...
1
vote
Accepted
CPU/RAM monitoring of one process
Try running the following command in a loop and see if you can get the update rate you want:
ps -p <PID> -mo %cpu %mem >> log.txt
Depending on what you mean by "memory", you may be ...
1
vote
Script for monitoring RAID status
You don't even need a script for this, you can just use the watch command.
watch cat /proc/mdstat
Options you may want to use:
-d, --differences [permanent]
Highlight the differences between ...
1
vote
munin setup cannot add client
Problem has been solved by changing the name to /etc/hosts & hostname & reboot
1
vote
Accepted
Apache Server Monitoring
Use
tail -f <file>
to output the end of, and follow new writes to, a text file.
You probably want to follow /var/log/apache/access.log (but the location may vary, check https://unix....
1
vote
How can any cellphone LCD be used as a portable monitor?
Please consider it's almost impossible to use a random screen with your rpi ...
If you are extremely lucky, you will be able to find your screen reference on this github wiki.
In other cases, you ...
1
vote
Accepted
WiFi network usage shows more than Ethernet usage
Obviously there's some local traffic between your mobile and the hotspot. mDNS would be the first suspect in my list. You can track active connections with netstat to find out what it really is.
1
vote
Accepted
Monitor output is always my touchscreen, not my computer monitor
Assuming you are using the waveshare 3.5in. TFT (or a compatible display), You can switch back to HDMI mode with the following commands:
cd LCD-show/
./LCD-hdmi
Then remove the touchscreen and ...
1
vote
Android Tablet as Pi monitor without WiFi
I have used an approach to access a personal Wiki running on the Pi from other computers that might work for what you want to do.
This approach also allows me to remote into the Pi from a tablet, ...
1
vote
Network monitoring with Raspberry Pi
If you are able to put your Raspberry Pi between the device in question and the internet router, there is basically nothing special required.
You can start with tcpdump:
sudo apt-get install tcpdump
...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
monitoring × 69raspbian × 14
networking × 9
wifi × 5
power × 4
temperature × 4
cpu × 4
pi-3 × 3
gpio × 3
python × 3
raspbian-stretch × 3
wireless × 3
software-installation × 3
remote × 3
home-automation × 3
pi-2 × 2
ssh × 2
pi-3b+ × 2
hardware × 2
sd-card × 2
hdmi × 2
power-supply × 2
ethernet × 2
sensor × 2
touchscreen × 2