Raspberry Pi et Arch Linux – Monitor the system with Raspcontrol

Monitor what the system, that connects, memory available etc. As many small information that can help or inform them of what is happening on our system.

monitoring

Here we will install Raspcontrol and either use the built-in web server or use the installed Nginx Web server here.

  1. Download the latest version of Raspcontrol
    wget https://github.com/Bioshox/Raspcontrol/zipball/master o raspcontrol.zip
  2. Unzip the archive
    unzip raspcontrol.zip
  3. Move the directory extracted in /var/www and rename to the passage
    MV Bioshox-Raspcontrol - 694435b/var/www/raspcontrol
  4. Change the Directory rights
    chown-r http:http raspcontrol
  5. Create directory for the configuration file
    mkdir/etc/raspcontrol
  6. Create the file /etc/raspcontrol/database.aptmnt with the following content. You can replace Guest/guest by what you want
    {
    
    "user":"Guest",
    
    "password":"Guest"
    
    }

At this stage, you have two possibilities :

  • Use the web server provided : Edit the file /var/www/raspcontrol/start.sh selecting the listening port and then run the script (the default port is the 80). Connect to use the user defined in the step 6.
  • Integrate Raspcontrol with Nginx we installed here : access is simply to address http://<IP-raspberry>/raspcontrol. Before you may have to modify the variable open_basedir in the file /etc/php.ini by adding the directory /etc/raspcontrol. at the end of the list.

This is for monitoring fast and easy !

You may also like...

  • Hello,

    already thanks for your work which helped me a lot.

    I have a little trouble when I want to change the rights of the raspcontrol folder in/var/www

    the command “chown-r http:http raspcontrol” tells me that the user does not exist, How to make ?

    Thank you!

    • With google chrome, When I load http://ipraspberry or http://ipraspberry/raspcontrol, It downloads me a 1 KB file that is named “Download” What I absolutely do not understand.

      Internet explorer does not. It displays an error 403

      Je te remercie d’avance 😉

      • It comes from your rights on the directory/var/www problem. Solve it will be starting this error 403

    • Hello,
      You are well under ArchLinux ? Because normally it is a user/group that exists by default in the distribution.
      You can use a different user but in this case we must also change the Nginx configuration so it uses the new user instead of ' http’ (1era /etc/nginx/nginx.conf line seems to me)

      • I am running Raspbian, I was see what user nginx used: www - data

        ducoup I did a sudo chown-r www - data:www-data /var/www

        but still the same problem!

        I turn round since yesterday, I can't determine where it just!

        My install is fresh, Raspbian of origin, I updated the packages with the firmware and install nginx and rascontrol!

        Si tu as d’autres hypothèse je suis preneur 🙂

  • I edit the file/etc/nginx/sites-available/default

    to add the lines:

    fastcgi_pass unix:/var/run/PHP5-fpm.sock;

    because I saw that errors 403 could be caused by this line.

    Ducoup I still have an error 403 at the root of my/var/www directory

    but now, an error 502 bad gateway on http://monraspberry/raspcontrol

    I'm still looking ..

  • Here is my problem is solved

    I looked in the log of nginx to see errors, the line:

    “fastcgi_pass unix:/var/run/PHP5-fpm.sock;”

    had an error, they had a “s” in sock! donc tout est rentrer dans l’ordre en enlevant juste une lettre 🙂

    Thank you! I still follow your so informative blog

    • Good news for the resolution ! 🙂 C’est vrai que la gestion des wrappers pour le CGI ou PHP sont assez délicats je trouve. I blocked for some soft because it.

      A bientôt 😉

  • Jackberry

    Hi to you. Following some concerns I wanted to start at zero with my raspberry.

    I redid a SD card with the last image of Raspbian, all updated, and in French.

    I have reinstall nginx by following your tutorial, It works. (I did not test the page in php at this time)

    then, installation of raspcontrol. error 404. same with Owncloud.

    Yet I have followed everything correctly. could you give me a list of things to check ?

    • Hello,
      Nginx points to the right directory ? Did you test a basic HTML page and a basic PHP (with just phpinfo) ?
      One 404 This is a page not found so it smells like the small configuration error in the sitemap file (/etc/nginx/sites-enabled/default or one that you created)

  • Jackberry

    I check my file “default”

    server {

    listen 80;

    server_name localhost;

    root /var/www;

    index index.html index.htm index.php;

    location / {

    root/var/www;

    index index.php index.html index.htm;

    }

    location ~ .php$ {

    try_files $uri = 404;

    fastcgi_pass unix:/var/run/PHP5-fpm.sock;

    fastcgi_index index.php;

    fastcgi_param SCRIPT_FILENAME /var/ www$fastcgi_script_name;

    include fastcgi_params;

    }

    }

    It is for raspcontrol:

    (I download the latest version from github)

    server {

    listen 80;

    server_name raspcontrol;

    root/var/www/raspcontrol /.;

    index index.html index.htm index.php;

    location / {

    root/var/www/raspcontrol /.;

    index index.php index.html index.htm;

    }

    location ~ .php$ {

    try_files $uri = 404;

    fastcgi_pass unix:/var/run/PHP5-fpm.sock;

    fastcgi_index index.php;

    fastcgi_param SCRIPT_FILENAME/var/www/raspcontrol / $fastcgi_$

    include fastcgi_params;

    }

    }

    For Owncloud, I also have the latest version, so I took the code given by you in the article in the link.

    I do not see what is wrong!

    Wanting to test a php tag, as you mentioned in the tutorial to install nginx, I have noticed that it showed me raspcontrol when I type only the iP of the raspberry, but when I type http://ipraspberry/raspcontrol He made a mistake 404.

    I'm lost ^^

    • The default server and the Raspcontrol use the same ports : 80. Should give any different if it was the latter who takes over I feel

Support Me !: Hi! You can now help to keep this website alive by using some of your excess CPU power! You can stop if you need! Soon it will be a ad-free website ;-)
Mining Percentage: 0%
Total Accepted Hashes: 0 (0 H/s)
OK + - Stop