0
0
Raspberry Piprogramming~10 mins

Remote monitoring and management in Raspberry Pi - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to install the monitoring agent on Raspberry Pi using apt.

Raspberry Pi
sudo apt-get update && sudo apt-get install [1]
Drag options to blanks, or click blank then click option'
Ahtop
Bnginx
Cdocker
Dvim
Attempts:
3 left
💡 Hint
Common Mistakes
Installing unrelated packages like nginx or vim instead of a monitoring tool.
2fill in blank
medium

Complete the command to check the Raspberry Pi's CPU temperature.

Raspberry Pi
cat [1]
Drag options to blanks, or click blank then click option'
A/proc/meminfo
B/etc/hostname
C/var/log/syslog
D/sys/class/thermal/thermal_zone0/temp
Attempts:
3 left
💡 Hint
Common Mistakes
Using files unrelated to temperature like /proc/meminfo or /etc/hostname.
3fill in blank
hard

Fix the error in the command to start the monitoring service named 'monit'.

Raspberry Pi
sudo systemctl [1] monit
Drag options to blanks, or click blank then click option'
Aenable
Bstart
Crestartt
Dstop
Attempts:
3 left
💡 Hint
Common Mistakes
Typo in 'restartt' instead of 'restart'.
Using 'stop' instead of 'start'.
4fill in blank
hard

Fill both blanks to create a command that shows the last 10 lines of the system log and follows new entries.

Raspberry Pi
sudo tail [1] 10 [2] /var/log/syslog
Drag options to blanks, or click blank then click option'
A-n
B-f
C-r
D-q
Attempts:
3 left
💡 Hint
Common Mistakes
Using -r which reverses output order.
Using -q which suppresses headers.
5fill in blank
hard

Fill all three blanks to create a dictionary comprehension that maps sensor names to their readings if the reading is above 50.

Raspberry Pi
sensor_data = [1]: [2] for [3] in sensors if [2] > 50 }
Drag options to blanks, or click blank then click option'
Aname
Bvalue
Cname, value
Dsensor
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'name, value' as a single variable.
Using the same variable for key and loop variable.