I'd point you along the lines of Munin, but that's probably overkill for you. Instead, I'd suggest generating a ssh key-pair (if you do not have one already -- have a look in ~/.ssh/
for id_*.pub
):
SSH way
You may monitor your Raspberry Pi's without typing a password every time by generating a ssh key pair and copying the public key to each of your Raspberries.
Generate SSH key
You may skip this step if you do have one already -- have a look in ~/.ssh/
for id_*.pub
.
$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/home/runejuhl/.ssh/id_rsa): <RETURN>
Enter passphrase (empty for no passphrase): <RETURN>
Enter same passphrase again: <RETURN>
Your identification has been saved in /home/runejuhl/.ssh/id_rsa.
Your public key has been saved in /home/runejuhl/.ssh/id_rsa.pub.
The key fingerprint is:
04:8c:46:96:5c:79:34:8c:88:cb:85:31:f6:98:9c:db runejuhl@libertad
The key's randomart image is:
+--[ RSA 2048]----+
| +*o*o=o |
| ooBB +.o. |
| .=+. .. |
| oo . |
| . E S |
| |
| |
| |
| |
+-----------------+
Copy public key
Next step is to copy your public ssh key to your machines. For each of your Raspberries, execute the following:
ssh-copy-id hostname
E.g.:
ssh-copy-id reflexo.petardo.dk
Run commands
With your key copied, you have the ability to log in without typing a password. This enables you to quickly run commands on your machines:
ssh raspberry-1 htop
The above runs the command htop
on raspberry-1
. htop has a nice graphical interface, displaying CPU, RAM and swap usage by default, along with a top-like list of processes. Of course htop needs to be installed...
Munin
If you need something more long-lasting, I'd suggest you have a look at Munin. It's open source, works well and has plenty of monitoring scripts. The only thing needed besides Munin is a webserver -- I'd suggest nginx. Have a look at http://munin.readthedocs.org/en/latest/example/webserver/nginx.html for a guide on how to set up nginx with Munin.
1You can execute commands via SSH. Couple this with use of SSH keys and you have a one line command run from the client + some output provided by the server. – Daniel Beck – 2013-02-24T13:39:57.510
i was looking for a nice GUI :-). or at least a set of ready scripts :-). Thaqnks anyway @DanielBeck – otmezger – 2013-02-24T15:43:51.710
Maybe http://www.panic.com/stattoo/ has a "show file contents" mode. There may also be dashboard widgets that do this.
– Daniel Beck – 2013-02-24T16:06:03.807